Mercurial > epgrec.yaz
diff simpleReservation.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 | fce37385c8b4 cb7da56c4198 |
line wrap: on
line diff
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/simpleReservation.php Wed Jul 08 11:44:50 2009 +0900 @@ -0,0 +1,16 @@ +<?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" ); + +if( ! isset( $_GET['program_id'] ) ) exit("Error: 番組が指定されていません" ); +$program_id = $_GET['program_id']; + +try { + Reservation::simple( $program_id ); +} +catch( Exception $e ) { + exit( "Error:". $e->getMessage() ); +} +?> \ No newline at end of file