Mercurial > epgrec.yaz
comparison simpleReservation.php @ 77:cb7da56c4198
modified: Keyword.class.php
modified: config.php.sample
modified: index.php
modified: install/step1.php
modified: keywordTable.php
modified: programTable.php
modified: simpleReservation.php
modified: templates/index.html
modified: templates/keywordTable.html
modified: templates/programTable.html
author | Sushi-k <epgrec@park.mda.or.jp> |
---|---|
date | Wed, 24 Feb 2010 20:22:19 +0900 |
parents | f5a9f0eb4858 |
children | 36ac7c416bd7 |
comparison
equal
deleted
inserted
replaced
76:69e0dabc765a | 77:cb7da56c4198 |
---|---|
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 |
11 $settings = Settings::factory(); | |
12 | |
10 try { | 13 try { |
11 Reservation::simple( $program_id ); | 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 ?> |