OSDN Git Service

modified: mediatomb.php
[epgrec/epgrec.git] / deleteKeyword.php
1 <?php
2 include_once('config.php');
3 include_once( INSTALL_PATH . '/DBRecord.class.php' );
4 include_once( INSTALL_PATH . '/Reservation.class.php' );
5 include_once( INSTALL_PATH . '/reclib.php' );
6 include_once( INSTALL_PATH . '/Keyword.class.php' );
7
8 if( isset($_GET['keyword_id'])) {
9         try {
10                 $rec = new Keyword( "id", $_GET['keyword_id'] );
11                 $rec->delete();
12         }
13         catch( Exception $e ) {
14                 exit( "Error:" . $e->getMessage() );
15         }
16 }
17 else exit( "Error:キーワードIDが指定されていません" );
18 ?>