view config.php.sample @ 76:69e0dabc765a

fixed: Reservation.class.php modified: config.php.sample modified: index.php modified: install/step1.php modified: install/step3.php install/grscan.php
author Sushi-k <epgrec@park.mda.or.jp>
date Tue, 23 Feb 2010 19:58:30 +0900
parents 25736d81c66d
children cb7da56c4198
line wrap: on
line source

<?php

// settings/gr_channel.phpが作成された場合、
// config.php内の$GR_CHANNEL_MAPは無視されます

// 首都圏用地上デジタルチャンネルマップ
// 識別子 => チャンネル番号
$GR_CHANNEL_MAP = array(
	"GR27" => "27",		// NHK
	"GR26" => "26",		// 教育
	"GR25" => "25",		// 日テレ
	"GR22" => "22",		// 東京
	"GR21" => "21",		// フジ
	"GR24" => "24",		// テレ朝
	"GR23" => "23",		// テレ東
//	"GR20" => "20",		// MX TV
//	"GR18" => "18",		// テレ神
	"GR30" => "30",		// 千葉
//	"GR32" => "32",		// テレ玉
	"GR28" => "28",		// 大学
);

/*
// 大阪地区デジタルチャンネルマップ(参考)
$GR_CHANNEL_MAP = array(
	"GR24" => "24",		// NHK
	"GR13" => "13",		// 教育
	"GR16" => "16",		// 毎日
	"GR15" => "15",		// 朝日
	"GR17" => "17",		// 関西
	"GR14" => "14",		// 読売
	"GR18" => "18",		// テレビ大阪
);
*/


// 録画モード(option)

$RECORD_MODE = array(
	// ※ 0は必須で、変更不可です。
	0 => array(
		'name' => 'Full TS',	// モードの表示名
		'suffix' => '.ts',	// ファイル名のサフィックス
	),
	
	/* Examples is as follows.
	
	1 => array(
		'name' => 'Min PID',
		'suffix' => '_tss.ts',
	),
	
	2 => array(
		'name' => '12Mbps MPEG4',
		'suffix' => '.avi',
	),
	*/
);

// 以下、USE_KUROBON以外の定数は設定不要になりました

define( "INSTALL_PATH", dirname(__FILE__) );		// インストールパス
define( "USE_KUROBON", false );						// BSチューナーとしてFriio BS/CSを使うならtrue

// 以降は必要に応じて変更する

define( "PADDING_TIME", 180 );						// 詰め物時間
define( "DO_RECORD", INSTALL_PATH . "/do-record.sh" );		// レコードスクリプト
define( "COMPLETE_CMD", INSTALL_PATH . "/recomplete.php" );	// 録画終了コマンド
define( "GEN_THUMBNAIL", INSTALL_PATH . "/gen-thumbnail.sh" );	// サムネール生成スクリプト


// 地上デジタルチャンネルテーブルsettings/gr_channel.phpが存在するならそれを
// 優先する
if( file_exists( INSTALL_PATH."/settings/gr_channel.php" ) ) {
	unset($GR_CHANNEL_MAP);
	include_once( INSTALL_PATH."/settings/gr_channel.php" );
}


// 全国用BSデジタルチャンネルマップ
$BS_CHANNEL_MAP = array(
        "3001.ontvjapan.com" => "101",
        "3002.ontvjapan.com" => "102",
        "3003.ontvjapan.com" => "103",
        "3004.ontvjapan.com" => "141",
        "3005.ontvjapan.com" => "151",
        "3006.ontvjapan.com" => "161",
        "3007.ontvjapan.com" => "171",
        "3008.ontvjapan.com" => "181",
        "3009.ontvjapan.com" => "191",
        "3010.ontvjapan.com" => "192",
        "3011.ontvjapan.com" => "193",
        "3013.ontvjapan.com" => "211",
        "3014.ontvjapan.com" => "222",
);

