Mercurial > epgrec.yaz
comparison 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 |
comparison
equal
deleted
inserted
replaced
70:1363ac056197 | 76:69e0dabc765a |
---|---|
1 <?php | 1 <?php |
2 | |
3 // settings/gr_channel.phpが作成された場合、 | |
4 // config.php内の$GR_CHANNEL_MAPは無視されます | |
2 | 5 |
3 // 首都圏用地上デジタルチャンネルマップ | 6 // 首都圏用地上デジタルチャンネルマップ |
4 // 識別子 => チャンネル番号 | 7 // 識別子 => チャンネル番号 |
5 $GR_CHANNEL_MAP = array( | 8 $GR_CHANNEL_MAP = array( |
6 "GR27" => "27", // NHK | 9 "GR27" => "27", // NHK |
52 'suffix' => '.avi', | 55 'suffix' => '.avi', |
53 ), | 56 ), |
54 */ | 57 */ |
55 ); | 58 ); |
56 | 59 |
57 // USE_KUROBON以外の定数は設定不要になりました | 60 // 以下、USE_KUROBON以外の定数は設定不要になりました |
58 | 61 |
59 define( "INSTALL_PATH", dirname(__FILE__) ); // インストールパス | 62 define( "INSTALL_PATH", dirname(__FILE__) ); // インストールパス |
60 define( "USE_KUROBON", false ); // BSチューナーとしてFriio BS/CSを使うならtrue | 63 define( "USE_KUROBON", false ); // BSチューナーとしてFriio BS/CSを使うならtrue |
61 | 64 |
62 // 以降は必要に応じて変更する | 65 // 以降は必要に応じて変更する |
63 | 66 |
64 define( "PADDING_TIME", 180 ); // 詰め物時間 | 67 define( "PADDING_TIME", 180 ); // 詰め物時間 |
65 define( "DO_RECORD", INSTALL_PATH . "/do-record.sh" ); // レコードスクリプト | 68 define( "DO_RECORD", INSTALL_PATH . "/do-record.sh" ); // レコードスクリプト |
66 define( "COMPLETE_CMD", INSTALL_PATH . "/recomplete.php" ); // 録画終了コマンド | 69 define( "COMPLETE_CMD", INSTALL_PATH . "/recomplete.php" ); // 録画終了コマンド |
67 define( "GEN_THUMBNAIL", INSTALL_PATH . "/gen-thumbnail.sh" ); // サムネール生成スクリプト | 70 define( "GEN_THUMBNAIL", INSTALL_PATH . "/gen-thumbnail.sh" ); // サムネール生成スクリプト |
71 | |
72 | |
73 // 地上デジタルチャンネルテーブルsettings/gr_channel.phpが存在するならそれを | |
74 // 優先する | |
75 if( file_exists( INSTALL_PATH."/settings/gr_channel.php" ) ) { | |
76 unset($GR_CHANNEL_MAP); | |
77 include_once( INSTALL_PATH."/settings/gr_channel.php" ); | |
78 } | |
79 | |
68 | 80 |
69 // 全国用BSデジタルチャンネルマップ | 81 // 全国用BSデジタルチャンネルマップ |
70 $BS_CHANNEL_MAP = array( | 82 $BS_CHANNEL_MAP = array( |
71 "3001.ontvjapan.com" => "101", | 83 "3001.ontvjapan.com" => "101", |
72 "3002.ontvjapan.com" => "102", | 84 "3002.ontvjapan.com" => "102", |
196 define( "KEYWORD_TBL", "keywordTbl" ); // キーワードテーブル | 208 define( "KEYWORD_TBL", "keywordTbl" ); // キーワードテーブル |
197 | 209 |
198 // 予約テーブル | 210 // 予約テーブル |
199 define( "RESERVE_STRUCT", | 211 define( "RESERVE_STRUCT", |
200 "id integer not null auto_increment primary key,". // ID | 212 "id integer not null auto_increment primary key,". // ID |
201 "channel_disc varchar(128) default 'none',". // channel disc | 213 "channel_disc varchar(128) not null default 'none',". // channel disc |
202 "channel_id integer default '0',". // channel ID | 214 "channel_id integer not null default '0',". // channel ID |
203 "program_id integer default '0',". // Program ID | 215 "program_id integer not null default '0',". // Program ID |
204 "type varchar(8) default 'GR',". // 種別(GR/BS/CS) | 216 "type varchar(8) not null default 'GR',". // 種別(GR/BS/CS) |
205 "channel varchar(10) default '0',". // チャンネル | 217 "channel varchar(10) not null default '0',". // チャンネル |
206 "title varchar(512) default 'none',". // タイトル | 218 "title varchar(512) not null default 'none',". // タイトル |
207 "description text default null,". // 説明 | 219 "description varchar(512) not null default ' ',". // 説明 text->varchar |
208 "category_id integer default '0',". // カテゴリID | 220 "category_id integer not null default '0',". // カテゴリID |
209 "starttime datetime default '1970-01-01 00:00:00',". // 開始時刻 | 221 "starttime datetime not null default '1970-01-01 00:00:00',". // 開始時刻 |
210 "endtime datetime default '1970-01-01 00:00:00',". // 終了時刻 | 222 "endtime datetime not null default '1970-01-01 00:00:00',". // 終了時刻 |
211 "job integer default '0',". // job番号 | 223 "job integer not null default '0',". // job番号 |
212 "path blob default null,". // 録画ファイルパス | 224 "path blob default null,". // 録画ファイルパス |
213 "complete boolean default '0',". // 完了フラグ | 225 "complete boolean not null default '0',". // 完了フラグ |
214 "reserve_disc varchar(128) default 'none',". // 識別用hash | 226 "reserve_disc varchar(128) not null default 'none',". // 識別用hash |
215 "autorec integer default '0',". // キーワードID | 227 "autorec integer not null default '0',". // キーワードID |
216 "mode integer default '0'" //録画モード | 228 "mode integer not null default '0'" //録画モード |
217 ); | 229 ); |
218 | 230 |
219 | 231 |
220 // 番組表テーブル | 232 // 番組表テーブル |
221 define( "PROGRAM_STRUCT", | 233 define( "PROGRAM_STRUCT", |
222 "id integer not null auto_increment primary key,". // ID | 234 "id integer not null auto_increment primary key,". // ID |
223 "channel_disc varchar(128) default 'none',". // channel disc | 235 "channel_disc varchar(128) not null default 'none',". // channel disc |
224 "channel_id integer default '0',". // channel ID | 236 "channel_id integer not null default '0',". // channel ID |
225 "type varchar(8) default 'GR',". // 種別(GR/BS/CS) | 237 "type varchar(8) not null default 'GR',". // 種別(GR/BS/CS) |
226 "channel varchar(10) default '0',". // チャンネル | 238 "channel varchar(10) not null default '0',". // チャンネル |
227 "title varchar(512) default 'none',". // タイトル | 239 "title varchar(512) not null default 'none',". // タイトル |
228 "description text default null,". // 説明 | 240 "description varchar(512) not null default 'none',". // 説明 text->varchar |
229 "category_id integer default '0',". // カテゴリID | 241 "category_id integer not null default '0',". // カテゴリID |
230 "starttime datetime default '1970-01-01 00:00:00',". // 開始時刻 | 242 "starttime datetime not null default '1970-01-01 00:00:00',". // 開始時刻 |
231 "endtime datetime default '1970-01-01 00:00:00',". // 終了時刻 | 243 "endtime datetime not null default '1970-01-01 00:00:00',". // 終了時刻 |
232 "program_disc char(128) default 'none',". // 識別用hash | 244 "program_disc varchar(128) not null default 'none',". // 識別用hash |
233 "autorec boolean default '1'" // 自動録画有効無効 | 245 "autorec boolean not null default '1'" // 自動録画有効無効 |
234 ); | 246 ); |
235 | 247 |
236 | 248 |
237 define( "CHANNEL_STRUCT", | 249 define( "CHANNEL_STRUCT", |
238 "id integer not null auto_increment primary key,". // ID | 250 "id integer not null auto_increment primary key,". // ID |
239 "type varchar(8) default 'GR',". // 種別 | 251 "type varchar(8) not null default 'GR',". // 種別 |
240 "channel varchar(10) default '0',". // channel | 252 "channel varchar(10) not null default '0',". // channel |
241 "name varchar(512) default 'none',". // 表示名 | 253 "name varchar(512) not null default 'none',". // 表示名 |
242 "channel_disc varchar(128) default 'none'" // 識別用hash | 254 "channel_disc varchar(128) not null default 'none',". // 識別用hash |
255 "sid varchar(64) not null default 'hd'" // サービスID用02/23/2010追加 | |
243 ); | 256 ); |
244 | 257 |
245 define( "CATEGORY_STRUCT", | 258 define( "CATEGORY_STRUCT", |
246 "id integer not null auto_increment primary key,". // ID | 259 "id integer not null auto_increment primary key,". // ID |
247 "name_jp varchar(512) default 'none',". // 表示名 | 260 "name_jp varchar(512) not null default 'none',". // 表示名 |
248 "name_en varchar(512) default 'none',". // 同上 | 261 "name_en varchar(512) not null default 'none',". // 同上 |
249 "category_disc varchar(128) default 'none'" // 識別用hash | 262 "category_disc varchar(128) not null default 'none'" // 識別用hash |
250 ); | 263 ); |
251 | 264 |
252 | 265 |
253 define( "KEYWORD_STRUCT", | 266 define( "KEYWORD_STRUCT", |
254 "id integer not null auto_increment primary key,". // ID | 267 "id integer not null auto_increment primary key,". // ID |
255 "keyword varchar(512) default '*',". // 表示名 | 268 "keyword varchar(512) not null default '*',". // 表示名 |
256 "type varchar(8) default '*',". // 種別 | 269 "type varchar(8) not null default '*',". // 種別 |
257 "channel_id integer default '0',". // channel ID | 270 "channel_id integer not null default '0',". // channel ID |
258 "category_id integer default '0',". // カテゴリID | 271 "category_id integer not null default '0',". // カテゴリID |
259 "use_regexp boolean default '0'" // 正規表現を使用するなら1 | 272 "use_regexp boolean not null default '0',". // 正規表現を使用するなら1 |
273 "autorec_mode integer not null defult '0'" // 自動録画のモード02/23/2010追加 | |
260 ); | 274 ); |
261 ?> | 275 ?> |