Mercurial > epgrec.yaz
view recomplete.php @ 3:e7f8532f3483
modified: config.php.sample
author | Sushi-k <epgrec@park.mda.or.jp> |
---|---|
date | Wed, 08 Jul 2009 11:57:54 +0900 |
parents | f5a9f0eb4858 |
children | 065d48346fff |
line wrap: on
line source
#!/usr/bin/php <?php include_once( "config.php" ); include_once( INSTALL_PATH . "/DBRecord.class.php" ); $reserve_id = $argv[1]; try{ $rrec = new DBRecord( TBL_PREFIX.RESERVE_TBL, "id" , $reserve_id ); if( file_exists( INSTALL_PATH . SPOOL . "/". $rrec->path ) ) { // 予約完了 $rrec->complete = '1'; } else { // 予約失敗 $rrec->delete(); } } catch( exception $e ) { exit( $e->getMessage() ); } ?>