comparison getepg.php @ 146:4afd353b4507

merged with upstream
author Yoshiki Yazawa <yaz@honeyplanet.jp>
date Tue, 23 Mar 2010 02:37:31 +0900
parents b3ba2658a228 481e789605e3
children 43f74519bd52
comparison
equal deleted inserted replaced
141:d1681f891462 146:4afd353b4507
6 include_once( INSTALL_PATH . '/DBRecord.class.php' ); 6 include_once( INSTALL_PATH . '/DBRecord.class.php' );
7 include_once( INSTALL_PATH . '/Reservation.class.php' ); 7 include_once( INSTALL_PATH . '/Reservation.class.php' );
8 include_once( INSTALL_PATH . '/Keyword.class.php' ); 8 include_once( INSTALL_PATH . '/Keyword.class.php' );
9 include_once( INSTALL_PATH . '/Settings.class.php' ); 9 include_once( INSTALL_PATH . '/Settings.class.php' );
10 include_once( INSTALL_PATH . '/storeProgram.inc.php' ); 10 include_once( INSTALL_PATH . '/storeProgram.inc.php' );
11 11 include_once( INSTALL_PATH . '/recLog.inc.php' );
12
12 // 後方互換性 13 // 後方互換性
13 if( ! defined( "BS_EPG_CHANNEL" ) ) define( "BS_EPG_CHANNEL", "211" ); 14 if( ! defined( "BS_EPG_CHANNEL" ) ) define( "BS_EPG_CHANNEL", "211" );
14 if( ! defined( "CS1_EPG_CHANNEL" ) ) define( "CS1_EPG_CHANNEL", "CS8" ); 15 if( ! defined( "CS1_EPG_CHANNEL" ) ) define( "CS1_EPG_CHANNEL", "CS8" );
15 if( ! defined( "CS2_EPG_CHANNEL" ) ) define( "CS2_EPG_CHANNEL", "CS24" ); 16 if( ! defined( "CS2_EPG_CHANNEL" ) ) define( "CS2_EPG_CHANNEL", "CS24" );
16 17
28 } 29 }
29 30
30 // 並列化が可能か執念深く調べる 31 // 並列化が可能か執念深く調べる
31 $use_para = false; 32 $use_para = false;
32 $use_para = (function_exists( "pcntl_fork" ) && function_exists( "posix_setsid" ) && function_exists( "pcntl_signal" ) && function_exists("pcntl_setpriority")); 33 $use_para = (function_exists( "pcntl_fork" ) && function_exists( "posix_setsid" ) && function_exists( "pcntl_signal" ) && function_exists("pcntl_setpriority"));
33 34 if( ! $use_para ) {
34 35 reclog("getepg:: 並列実行が行えないPHP環境です" );
36 }
37 else {
38 reclog("getepg:: 並列実行を使用します" );
39 }
40
35 $settings = Settings::factory(); 41 $settings = Settings::factory();
36 42
37 $temp_xml_bs = $settings->temp_xml."_bs"; 43 $temp_xml_bs = $settings->temp_xml."_bs";
38 $temp_xml_cs1 = $settings->temp_xml."_cs1"; 44 $temp_xml_cs1 = $settings->temp_xml."_cs1";
39 $temp_xml_cs2 = $settings->temp_xml."_cs2"; 45 $temp_xml_cs2 = $settings->temp_xml."_cs2";