if( USE_KUROBON ) {
	$BS_CHANNEL_MAP = array(
    	    "3001.ontvjapan.com" => "B10",
	        "3002.ontvjapan.com" => "B10",
	        "3003.ontvjapan.com" => "B11",
	        "3004.ontvjapan.com" => "B8",
	        "3005.ontvjapan.com" => "B1",
	        "3006.ontvjapan.com" => "B2",
	        "3007.ontvjapan.com" => "B4",
	        "3008.ontvjapan.com" => "B9",
	        "3009.ontvjapan.com" => "B3",
	        "3010.ontvjapan.com" => "B3",
	        "3011.ontvjapan.com" => "B3",
	        "3013.ontvjapan.com" => "B5",
	        "3014.ontvjapan.com" => "B7",
	);
}

// 全国用CSデジタルチャンネルマップ
$CS_CHANNEL_MAP = array(
	"1002.ontvjapan.com"		=>	"CS2", // 237,	//	"スターchプラス"
	"1086.ontvjapan.com"		=>	"CS2", // 239,	// "日本映画専門chHD"
	"306ch.epgdata.ontvjapan"	=>	"CS2", // 306,	// "フジテレビCSHD"

	"100ch.epgdata.ontvjapan"	=>	"CS4", // 100,	// "e2プロモ"
	"1025.ontvjapan.com"		=>	"CS4", // 256,	// "Jスポーツ ESPN"
	"1016.ontvjapan.com"		=>	"CS4", // 312,	// "FOX"
	"1018.ontvjapan.com"		=>	"CS4", // 322,	// "スペースシャワーTV"
	"1046.ontvjapan.com"		=>	"CS4", // 331,	// "カートゥーン ネット"
	"194ch.epgdata.ontvjapan"	=>	"CS4", // 194,	// "インターローカルTV"
	"1213.ontvjapan.com"		=>	"CS4", // 334,	// "トゥーン・ディズニー"

	"1010.ontvjapan.com"		=>	"CS6", // 221,	// "東映チャンネル"
	"1005.ontvjapan.com"		=>	"CS6", // 222,	// "衛星劇場"
	"1008.ontvjapan.com"		=>	"CS6", // 223,	// "チャンネルNECO"
	"1009.ontvjapan.com"		=>	"CS6", // 224,	// "洋画★シネフィル"
	"1133.ontvjapan.com"		=>	"CS6", // 292,	// "時代劇専門チャンネル"
	"1003.ontvjapan.com"		=>	"CS6", // 238,	// "スター・クラシック"
	"1006.ontvjapan.com"		=>	"CS6", // 310,	// "スーパードラマ"
	"1014.ontvjapan.com"		=>	"CS6", // 311,	// "AXN"
	"1204.ontvjapan.com"		=>	"CS6", // 343,	// "ナショジオチャンネル"

	"1059.ontvjapan.com"		=>	"CS8", // 55,	//  "ショップチャンネル"

	"1217.ontvjapan.com"		=>	"CS10", // 228,	// "ザ・シネマ"
	"800ch.epgdata.ontvjapan"	=>	"CS10", // 800,	// "スカチャンHD800"
	"801ch.epgdata.ontvjapan"	=>	"CS10", // 801,	// "スカチャン801"
	"802ch.epgdata.ontvjapan"	=>	"CS10", // 802,	// "スカチャン802"

	"1028.ontvjapan.com"		=>	"CS12", // 260,	// "ゴルフチャンネル"
	"1092.ontvjapan.com"		=>	"CS12", // 303,	// "テレ朝チャンネル"
	"1019.ontvjapan.com"		=>	"CS12", // 323,	// "MTV"
	"1024.ontvjapan.com"		=>	"CS12", // 324,	// "ミュージック・エア"
	"1067.ontvjapan.com"		=>	"CS12", // 352,	// "朝日ニュースター"
	"1070.ontvjapan.com"		=>	"CS12", // 353,	// "BBCワールド"
	"1069.ontvjapan.com"		=>	"CS12", // 354,	// "CNNj"
	"361ch.epgdata.ontvjapan"	=>	"CS12", // 361,	// "ジャスト・アイ"

	"1041.ontvjapan.com"		=>	"CS14", // 251,	// "Jスポーツ 1"
	"1042.ontvjapan.com"		=>	"CS14", // 252,	// "Jスポーツ 2"
	"1043.ontvjapan.com"		=>	"CS14", // 253,	// "JスポーツPlusH"
	"1026.ontvjapan.com"		=>	"CS14", // 254,	// "GAORA"
	"1040.ontvjapan.com"		=>	"CS14", // 255,	// "sky・Aスポーツ+"

	"305ch.epgdata.ontvjapan"	=>	"CS16", // 305,	// "チャンネル銀河"
	"1201.ontvjapan.com"		=>	"CS16", // 333,	// "AT-X"
	"1050.ontvjapan.com"		=>	"CS16", // 342,	// "ヒストリーチャンネル"
	"803ch.epgdata.ontvjapan"	=>	"CS16", // 803,	// "スカチャン803"
	"804ch.epgdata.ontvjapan"	=>	"CS16", // 804,	// "スカチャン804"
	"1207.ontvjapan.com"		=>	"CS16", // 290,	// "SKY・STAGE"

	"1007.ontvjapan.com"		=>	"CS18", // 240,	// "ムービープラスHD"
	"1027.ontvjapan.com"		=>	"CS18", // 262,	// "ゴルフネットワーク"
	"1074.ontvjapan.com"		=>	"CS18", // 314,	// "LaLa HD"

	"1073.ontvjapan.com"		=>	"CS20", // 258,	// "フジテレビ739"
	"1072.ontvjapan.com"		=>	"CS20", // 302,	// "フジテレビ721"
	"1047.ontvjapan.com"		=>	"CS20", // 332,	// "アニマックス"
	"1062.ontvjapan.com"		=>	"CS20", // 340,	// "ディスカバリー"
	"1193.ontvjapan.com"		=>	"CS20", // 341,	// "アニマルプラネット"

	"160ch.epgdata.ontvjapan"	=>	"CS22", // 160,	// "C-TBSウエルカム"
	//"1120.ontvjapan.com"		=>	"CS22", // 161,	// "QVC"
	"185ch.epgdata.ontvjapan"	=>	"CS22", // 185,	// "プライム365.TV"
	"1015.ontvjapan.com"		=>	"CS22", // 293,	// "ファミリー劇場"
	"3201.ontvjapan.com"		=>	"CS22", // 301,	// "TBSチャンネル"
	"1090.ontvjapan.com"		=>	"CS22", // 304,	// "ディズニーチャンネル"
	"1022.ontvjapan.com"		=>	"CS22", // 325,	// "MUSIC ON! TV"
	"1045.ontvjapan.com"		=>	"CS22", // 330,	// "キッズステーション"
	"1076.ontvjapan.com"		=>	"CS22", // 351,	// "TBSニュースバード"

	"1068.ontvjapan.com"		=>	"CS24", // 257,	// "日テレG+"
	"5004.ontvjapan.com"		=>	"CS24", // 291,	// "fashion TV"
	"300ch.epgdata.ontvjapan"	=>	"CS24", // 300,	// "日テレプラス"
	"1023.ontvjapan.com"		=>	"CS24", // 320,	// "エコミュージックTV"
	"1208.ontvjapan.com"		=>	"CS24", // 321,	// "Music Japan TV"
	"2002.ontvjapan.com"		=>	"CS24", // 350,	// "日テレNEWS24"
	/*
	"110ch.epgdata.ontvjapan"	=>	"CS22", 110,	// "ワンテンポータル"
	"101ch.epgdata.ontvjapan"	=>	"CS22", 101,	// "宝塚プロモチャンネル"
	"147ch.epgdata.ontvjapan"	=>	"CS22", 147,	// "CS日本番組ガイド"
	*/
);

