Mercurial > epgrec.yaz
annotate recomplete.php @ 5:7283cff6dacb
new file: templates_c/index.html
new file: thumbs/index.html
new file: video/index.html
author | Sushi-k <epgrec@park.mda.or.jp> |
---|---|
date | Wed, 08 Jul 2009 17:58:37 +0900 |
parents | f5a9f0eb4858 |
children | 065d48346fff |
rev | line source |
---|---|
1 | 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 ?> |