comparison recomplete.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 065d48346fff
comparison
equal deleted inserted replaced
0:96312e6ab8d4 1:f5a9f0eb4858
1 #!/usr/bin/php
2 <?php
3 include_once( "config.php" );
4 include_once( INSTALL_PATH . "/DBRecord.class.php" );
5
6 $reserve_id = $argv[1];
7
8 try{
9 $rrec = new DBRecord( TBL_PREFIX.RESERVE_TBL, "id" , $reserve_id );
10
11 if( file_exists( INSTALL_PATH . SPOOL . "/". $rrec->path ) ) {
12 // 予約完了
13 $rrec->complete = '1';
14 }
15 else {
16 // 予約失敗
17 $rrec->delete();
18 }
19 }
20 catch( exception $e ) {
21 exit( $e->getMessage() );
22 }
23
24 ?>