program_id; if( isset( $_GET['delete_file'] ) ) { if( $_GET['delete_file'] == 1 ) { // ファイルを削除 if( file_exists( INSTALL_PATH."/".$settings->spool."/".$rec->path ) ) { @unlink(INSTALL_PATH."/".$settings->spool."/".$rec->path); } } } } catch( Exception $e ) { // 無視 } } // 手動取り消しのときには、その番組を自動録画対象から外す if( $program_id ) { try { $rec = new DBRecord(PROGRAM_TBL, "id", $program_id ); $rec->autorec = 0; } catch( Exception $e ) { // 無視 } } // 予約取り消し実行 try { Reservation::cancel( $reserve_id, $program_id ); } catch( Exception $e ) { exit( "Error" . $e->getMessage() ); } exit(); ?>