// DBテーブル情報 以下は変更しないでください

define( "RESERVE_TBL",  "reserveTbl" );						// 予約テーブル
define( "PROGRAM_TBL",  "programTbl" );						// 番組表
define( "CHANNEL_TBL",  "channelTbl" );						// チャンネルテーブル
define( "CATEGORY_TBL", "categoryTbl" );					// カテゴリテーブル
define( "KEYWORD_TBL", "keywordTbl" );						// キーワードテーブル

// 予約テーブル
define( "RESERVE_STRUCT", 
	"id integer not null auto_increment primary key,".		// ID
	"channel_disc varchar(128) not null default 'none',".	// channel disc
	"channel_id integer not null  default '0',".			// channel ID
	"program_id integer not null default '0',".				// Program ID
	"type varchar(8) not null default 'GR',".				// 種別(GR/BS/CS)
	"channel varchar(10) not null default '0',".			// チャンネル
	"title varchar(512) not null default 'none',".			// タイトル
	"description varchar(512) not null default ' ',".		// 説明 text->varchar
	"category_id integer not null default '0',".			// カテゴリID
	"starttime datetime not null default '1970-01-01 00:00:00',".	// 開始時刻
	"endtime datetime not null default '1970-01-01 00:00:00',".		// 終了時刻
	"job integer not null default '0',".					// job番号
	"path blob default null,".								// 録画ファイルパス
	"complete boolean not null default '0',".				// 完了フラグ
	"reserve_disc varchar(128) not null default 'none',".	// 識別用hash
	"autorec integer not null default '0',".				// キーワードID
	"mode integer not null default '0'"						//録画モード
);


