diff index.php @ 67:a2c4665b310c

add: CS support (thanks to dakku)
author Sushi-k <epgrec@park.mda.or.jp>
date Wed, 21 Oct 2009 16:51:24 +0900
parents 80dc62c94185
children 69e0dabc765a
line wrap: on
line diff
--- a/index.php	Fri Oct 09 19:22:40 2009 +0900
+++ b/index.php	Wed Oct 21 16:51:24 2009 +0900
@@ -47,6 +47,7 @@
  $programs = array();
  if( $type == "BS" ) $channel_map = $BS_CHANNEL_MAP;
  else if( $type == "GR" ) $channel_map = $GR_CHANNEL_MAP;
+ else if( $type == "CS" ) $channel_map = $CS_CHANNEL_MAP;
  $st = 0;
  $prec = new DBRecord(PROGRAM_TBL);
  foreach( $channel_map as $channel_disc => $channel ) {
@@ -151,6 +152,14 @@
 	$types[$i]['link'] = $_SERVER['SCRIPT_NAME'] . "?type=BS&length=".$program_length."&time=".date( "YmdH", $top_time);
 	$types[$i]['name'] = "BS";
 	$i++;
+
+	// CS
+	if ($settings->cs_rec_flg != 0) {
+		$types[$i]['selected'] = $type == "CS" ? 'class="selected"' : "";
+		$types[$i]['link'] = $_SERVER['SCRIPT_NAME'] . "?type=CS&length=".$program_length."&time=".date( "YmdH", $top_time);
+		$types[$i]['name'] = "CS";
+		$i++;
+	}
  }
  if( $settings->gr_tuners != 0 ) {
 	$types[$i]['selected'] = $type == "GR" ? 'class="selected"' : "";