view 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
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() );
}

?>