// 番組表テーブル
define( "PROGRAM_STRUCT",
	"id integer not null auto_increment primary key,".		// ID
	"channel_disc varchar(128) not null default 'none',".	// channel disc
	"channel_id integer not null default '0',".				// channel ID
	"type varchar(8) not null default 'GR',".				// 種別(GR/BS/CS)
	"channel varchar(10) not null default '0',".			// チャンネル
	"title varchar(512) not null default 'none',".			// タイトル
	"description varchar(512) not null default 'none',".	// 説明 text->varchar
	"category_id integer not null default '0',".			// カテゴリID
	"starttime datetime not null default '1970-01-01 00:00:00',".	// 開始時刻
	"endtime datetime not null default '1970-01-01 00:00:00',".		// 終了時刻
	"program_disc varchar(128) not null default 'none',".	 		// 識別用hash
	"autorec boolean not null default '1'"					// 自動録画有効無効
);


define( "CHANNEL_STRUCT",
	"id integer not null auto_increment primary key,".		// ID
	"type varchar(8) not null default 'GR',".				// 種別
	"channel varchar(10) not null default '0',".			// channel
	"name varchar(512) not null default 'none',".			// 表示名
	"channel_disc varchar(128) not null default 'none',".	// 識別用hash
	"sid varchar(64) not null default 'hd'"					// サービスID用02/23/2010追加
);

define( "CATEGORY_STRUCT",
	"id integer not null auto_increment primary key,".		// ID
	"name_jp varchar(512) not null default 'none',".		// 表示名
	"name_en varchar(512) not null default 'none',".		// 同上
	"category_disc varchar(128) not null default 'none'"	// 識別用hash
);


define( "KEYWORD_STRUCT",
	"id integer not null auto_increment primary key,".		// ID
	"keyword varchar(512) not null default '*',".			// 表示名
	"type varchar(8) not null default '*',".				// 種別
	"channel_id integer not null default '0',".				// channel ID
	"category_id integer not null default '0',".			// カテゴリID
	"use_regexp boolean not null default '0',".				// 正規表現を使用するなら1
	"autorec_mode integer not null defult '0'"						// 自動録画のモード02/23/2010追加
);
?>