Mercurial > epgrec.yaz
comparison simpleReservation.php @ 74:fce37385c8b4
use autorec_mode even though simple reservation
author | Yoshiki Yazawa <yaz@honeyplanet.jp> |
---|---|
date | Sun, 14 Feb 2010 17:00:27 +0900 |
parents | f5a9f0eb4858 |
children | 36ac7c416bd7 |
comparison
equal
deleted
inserted
replaced
73:cd64cf013095 | 74:fce37385c8b4 |
---|---|
1 <?php | 1 <?php |
2 include_once('config.php'); | 2 include_once('config.php'); |
3 include_once( INSTALL_PATH . "/DBRecord.class.php" ); | 3 include_once( INSTALL_PATH . "/DBRecord.class.php" ); |
4 include_once( INSTALL_PATH . "/Reservation.class.php" ); | 4 include_once( INSTALL_PATH . "/Reservation.class.php" ); |
5 include_once( INSTALL_PATH . "/reclib.php" ); | 5 include_once( INSTALL_PATH . "/reclib.php" ); |
6 include_once( INSTALL_PATH . "/Settings.class.php" ); | |
6 | 7 |
7 if( ! isset( $_GET['program_id'] ) ) exit("Error: 番組が指定されていません" ); | 8 if( ! isset( $_GET['program_id'] ) ) exit("Error: 番組が指定されていません" ); |
8 $program_id = $_GET['program_id']; | 9 $program_id = $_GET['program_id']; |
9 | 10 |
10 try { | 11 try { |
11 Reservation::simple( $program_id ); | 12 $settings = Settings::factory(); |
13 | |
14 Reservation::simple( $program_id, 0, $settings->autorec_mode); | |
12 } | 15 } |
13 catch( Exception $e ) { | 16 catch( Exception $e ) { |
14 exit( "Error:". $e->getMessage() ); | 17 exit( "Error:". $e->getMessage() ); |
15 } | 18 } |
16 ?> | 19 ?> |