OSDN Git Service

PHP Notice対応
[trpgtools-onweb/AjaxChat.git] / setup.php
index bb296a9..169c45b 100644 (file)
--- a/setup.php
+++ b/setup.php
@@ -1,9 +1,9 @@
 <?php
 /*
- * Ajax Chat for TRPG ver.2.4
* (c)2007-2009 Cake All rights reserved.
Mail : cake_67@users.sourceforge.jp
Home : http://trpgtools-onweb.sourceforge.jp/
+ Ajax Chat for TRPG ver.2.6.2
(c)2007-2009 Cake All Rights Reserved.
+ Mail : cake_67@users.sourceforge.jp
+ Home : http://trpgtools-onweb.sourceforge.jp/
  */
 /*****************
  *  かんたんセットアップ
@@ -79,6 +79,8 @@ if (!$mode) {
     print input_area('text', 'tag', './config-data-tag.php');
     print output_table("TRPG関連の設定ファイル");
     print input_area('text', 'trpg', './config-data-trpg.php');
+    print output_table("カード関連の設定ファイル");
+    print input_area('text', 'card', './config-data-card.php');
     print output_table("全体の配色設定ファイル");
     print input_area('text', 'bc', './config-data-base-color.php');
     print output_table("チャット画面の配色設定ファイル");
@@ -99,10 +101,18 @@ if (!$mode) {
     print input_area('text', 'mpdir', './master_past/');
     print output_table("参加メンバーログファイル");
     print input_area('text', 'mem', './member.log');
+    print output_table("システムログファイル");
+    print input_area('text', 'syslog', './system.log');
     print output_table("ロックファイル");
     print input_area('text', 'l1', './lock.txt');
-    print "\n";
     print input_area('text', 'l2', './lock2.txt');
+    print input_area('text', 'l3', './lock3.txt');
+    print output_table("カード設定ディレクトリ");
+    print input_area('text', 'cdir', './lib/card/');
+    print output_table("現在のカード状態ファイル");
+    print input_area('text', 'nd', './deckset.json');
+    print input_area('text', 'nds', './deck_status.json');
+    print "\n";
 
     print "</td></tr>\n";
     print '<tr><td style="text-align:center;" colspan="2">';
@@ -176,6 +186,21 @@ if (!$mode) {
         if (!defined('CONFIG_MOBILE')) {
             define('CONFIG_MOBILE', './config-data-mobile.php');
         }
+        if (!defined('CONFIG_CARD')) {
+            define('CONFIG_CARD', './config-data-card.php');
+        }
+        if (!defined('LOCK3')) {
+            define('LOCK3', './lock3.txt');
+        }
+        if (!defined('CARD_DIR')) {
+            define('CARD_DIR', './lib/card/');
+        }
+        if (!defined('NOW_DECK')) {
+            define('NOW_DECK', './deckset.json');
+        }
+        if (!defined('NOW_DECK_STATUS')) {
+            define('NOW_DECK_STATUS', './deck_status.json');
+        }
 
         require_once $prev_ini;
         $data = array(
@@ -185,6 +210,7 @@ if (!$mode) {
             'imp' => CONFIG_IMPORTANT,
             'tag' => CONFIG_TAG,
             'trpg' => CONFIG_TRPG,
+            'card' => CONFIG_CARD,
             'bc' => CONFIG_BASE_COLOR,
             'mc' => CONFIG_MAIN_COLOR,
             'main' => CONFIG_MAIN,
@@ -195,8 +221,13 @@ if (!$mode) {
             'pdir' => PAST_DIR,
             'mpdir' => MASTER_PAST_DIR,
             'mem' => NOW_MEMBER,
+            'syslog' => SYSTEM_LOG,
             'l1' => LOCK,
             'l2' => LOCK2,
+            'l3' => LOCK3,
+            'cdir' => CARD_DIR,
+            'nd' => NOW_DECK,
+            'nds' => NOW_DECK_STATUS,
         );
 
         if ($data['masterpass'] != $request['masterpass']) error("パスワードが合致しません", true);
@@ -214,6 +245,7 @@ if (!$mode) {
         CONFIG_IMPORTANT,
         CONFIG_TAG,
         CONFIG_TRPG,
+        CONFIG_CARD,
         CONFIG_BASE_COLOR,
         CONFIG_MAIN_COLOR,
         CONFIG_MAIN,