# HG changeset patch # User Yoshiki Yazawa # Date 1267538404 -32400 # Node ID 663521c2bf06ef7b41e57420dfcf6f19d7e83266 # Parent 3941ee5b3e63bd44f0c7b34e9f3a84d278e9a02a delete trailing whitespace diff -r 3941ee5b3e63 -r 663521c2bf06 getepg.php --- a/getepg.php Tue Mar 02 22:29:08 2010 +0900 +++ b/getepg.php Tue Mar 02 23:00:04 2010 +0900 @@ -5,35 +5,35 @@ include_once( INSTALL_PATH . '/Reservation.class.php' ); include_once( INSTALL_PATH . '/Keyword.class.php' ); include_once( INSTALL_PATH . '/Settings.class.php' ); - + // 後方互換性 if( ! defined( "BS_EPG_CHANNEL" ) ) define( "BS_EPG_CHANNEL", "211" ); if( ! defined( "CS1_EPG_CHANNEL" ) ) define( "CS1_EPG_CHANNEL", "CS8" ); if( ! defined( "CS2_EPG_CHANNEL" ) ) define( "CS2_EPG_CHANNEL", "CS24" ); - - + + function check_file( $file ) { // ファイルがないなら無問題 if( ! file_exists( $file ) ) return true; - + // 1時間以上前のファイルなら削除してやり直す if( (time() - filemtime( $file )) > 3600 ) { @unlink( $file ); return true; } - + return false; } - + $settings = Settings::factory(); - + $temp_xml_bs = $settings->temp_xml."_bs"; $temp_xml_cs1 = $settings->temp_xml."_cs1"; $temp_xml_cs2 = $settings->temp_xml."_cs2"; $temp_xml_gr = $settings->temp_xml."_gr"; - + if( file_exists( $settings->temp_data ) ) @unlink( $settings->temp_data ); - + // BSを処理する if( $settings->bs_tuners != 0 ) { // 録画重複チェック @@ -91,5 +91,5 @@ } } } - + ?>