<?php
+// settings/gr_channel.phpが作成された場合、
+// config.php内の$GR_CHANNEL_MAPは無視されます
+
// 首都圏用地上デジタルチャンネルマップ
// 識別子 => チャンネル番号
$GR_CHANNEL_MAP = array(
*/
);
-// USE_KUROBON以外の定数は設定不要になりました
+// 以下、USE_KUROBON以外の定数は設定不要になりました
define( "INSTALL_PATH", dirname(__FILE__) ); // インストールパス
define( "USE_KUROBON", false ); // BSチューナーとしてFriio BS/CSを使うならtrue
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",
// 予約テーブル
define( "RESERVE_STRUCT",
"id integer not null auto_increment primary key,". // ID
- "channel_disc varchar(128) default 'none',". // channel disc
- "channel_id integer default '0',". // channel ID
- "program_id integer default '0',". // Program ID
- "type varchar(8) default 'GR',". // 種別(GR/BS/CS)
- "channel varchar(10) default '0',". // チャンネル
- "title varchar(512) default 'none',". // タイトル
- "description text default null,". // 説明
- "category_id integer default '0',". // カテゴリID
- "starttime datetime default '1970-01-01 00:00:00',". // 開始時刻
- "endtime datetime default '1970-01-01 00:00:00',". // 終了時刻
- "job integer default '0',". // job番号
+ "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 default '0',". // 完了フラグ
- "reserve_disc varchar(128) default 'none',". // 識別用hash
- "autorec integer default '0',". // キーワードID
- "mode integer default '0'" //録画モード
+ "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) default 'none',". // channel disc
- "channel_id integer default '0',". // channel ID
- "type varchar(8) default 'GR',". // 種別(GR/BS/CS)
- "channel varchar(10) default '0',". // チャンネル
- "title varchar(512) default 'none',". // タイトル
- "description text default null,". // 説明
- "category_id integer default '0',". // カテゴリID
- "starttime datetime default '1970-01-01 00:00:00',". // 開始時刻
- "endtime datetime default '1970-01-01 00:00:00',". // 終了時刻
- "program_disc char(128) default 'none',". // 識別用hash
- "autorec boolean default '1'" // 自動録画有効無効
+ "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) default 'GR',". // 種別
- "channel varchar(10) default '0',". // channel
- "name varchar(512) default 'none',". // 表示名
- "channel_disc varchar(128) default 'none'" // 識別用hash
+ "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) default 'none',". // 表示名
- "name_en varchar(512) default 'none',". // 同上
- "category_disc varchar(128) default 'none'" // 識別用hash
+ "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) default '*',". // 表示名
- "type varchar(8) default '*',". // 種別
- "channel_id integer default '0',". // channel ID
- "category_id integer default '0',". // カテゴリID
- "use_regexp boolean default '0'" // 正規表現を使用するなら1
+ "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追加
);
-?>
+?>
\ No newline at end of file