Mercurial > epgrec.yaz
diff deleteKeyword.php @ 1:f5a9f0eb4858
deleted: LICENSE.ja
author | Sushi-k <epgrec@park.mda.or.jp> |
---|---|
date | Wed, 08 Jul 2009 11:44:50 +0900 |
parents | |
children |
line wrap: on
line diff
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/deleteKeyword.php Wed Jul 08 11:44:50 2009 +0900 @@ -0,0 +1,18 @@ +<?php +include_once('config.php'); +include_once( INSTALL_PATH . '/DBRecord.class.php' ); +include_once( INSTALL_PATH . '/Reservation.class.php' ); +include_once( INSTALL_PATH . '/reclib.php' ); +include_once( INSTALL_PATH . '/Keyword.class.php' ); + +if( isset($_GET['keyword_id'])) { + try { + $rec = new Keyword( "id", $_GET['keyword_id'] ); + $rec->delete(); + } + catch( Exception $e ) { + exit( "Error:" . $e->getMessage() ); + } +} +else exit( "Error:キーワードIDが指定されていません" ); +?> \ No newline at end of file