Mercurial > epgrec.yaz
annotate config.php.sample @ 172:2a944f0c15c5
merged from upstream
author | Yoshiki Yazawa <yaz@honeyplanet.jp> |
---|---|
date | Fri, 30 Apr 2010 12:21:17 +0900 |
parents | 3d4df1fe4166 |
children |
rev | line source |
---|---|
1 | 1 <?php |
2 | |
76
69e0dabc765a
fixed: Reservation.class.php
Sushi-k <epgrec@park.mda.or.jp>
parents:
68
diff
changeset
|
3 // settings/gr_channel.phpが作成された場合、 |
69e0dabc765a
fixed: Reservation.class.php
Sushi-k <epgrec@park.mda.or.jp>
parents:
68
diff
changeset
|
4 // config.php内の$GR_CHANNEL_MAPは無視されます |
69e0dabc765a
fixed: Reservation.class.php
Sushi-k <epgrec@park.mda.or.jp>
parents:
68
diff
changeset
|
5 |
1 | 6 // 首都圏用地上デジタルチャンネルマップ |
7 // 識別子 => チャンネル番号 | |
8 $GR_CHANNEL_MAP = array( | |
9 "GR27" => "27", // NHK | |
10 "GR26" => "26", // 教育 | |
11 "GR25" => "25", // 日テレ | |
12 "GR22" => "22", // 東京 | |
13 "GR21" => "21", // フジ | |
14 "GR24" => "24", // テレ朝 | |
15 "GR23" => "23", // テレ東 | |
16 // "GR20" => "20", // MX TV | |
17 // "GR18" => "18", // テレ神 | |
18 "GR30" => "30", // 千葉 | |
19 // "GR32" => "32", // テレ玉 | |
20 "GR28" => "28", // 大学 | |
21 ); | |
22 | |
23 /* | |
24 // 大阪地区デジタルチャンネルマップ(参考) | |
25 $GR_CHANNEL_MAP = array( | |
26 "GR24" => "24", // NHK | |
27 "GR13" => "13", // 教育 | |
28 "GR16" => "16", // 毎日 | |
29 "GR15" => "15", // 朝日 | |
30 "GR17" => "17", // 関西 | |
31 "GR14" => "14", // 読売 | |
32 "GR18" => "18", // テレビ大阪 | |
33 ); | |
34 */ | |
35 | |
36 | |
37 // 録画モード(option) | |
38 | |
39 $RECORD_MODE = array( | |
40 // ※ 0は必須で、変更不可です。 | |
41 0 => array( | |
3 | 42 'name' => 'Full TS', // モードの表示名 |
43 'suffix' => '.ts', // ファイル名のサフィックス | |
1 | 44 ), |
45 | |
46 1 => array( | |
80
cce6f88590fd
add: db table updater script.
Sushi-k <epgrec@park.mda.or.jp>
parents:
77
diff
changeset
|
47 'name' => 'Minimum TS', // 最小のTS |
cce6f88590fd
add: db table updater script.
Sushi-k <epgrec@park.mda.or.jp>
parents:
77
diff
changeset
|
48 'suffix' => '_tss.ts', // do-record.shのカスタマイズが必要 |
1 | 49 ), |
50 | |
80
cce6f88590fd
add: db table updater script.
Sushi-k <epgrec@park.mda.or.jp>
parents:
77
diff
changeset
|
51 /* Example is as follows. |
1 | 52 2 => array( |
53 'name' => '12Mbps MPEG4', | |
54 'suffix' => '.avi', | |
55 ), | |
56 */ | |
57 ); | |
58 | |
85 | 59 |
60 // BSチューナーとして黒Friioを用いているのなら下のfalseをtrueに変えてください。 | |
61 | |
62 define( "USE_KUROBON", false ); | |
63 | |
64 | |
65 | |
66 ////////////////////////////////////////////////////////////////////////////// | |
67 // 以降の変数・定数はほとんどの場合、変更する必要はありません | |
68 | |
1 | 69 |
32
01a8fdc0cebb
testing: Web base setting page.
Sushi-k <epgrec@park.mda.or.jp>
parents:
19
diff
changeset
|
70 define( "INSTALL_PATH", dirname(__FILE__) ); // インストールパス |
1 | 71 |
72 // 以降は必要に応じて変更する | |
73 | |
74 define( "PADDING_TIME", 180 ); // 詰め物時間 | |
75 define( "DO_RECORD", INSTALL_PATH . "/do-record.sh" ); // レコードスクリプト | |
76 define( "COMPLETE_CMD", INSTALL_PATH . "/recomplete.php" ); // 録画終了コマンド | |
47 | 77 define( "GEN_THUMBNAIL", INSTALL_PATH . "/gen-thumbnail.sh" ); // サムネール生成スクリプト |
161
84220382fea8
mod: ϿΥǽˤưǧޤԴ
epgrec@park.mda.or.jp <yoneda@recorder.localnet.mda.or.jp>
parents:
152
diff
changeset
|
78 define( "RECORDER_CMD", INSTALL_PATH . "/recorder.php" ); |
1 | 79 |
85 | 80 // BS/CSでEPGを取得するチャンネル |
81 // 通常は変える必要はありません | |
82 // BSでepgdumpが頻繁に落ちる場合は、受信状態のいいチャンネルに変えることで | |
83 // 改善するかもしれません | |
84 | |
85 define( "BS_EPG_CHANNEL", "211" ); // BS | |
86 define( "CS1_EPG_CHANNEL", "CS8" ); // CS1 | |
87 define( "CS2_EPG_CHANNEL", "CS24" ); // CS2 | |
88 | |
1 | 89 // 全国用BSデジタルチャンネルマップ |
90 $BS_CHANNEL_MAP = array( | |
91 "3001.ontvjapan.com" => "101", | |
92 "3002.ontvjapan.com" => "102", | |
93 "3003.ontvjapan.com" => "103", | |
94 "3004.ontvjapan.com" => "141", | |
95 "3005.ontvjapan.com" => "151", | |
96 "3006.ontvjapan.com" => "161", | |
97 "3007.ontvjapan.com" => "171", | |
98 "3008.ontvjapan.com" => "181", | |
99 "3009.ontvjapan.com" => "191", | |
100 "3010.ontvjapan.com" => "192", | |
101 "3011.ontvjapan.com" => "193", | |
147
fadae5e39857
fix: ͥɲ
epgrec@park.mda.or.jp <yoneda@recorder.localnet.mda.or.jp>
parents:
143
diff
changeset
|
102 "3012.ontvjapan.com" => "200", |
1 | 103 "3013.ontvjapan.com" => "211", |
104 "3014.ontvjapan.com" => "222", | |
105 ); | |
106 | |
107 if( USE_KUROBON ) { | |
108 $BS_CHANNEL_MAP = array( | |
109 "3001.ontvjapan.com" => "B10", | |
110 "3002.ontvjapan.com" => "B10", | |
111 "3003.ontvjapan.com" => "B11", | |
112 "3004.ontvjapan.com" => "B8", | |
113 "3005.ontvjapan.com" => "B1", | |
114 "3006.ontvjapan.com" => "B2", | |
115 "3007.ontvjapan.com" => "B4", | |
116 "3008.ontvjapan.com" => "B9", | |
117 "3009.ontvjapan.com" => "B3", | |
118 "3010.ontvjapan.com" => "B3", | |
119 "3011.ontvjapan.com" => "B3", | |
120 "3013.ontvjapan.com" => "B5", | |
121 "3014.ontvjapan.com" => "B7", | |
122 ); | |
123 } | |
124 | |
68 | 125 // 全国用CSデジタルチャンネルマップ |
126 $CS_CHANNEL_MAP = array( | |
127 "1002.ontvjapan.com" => "CS2", // 237, // "スターchプラス" | |
128 "1086.ontvjapan.com" => "CS2", // 239, // "日本映画専門chHD" | |
129 "306ch.epgdata.ontvjapan" => "CS2", // 306, // "フジテレビCSHD" | |
130 | |
131 "100ch.epgdata.ontvjapan" => "CS4", // 100, // "e2プロモ" | |
132 "1025.ontvjapan.com" => "CS4", // 256, // "Jスポーツ ESPN" | |
133 "1016.ontvjapan.com" => "CS4", // 312, // "FOX" | |
134 "1018.ontvjapan.com" => "CS4", // 322, // "スペースシャワーTV" | |
135 "1046.ontvjapan.com" => "CS4", // 331, // "カートゥーン ネット" | |
136 "194ch.epgdata.ontvjapan" => "CS4", // 194, // "インターローカルTV" | |
137 "1213.ontvjapan.com" => "CS4", // 334, // "トゥーン・ディズニー" | |
138 | |
139 "1010.ontvjapan.com" => "CS6", // 221, // "東映チャンネル" | |
140 "1005.ontvjapan.com" => "CS6", // 222, // "衛星劇場" | |
141 "1008.ontvjapan.com" => "CS6", // 223, // "チャンネルNECO" | |
142 "1009.ontvjapan.com" => "CS6", // 224, // "洋画★シネフィル" | |
143 "1133.ontvjapan.com" => "CS6", // 292, // "時代劇専門チャンネル" | |
144 "1003.ontvjapan.com" => "CS6", // 238, // "スター・クラシック" | |
145 "1006.ontvjapan.com" => "CS6", // 310, // "スーパードラマ" | |
146 "1014.ontvjapan.com" => "CS6", // 311, // "AXN" | |
147 "1204.ontvjapan.com" => "CS6", // 343, // "ナショジオチャンネル" | |
148 | |
149 "1059.ontvjapan.com" => "CS8", // 55, // "ショップチャンネル" | |
150 | |
151 "1217.ontvjapan.com" => "CS10", // 228, // "ザ・シネマ" | |
152 "800ch.epgdata.ontvjapan" => "CS10", // 800, // "スカチャンHD800" | |
153 "801ch.epgdata.ontvjapan" => "CS10", // 801, // "スカチャン801" | |
154 "802ch.epgdata.ontvjapan" => "CS10", // 802, // "スカチャン802" | |
155 | |
156 "1028.ontvjapan.com" => "CS12", // 260, // "ゴルフチャンネル" | |
157 "1092.ontvjapan.com" => "CS12", // 303, // "テレ朝チャンネル" | |
158 "1019.ontvjapan.com" => "CS12", // 323, // "MTV" | |
159 "1024.ontvjapan.com" => "CS12", // 324, // "ミュージック・エア" | |
160 "1067.ontvjapan.com" => "CS12", // 352, // "朝日ニュースター" | |
161 "1070.ontvjapan.com" => "CS12", // 353, // "BBCワールド" | |
162 "1069.ontvjapan.com" => "CS12", // 354, // "CNNj" | |
163 "361ch.epgdata.ontvjapan" => "CS12", // 361, // "ジャスト・アイ" | |
164 | |
165 "1041.ontvjapan.com" => "CS14", // 251, // "Jスポーツ 1" | |
166 "1042.ontvjapan.com" => "CS14", // 252, // "Jスポーツ 2" | |
167 "1043.ontvjapan.com" => "CS14", // 253, // "JスポーツPlusH" | |
168 "1026.ontvjapan.com" => "CS14", // 254, // "GAORA" | |
169 "1040.ontvjapan.com" => "CS14", // 255, // "sky・Aスポーツ+" | |
170 | |
171 "305ch.epgdata.ontvjapan" => "CS16", // 305, // "チャンネル銀河" | |
172 "1201.ontvjapan.com" => "CS16", // 333, // "AT-X" | |
173 "1050.ontvjapan.com" => "CS16", // 342, // "ヒストリーチャンネル" | |
174 "803ch.epgdata.ontvjapan" => "CS16", // 803, // "スカチャン803" | |
175 "804ch.epgdata.ontvjapan" => "CS16", // 804, // "スカチャン804" | |
176 "1207.ontvjapan.com" => "CS16", // 290, // "SKY・STAGE" | |
177 | |
178 "1007.ontvjapan.com" => "CS18", // 240, // "ムービープラスHD" | |
179 "1027.ontvjapan.com" => "CS18", // 262, // "ゴルフネットワーク" | |
180 "1074.ontvjapan.com" => "CS18", // 314, // "LaLa HD" | |
181 | |
182 "1073.ontvjapan.com" => "CS20", // 258, // "フジテレビ739" | |
183 "1072.ontvjapan.com" => "CS20", // 302, // "フジテレビ721" | |
184 "1047.ontvjapan.com" => "CS20", // 332, // "アニマックス" | |
185 "1062.ontvjapan.com" => "CS20", // 340, // "ディスカバリー" | |
186 "1193.ontvjapan.com" => "CS20", // 341, // "アニマルプラネット" | |
187 | |
188 "160ch.epgdata.ontvjapan" => "CS22", // 160, // "C-TBSウエルカム" | |
189 //"1120.ontvjapan.com" => "CS22", // 161, // "QVC" | |
190 "185ch.epgdata.ontvjapan" => "CS22", // 185, // "プライム365.TV" | |
191 "1015.ontvjapan.com" => "CS22", // 293, // "ファミリー劇場" | |
192 "3201.ontvjapan.com" => "CS22", // 301, // "TBSチャンネル" | |
193 "1090.ontvjapan.com" => "CS22", // 304, // "ディズニーチャンネル" | |
194 "1022.ontvjapan.com" => "CS22", // 325, // "MUSIC ON! TV" | |
195 "1045.ontvjapan.com" => "CS22", // 330, // "キッズステーション" | |
196 "1076.ontvjapan.com" => "CS22", // 351, // "TBSニュースバード" | |
197 | |
198 "1068.ontvjapan.com" => "CS24", // 257, // "日テレG+" | |
199 "5004.ontvjapan.com" => "CS24", // 291, // "fashion TV" | |
200 "300ch.epgdata.ontvjapan" => "CS24", // 300, // "日テレプラス" | |
201 "1023.ontvjapan.com" => "CS24", // 320, // "エコミュージックTV" | |
202 "1208.ontvjapan.com" => "CS24", // 321, // "Music Japan TV" | |
203 "2002.ontvjapan.com" => "CS24", // 350, // "日テレNEWS24" | |
204 /* | |
205 "110ch.epgdata.ontvjapan" => "CS22", 110, // "ワンテンポータル" | |
206 "101ch.epgdata.ontvjapan" => "CS22", 101, // "宝塚プロモチャンネル" | |
207 "147ch.epgdata.ontvjapan" => "CS22", 147, // "CS日本番組ガイド" | |
208 */ | |
209 ); | |
1 | 210 |
152
784e3c82926e
mod: yazucchiΥѥå
epgrec@park.mda.or.jp <yoneda@recorder.localnet.mda.or.jp>
parents:
147
diff
changeset
|
211 |
784e3c82926e
mod: yazucchiΥѥå
epgrec@park.mda.or.jp <yoneda@recorder.localnet.mda.or.jp>
parents:
147
diff
changeset
|
212 // 地上デジタルチャンネルテーブルsettings/gr_channel.phpが存在するならそれを |
784e3c82926e
mod: yazucchiΥѥå
epgrec@park.mda.or.jp <yoneda@recorder.localnet.mda.or.jp>
parents:
147
diff
changeset
|
213 // 優先する |
784e3c82926e
mod: yazucchiΥѥå
epgrec@park.mda.or.jp <yoneda@recorder.localnet.mda.or.jp>
parents:
147
diff
changeset
|
214 if( file_exists( INSTALL_PATH."/settings/gr_channel.php" ) ) { |
784e3c82926e
mod: yazucchiΥѥå
epgrec@park.mda.or.jp <yoneda@recorder.localnet.mda.or.jp>
parents:
147
diff
changeset
|
215 unset($GR_CHANNEL_MAP); |
784e3c82926e
mod: yazucchiΥѥå
epgrec@park.mda.or.jp <yoneda@recorder.localnet.mda.or.jp>
parents:
147
diff
changeset
|
216 include_once( INSTALL_PATH."/settings/gr_channel.php" ); |
784e3c82926e
mod: yazucchiΥѥå
epgrec@park.mda.or.jp <yoneda@recorder.localnet.mda.or.jp>
parents:
147
diff
changeset
|
217 } |
784e3c82926e
mod: yazucchiΥѥå
epgrec@park.mda.or.jp <yoneda@recorder.localnet.mda.or.jp>
parents:
147
diff
changeset
|
218 |
784e3c82926e
mod: yazucchiΥѥå
epgrec@park.mda.or.jp <yoneda@recorder.localnet.mda.or.jp>
parents:
147
diff
changeset
|
219 // |
784e3c82926e
mod: yazucchiΥѥå
epgrec@park.mda.or.jp <yoneda@recorder.localnet.mda.or.jp>
parents:
147
diff
changeset
|
220 // settings/site_conf.phpがあればそれを優先する |
784e3c82926e
mod: yazucchiΥѥå
epgrec@park.mda.or.jp <yoneda@recorder.localnet.mda.or.jp>
parents:
147
diff
changeset
|
221 // |
784e3c82926e
mod: yazucchiΥѥå
epgrec@park.mda.or.jp <yoneda@recorder.localnet.mda.or.jp>
parents:
147
diff
changeset
|
222 if( file_exists( INSTALL_PATH."/settings/site_conf.php" ) ) { |
784e3c82926e
mod: yazucchiΥѥå
epgrec@park.mda.or.jp <yoneda@recorder.localnet.mda.or.jp>
parents:
147
diff
changeset
|
223 unset($GR_CHANNEL_MAP); |
784e3c82926e
mod: yazucchiΥѥå
epgrec@park.mda.or.jp <yoneda@recorder.localnet.mda.or.jp>
parents:
147
diff
changeset
|
224 unset($RECORD_MODE); |
784e3c82926e
mod: yazucchiΥѥå
epgrec@park.mda.or.jp <yoneda@recorder.localnet.mda.or.jp>
parents:
147
diff
changeset
|
225 include_once( INSTALL_PATH."/settings/site_conf.php" ); |
784e3c82926e
mod: yazucchiΥѥå
epgrec@park.mda.or.jp <yoneda@recorder.localnet.mda.or.jp>
parents:
147
diff
changeset
|
226 } |
784e3c82926e
mod: yazucchiΥѥå
epgrec@park.mda.or.jp <yoneda@recorder.localnet.mda.or.jp>
parents:
147
diff
changeset
|
227 |
784e3c82926e
mod: yazucchiΥѥå
epgrec@park.mda.or.jp <yoneda@recorder.localnet.mda.or.jp>
parents:
147
diff
changeset
|
228 // Deprecated |
784e3c82926e
mod: yazucchiΥѥå
epgrec@park.mda.or.jp <yoneda@recorder.localnet.mda.or.jp>
parents:
147
diff
changeset
|
229 // カスタマイズした設定をロードし、デフォルト設定をオーバライドする |
784e3c82926e
mod: yazucchiΥѥå
epgrec@park.mda.or.jp <yoneda@recorder.localnet.mda.or.jp>
parents:
147
diff
changeset
|
230 // unsetはカスタム設定ファイルの責任で行う |
784e3c82926e
mod: yazucchiΥѥå
epgrec@park.mda.or.jp <yoneda@recorder.localnet.mda.or.jp>
parents:
147
diff
changeset
|
231 if( file_exists( INSTALL_PATH."/settings/config_custom.php" ) ) { |
784e3c82926e
mod: yazucchiΥѥå
epgrec@park.mda.or.jp <yoneda@recorder.localnet.mda.or.jp>
parents:
147
diff
changeset
|
232 include_once( INSTALL_PATH."/settings/config_custom.php" ); |
784e3c82926e
mod: yazucchiΥѥå
epgrec@park.mda.or.jp <yoneda@recorder.localnet.mda.or.jp>
parents:
147
diff
changeset
|
233 } |
784e3c82926e
mod: yazucchiΥѥå
epgrec@park.mda.or.jp <yoneda@recorder.localnet.mda.or.jp>
parents:
147
diff
changeset
|
234 |
784e3c82926e
mod: yazucchiΥѥå
epgrec@park.mda.or.jp <yoneda@recorder.localnet.mda.or.jp>
parents:
147
diff
changeset
|
235 |
1 | 236 // DBテーブル情報 以下は変更しないでください |
237 | |
238 define( "RESERVE_TBL", "reserveTbl" ); // 予約テーブル | |
239 define( "PROGRAM_TBL", "programTbl" ); // 番組表 | |
240 define( "CHANNEL_TBL", "channelTbl" ); // チャンネルテーブル | |
241 define( "CATEGORY_TBL", "categoryTbl" ); // カテゴリテーブル | |
242 define( "KEYWORD_TBL", "keywordTbl" ); // キーワードテーブル | |
136
6754b6aa50cf
mod: ǽΤconfig.phpѹ
epgrec@park.mda.or.jp <yoneda@recorder.localnet.mda.or.jp>
parents:
114
diff
changeset
|
243 // ログテーブル |
6754b6aa50cf
mod: ǽΤconfig.phpѹ
epgrec@park.mda.or.jp <yoneda@recorder.localnet.mda.or.jp>
parents:
114
diff
changeset
|
244 define( "LOG_TBL", "logTbl" ); |
147
fadae5e39857
fix: ͥɲ
epgrec@park.mda.or.jp <yoneda@recorder.localnet.mda.or.jp>
parents:
143
diff
changeset
|
245 ?> |