# HG changeset patch # User Sushi-k # Date 1268817121 -32400 # Node ID ef3df87f3c7d8b825f3ad97f3fa45e55cfe54108 # Parent aa48eb5f1993699a0a243776f02586f97710a96b mod: チャンネルスキップの大まかな実装終了 diff -r aa48eb5f1993 -r ef3df87f3c7d channelSetSID.php --- a/channelSetSID.php Wed Mar 17 01:34:26 2010 +0900 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 @@ -1,17 +0,0 @@ -sid = trim($_POST['sid']); - } - catch( Exception $e ) { - // ∴ - } -} -?> \ No newline at end of file diff -r aa48eb5f1993 -r ef3df87f3c7d storeProgram.inc.php --- a/storeProgram.inc.php Wed Mar 17 01:34:26 2010 +0900 +++ b/storeProgram.inc.php Wed Mar 17 18:12:01 2010 +0900 @@ -29,6 +29,7 @@ function storeProgram( $type, $xmlfile ) { global $BS_CHANNEL_MAP, $GR_CHANNEL_MAP, $CS_CHANNEL_MAP; + // c潟<ゃ羣 $map = array(); if( $type == "BS" ) $map = $BS_CHANNEL_MAP; @@ -71,10 +72,21 @@ // programme 緇 foreach( $xml->programme as $program ) { + $channel_rec = null; + $channel_disc = $program['channel']; if( ! array_key_exists( "$channel_disc", $map ) ) continue; + $channel = $map["$channel_disc"]; - $channel = $map["$channel_disc"]; + try { + $channel_rec = new DBRecord(CHANNEL_TBL, "channel_disc", "$channel_disc" ); + } + catch( Exception $e ) { + // ∴ + } + if( $channel_rec == null ) continue; // 緇莎激 + if( $channel_rec->skip == 1 ) continue; // 篆<c潟 + $starttime = str_replace(" +0900", '', $program['start'] ); $endtime = str_replace( " +0900", '', $program['stop'] ); $title = $program->title; @@ -101,8 +113,7 @@ } else $cat_rec = new DBRecord(CATEGORY_TBL, "category_disc" , $category_disc ); - // - $channel_rec = new DBRecord(CHANNEL_TBL, "channel_disc", $channel_disc ); + // $num = DBRecord::countRecords(PROGRAM_TBL, "WHERE program_disc = '".$program_disc."'" ); if( $num == 0 ) { // 域腟 diff -r aa48eb5f1993 -r ef3df87f3c7d templates/index.html --- a/templates/index.html Wed Mar 17 01:34:26 2010 +0900 +++ b/templates/index.html Wed Mar 17 18:12:01 2010 +0900 @@ -91,14 +91,15 @@ str += ''; str += '
'; // 鴻 - str += '
c潟荀眼鐚'; + str += '
荀眼鐚'; + str += ''; if( skip == 1 ) { str += ''; } else { str += ''; } - str += '
'; + str += '
'; // 泣若ID str += '
泣若ID鐚'; str += '