Mercurial > epgrec.yaz
comparison storeProgram.inc.php @ 149:5b192e94f49d
fix: 予約済み定数を使ってしまったミスを修正。エラーレベルに警告を追加
author | epgrec@park.mda.or.jp <yoneda@recorder.localnet.mda.or.jp> |
---|---|
date | Sat, 27 Mar 2010 16:04:54 +0900 |
parents | 2cb414518ccd |
children | b3095425e613 |
comparison
equal
deleted
inserted
replaced
147:fadae5e39857 | 149:5b192e94f49d |
---|---|
43 else if( $type == "CS") $map = $CS_CHANNEL_MAP; | 43 else if( $type == "CS") $map = $CS_CHANNEL_MAP; |
44 | 44 |
45 // XML parse | 45 // XML parse |
46 $xml = @simplexml_load_file( $xmlfile ); | 46 $xml = @simplexml_load_file( $xmlfile ); |
47 if( $xml === false ) { | 47 if( $xml === false ) { |
48 reclog( "getepg:: 罩e幻".$xmlfile."篏c罔≧(冗絽с馹障)" ); | 48 reclog( "getepg:: 罩e幻".$xmlfile."篏c罔≧(冗絽с馹障)", EPGREC_WARN ); |
49 return; // XML茯水篏 | 49 return; // XML茯水篏 |
50 } | 50 } |
51 // channel遵 | 51 // channel遵 |
52 foreach( $xml->channel as $ch ) { | 52 foreach( $xml->channel as $ch ) { |
53 $disc = $ch['id']; | 53 $disc = $ch['id']; |
69 $rec = new DBRecord(CHANNEL_TBL, "channel_disc", $disc ); | 69 $rec = new DBRecord(CHANNEL_TBL, "channel_disc", $disc ); |
70 $rec->name = $ch->{'display-name'}; | 70 $rec->name = $ch->{'display-name'}; |
71 } | 71 } |
72 } | 72 } |
73 catch( Exception $e ) { | 73 catch( Exception $e ) { |
74 reclog( "getepg::DB・膓障c潟若吾莨若帥紊掩", E_ERROR ); | 74 reclog( "getepg::DB・膓障c潟若吾莨若帥紊掩", EPGREC_ERROR ); |
75 } | 75 } |
76 } | 76 } |
77 // channel 腟篋 | 77 // channel 腟篋 |
78 | 78 |
79 // programme 緇 | 79 // programme 緇 |
87 | 87 |
88 try { | 88 try { |
89 $channel_rec = new DBRecord(CHANNEL_TBL, "channel_disc", "$channel_disc" ); | 89 $channel_rec = new DBRecord(CHANNEL_TBL, "channel_disc", "$channel_disc" ); |
90 } | 90 } |
91 catch( Exception $e ) { | 91 catch( Exception $e ) { |
92 reclog( "getepg::c潟潟若 $channel_disc 肴с", E_ERROR ); | 92 reclog( "getepg::c潟潟若 $channel_disc 肴с", EPGREC_ERROR ); |
93 } | 93 } |
94 if( $channel_rec == null ) continue; // 緇莎激 | 94 if( $channel_rec == null ) continue; // 緇莎激 |
95 if( $channel_rec->skip == 1 ) continue; // 篆<c潟 | 95 if( $channel_rec->skip == 1 ) continue; // 篆<c潟 |
96 | 96 |
97 $starttime = str_replace(" +0900", '', $program['start'] ); | 97 $starttime = str_replace(" +0900", '', $program['start'] ); |
124 } | 124 } |
125 else | 125 else |
126 $cat_rec = new DBRecord(CATEGORY_TBL, "category_disc" , $category_disc ); | 126 $cat_rec = new DBRecord(CATEGORY_TBL, "category_disc" , $category_disc ); |
127 } | 127 } |
128 catch( Exception $e ) { | 128 catch( Exception $e ) { |
129 reclog("getepg:: 眼若≪祉鴻紊掩罔≧", E_ERROR ); | 129 reclog("getepg:: 眼若≪祉鴻紊掩罔≧", EPGREC_ERROR ); |
130 reclog("getepg:: ".$e->getMessage()."" ,E_ERROR ); | 130 reclog("getepg:: ".$e->getMessage()."" ,EPGREC_ERROR ); |
131 exit( $e->getMessage() ); | 131 exit( $e->getMessage() ); |
132 } | 132 } |
133 | 133 |
134 // 違脂 | 134 // 違脂 |
135 | 135 |
194 // ∴ | 194 // ∴ |
195 } | 195 } |
196 } | 196 } |
197 } | 197 } |
198 catch(Exception $e) { | 198 catch(Exception $e) { |
199 reclog( "getepg:: 違若馹罔≧", E_ERROR ); | 199 reclog( "getepg:: 違若馹罔≧", EPGREC_ERROR ); |
200 reclog( "getepg:: ".$e->getMessage()."" , E_ERROR); | 200 reclog( "getepg:: ".$e->getMessage()."" , EPGREC_ERROR); |
201 exit( $e->getMessage() ); | 201 exit( $e->getMessage() ); |
202 } | 202 } |
203 } | 203 } |
204 // Programme緇絎篋 | 204 // Programme緇絎篋 |
205 } | 205 } |