annotate install/step4.php @ 32:01a8fdc0cebb

testing: Web base setting page.
author Sushi-k <epgrec@park.mda.or.jp>
date Mon, 27 Jul 2009 18:48:51 +0900
parents
children a935b4789aff
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
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
01a8fdc0cebb testing: Web base setting page.
Sushi-k <epgrec@park.mda.or.jp>
parents:
diff changeset
10 echo '<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"';
01a8fdc0cebb testing: Web base setting page.
Sushi-k <epgrec@park.mda.or.jp>
parents:
diff changeset
11 echo '"http://www.w3.org/TR/html4/loose.dtd">';
01a8fdc0cebb testing: Web base setting page.
Sushi-k <epgrec@park.mda.or.jp>
parents:
diff changeset
12 echo '<html>';
01a8fdc0cebb testing: Web base setting page.
Sushi-k <epgrec@park.mda.or.jp>
parents:
diff changeset
13 echo '<head>';
01a8fdc0cebb testing: Web base setting page.
Sushi-k <epgrec@park.mda.or.jp>
parents:
diff changeset
14 echo '<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">';
01a8fdc0cebb testing: Web base setting page.
Sushi-k <epgrec@park.mda.or.jp>
parents:
diff changeset
15 echo '<meta http-equiv="Content-Style-Type" content="text/css">';
01a8fdc0cebb testing: Web base setting page.
Sushi-k <epgrec@park.mda.or.jp>
parents:
diff changeset
16 echo '<title>インストール最終ステップ</title>';
01a8fdc0cebb testing: Web base setting page.
Sushi-k <epgrec@park.mda.or.jp>
parents:
diff changeset
17 echo '</head>';
01a8fdc0cebb testing: Web base setting page.
Sushi-k <epgrec@park.mda.or.jp>
parents:
diff changeset
18
01a8fdc0cebb testing: Web base setting page.
Sushi-k <epgrec@park.mda.or.jp>
parents:
diff changeset
19 echo '<body>';
01a8fdc0cebb testing: Web base setting page.
Sushi-k <epgrec@park.mda.or.jp>
parents:
diff changeset
20
01a8fdc0cebb testing: Web base setting page.
Sushi-k <epgrec@park.mda.or.jp>
parents:
diff changeset
21 echo 'これからEPGデータの初回受信を実行します。サーバーの速度や受信可能な局の数によって異なりますが、';
01a8fdc0cebb testing: Web base setting page.
Sushi-k <epgrec@park.mda.or.jp>
parents:
diff changeset
22 echo 'EPGの受信には20~50分程度はかかります。初回受信が終了するまで番組表は表示できません。<br>';
01a8fdc0cebb testing: Web base setting page.
Sushi-k <epgrec@park.mda.or.jp>
parents:
diff changeset
23 echo 'また、設定ミスや受信データの異常によってEPGの初回受信に失敗すると番組表の表示はできません。<br>';
01a8fdc0cebb testing: Web base setting page.
Sushi-k <epgrec@park.mda.or.jp>
parents:
diff changeset
24 echo '設定ミスが疑われる場合、<a href="'.$settings->install_url.'./install/step1.php">インストール設定</a>を実行し直してください。<br>';
01a8fdc0cebb testing: Web base setting page.
Sushi-k <epgrec@park.mda.or.jp>
parents:
diff changeset
25 echo 'また、手動でEPGの受信を試みるのもひとつの方法です。コンソール上で、<br>';
01a8fdc0cebb testing: Web base setting page.
Sushi-k <epgrec@park.mda.or.jp>
parents:
diff changeset
26 echo '<br>';
01a8fdc0cebb testing: Web base setting page.
Sushi-k <epgrec@park.mda.or.jp>
parents:
diff changeset
27 echo '$ '.INSTALL_PATH.'/getepg.php [Enter]<br>';
01a8fdc0cebb testing: Web base setting page.
Sushi-k <epgrec@park.mda.or.jp>
parents:
diff changeset
28 echo '<br>';
01a8fdc0cebb testing: Web base setting page.
Sushi-k <epgrec@park.mda.or.jp>
parents:
diff changeset
29 echo 'と実行してください。<br><br>';
01a8fdc0cebb testing: Web base setting page.
Sushi-k <epgrec@park.mda.or.jp>
parents:
diff changeset
30 echo 'EPGの受信を設定後、/etc/cron.d/以下にEPG受信の自動実行を設定する必要があります。<br>';
01a8fdc0cebb testing: Web base setting page.
Sushi-k <epgrec@park.mda.or.jp>
parents:
diff changeset
31 echo 'Debian/Ubuntu用の設定ファイルは'.INSTALL_PATH.'/cron.d/getepgです。Debian/Ubuntuの方は<br><br>';
01a8fdc0cebb testing: Web base setting page.
Sushi-k <epgrec@park.mda.or.jp>
parents:
diff changeset
32 echo '$ sudo cp '.INSTALL_PATH.'/cron.d/getepg /etc/cron.d/ [Enter]<br>';
01a8fdc0cebb testing: Web base setting page.
Sushi-k <epgrec@park.mda.or.jp>
parents:
diff changeset
33 echo '<br>という具合にコピーするだけで動作するでしょう。それ以外のディストリビューションをお使いの方は';
01a8fdc0cebb testing: Web base setting page.
Sushi-k <epgrec@park.mda.or.jp>
parents:
diff changeset
34 echo 'Debian/Ubuntu用の設定ファイルを参考に、適切に設定を行ってください<br>';
01a8fdc0cebb testing: Web base setting page.
Sushi-k <epgrec@park.mda.or.jp>
parents:
diff changeset
35 echo '<br>';
01a8fdc0cebb testing: Web base setting page.
Sushi-k <epgrec@park.mda.or.jp>
parents:
diff changeset
36 echo 'EPGの初回受信をこのスクリプトから実行します。20~50分程度後に<a href="'.$settings->install_url.'">epgrecのトップページ</a>を開いてください。';
01a8fdc0cebb testing: Web base setting page.
Sushi-k <epgrec@park.mda.or.jp>
parents:
diff changeset
37
01a8fdc0cebb testing: Web base setting page.
Sushi-k <epgrec@park.mda.or.jp>
parents:
diff changeset
38 @system( INSTALL_PATH."/getepg.php &" );
01a8fdc0cebb testing: Web base setting page.
Sushi-k <epgrec@park.mda.or.jp>
parents:
diff changeset
39
01a8fdc0cebb testing: Web base setting page.
Sushi-k <epgrec@park.mda.or.jp>
parents:
diff changeset
40 exit();
01a8fdc0cebb testing: Web base setting page.
Sushi-k <epgrec@park.mda.or.jp>
parents:
diff changeset
41 ?>