Mercurial > epgrec.yaz
annotate install/step4.php @ 175:f68f63465a41 default tip
handles RecException instead of Exception
| author | Yoshiki Yazawa <yaz@honeyplanet.jp> |
|---|---|
| date | Tue, 16 Apr 2013 15:24:02 +0900 |
| parents | a935b4789aff |
| children |
| rev | line source |
|---|---|
|
32
01a8fdc0cebb
testing: Web base setting page.
Sushi-k <epgrec@park.mda.or.jp>
parents:
diff
changeset
|
1 <?php |
|
01a8fdc0cebb
testing: Web base setting page.
Sushi-k <epgrec@park.mda.or.jp>
parents:
diff
changeset
|
2 include_once( "../config.php"); |
|
01a8fdc0cebb
testing: Web base setting page.
Sushi-k <epgrec@park.mda.or.jp>
parents:
diff
changeset
|
3 include_once( INSTALL_PATH."/Settings.class.php" ); |
|
01a8fdc0cebb
testing: Web base setting page.
Sushi-k <epgrec@park.mda.or.jp>
parents:
diff
changeset
|
4 |
|
01a8fdc0cebb
testing: Web base setting page.
Sushi-k <epgrec@park.mda.or.jp>
parents:
diff
changeset
|
5 // 設定の保存 |
|
01a8fdc0cebb
testing: Web base setting page.
Sushi-k <epgrec@park.mda.or.jp>
parents:
diff
changeset
|
6 $settings = Settings::factory(); |
|
01a8fdc0cebb
testing: Web base setting page.
Sushi-k <epgrec@park.mda.or.jp>
parents:
diff
changeset
|
7 $settings->post(); |
|
01a8fdc0cebb
testing: Web base setting page.
Sushi-k <epgrec@park.mda.or.jp>
parents:
diff
changeset
|
8 $settings->save(); |
|
01a8fdc0cebb
testing: Web base setting page.
Sushi-k <epgrec@park.mda.or.jp>
parents:
diff
changeset
|
9 |
| 40 | 10 ?> |
|
32
01a8fdc0cebb
testing: Web base setting page.
Sushi-k <epgrec@park.mda.or.jp>
parents:
diff
changeset
|
11 |
| 40 | 12 <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" |
| 13 "http://www.w3.org/TR/html4/loose.dtd"> | |
| 14 <html> | |
| 15 <head> | |
| 16 <meta http-equiv="Content-Type" content="text/html; charset=UTF-8"> | |
| 17 <meta http-equiv="Content-Style-Type" content="text/css"> | |
| 18 <title>インストール最終ステップ</title> | |
| 19 </head> | |
| 20 | |
| 21 <body> | |
| 22 | |
| 23 <p>初期設定が完了しました。下のリンクをクリックするとEPGの初回受信が始まります。 | |
| 24 EPGの受信には20~50分程度はかかります。初回受信が終了するまで番組表は表示できません。</p> | |
|
32
01a8fdc0cebb
testing: Web base setting page.
Sushi-k <epgrec@park.mda.or.jp>
parents:
diff
changeset
|
25 |
| 40 | 26 <p>EPG受信後、/etc/cron.d/以下にcronによるEPG受信の自動実行を設定する必要があります。 |
| 27 Debian/Ubuntu用の設定ファイルは<?php echo INSTALL_PATH; ?>/cron.d/getepgです。Debian/Ubuntuをお使いの方は<br> | |
| 28 <pre> | |
| 29 $ sudo cp <?php echo INSTALL_PATH; ?>/cron.d/getepg /etc/cron.d/ [Enter] | |
| 30 </pre> | |
| 31 <br>という具合にコピーするだけで動作するでしょう。それ以外のディストリビューションをお使いの方は | |
| 32 Debian/Ubuntu用の設定ファイルを参考に、適切にcronの設定を行ってください。</p> | |
|
32
01a8fdc0cebb
testing: Web base setting page.
Sushi-k <epgrec@park.mda.or.jp>
parents:
diff
changeset
|
33 |
| 40 | 34 <p>なお、設定ミスや受信データの異常によってEPGの初回受信に失敗すると番組表の表示はできません。 |
| 35 設定ミスが疑われる場合、<a href="<?php echo $settings->install_url; ?>/install/step1.php">インストール設定</a>を実行し直してください。 | |
| 36 また、手動でEPGの受信を試みるのもひとつの方法です。コンソール上で、<br> | |
| 37 <pre> | |
| 38 $ <?php echo INSTALL_PATH; ?>/getepg.php [Enter] | |
| 39 </pre> | |
| 40 <br> | |
| 41 と実行してください。</p> | |
|
32
01a8fdc0cebb
testing: Web base setting page.
Sushi-k <epgrec@park.mda.or.jp>
parents:
diff
changeset
|
42 |
| 40 | 43 <a href="step5.php">このリンクをクリックするとEPGの初回受信が始まります</a> |
| 44 | |
| 45 </body> | |
| 46 </html> |
