OSDN Git Service

trpgchat ver2.6.1
[trpgtools-onweb/AjaxChat.git] / admin.php
1 <?php
2 /*
3  Ajax Chat for TRPG ver.2.6.1
4  (c)2007-2009 Cake All Rights Reserved.
5  Mail : cake_67@users.sourceforge.jp
6  Home : http://trpgtools-onweb.sourceforge.jp/
7  */
8
9 // 設定ファイルの読み込み
10 require_once './trpgchat-ini.php';
11 require_once './lib/trpgchat.php';
12 require_once './lib/pastlog.php';
13
14 // パスワードの照合
15 auth();
16
17 // 設定セット
18 set_config(read_config());
19
20 // アクセスブロック
21 access_block();
22
23 $request = request();
24
25 // 画面表示:HTML出力
26 print html_header(CHAT_TITLE.' 管理画面', 'admin', true, true);
27
28 // JavaScript読み込み
29 require_once './lib/js/trpgchat-js.php';
30
31 ?>
32 </head>
33 <style type="text/css">
34 <!--
35 input, textarea, select {
36         margin: 3px 0px;
37 }
38
39 -->
40 </style>
41 <body>
42 <h2 align="center"><?php print CHAT_TITLE; ?> 管理画面</h2>
43 <br>
44 <?php
45 if ($_GET['msg']) print '<p class="msg">'.$_GET['msg'].'</p>';
46 ?>
47
48 <table cellspacing="0" align="center">
49 <tr><td colspan="2">
50 <p align="center"style="color:blue;" ><b>設定</b></p>
51 <div align="center">
52 <span align="left">
53
54 </span>
55 <form action="./edit_config.php" method="<?php print METHOD; ?>">
56 <input type="hidden" name="mode" value="重要な">
57 <input type="submit" value="重要な設定"></form>
58 <form action="./edit_config.php" method="<?php print METHOD; ?>">
59 <input type="hidden" name="mode" value="TRPG機能関連">
60 <input type="submit" value="TRPG機能関連設定"></form>
61 <form action="./edit_config.php" method="<?php print METHOD; ?>">
62 <input type="hidden" name="mode" value="タグ">
63 <input type="submit" value="タグ使用設定"></form>
64 <form action="./edit_config.php" method="<?php print METHOD; ?>">
65 <input type="hidden" name="mode" value="全体の配色">
66 <input type="submit" value="全体の配色設定"></form>
67 <form action="./edit_config.php" method="<?php print METHOD; ?>">
68 <input type="hidden" name="mode" value="チャット画面の配色">
69 <input type="submit" value="チャット画面の配色設定"></form>
70 <form action="./edit_config.php" method="<?php print METHOD; ?>">
71 <input type="hidden" name="mode" value="全般">
72 <input type="submit" value="全般設定"></form>
73 <form action="./edit_config.php" method="<?php print METHOD; ?>">
74 <input type="hidden" name="mode" value="アイコン">
75 <input type="submit" value="アイコン設定"></form>
76 <form action="./edit_config.php" method="<?php print METHOD; ?>">
77 <input type="hidden" name="mode" value="携帯">
78 <input type="submit" value="携帯設定"></form>
79 <form action="./edit_config.php" method="<?php print METHOD; ?>">
80 <input type="hidden" name="mode" value="カード機能関連">
81 <input type="submit" value="カード機能関連設定"></form>
82 </div>
83 <hr>
84 </td></tr>
85 <tr><td colspan="2">
86 <div style="color:blue;" align="center"><b>過去ログ作成</b></div>
87 <form action="./pastlog_create.php" method="<?php print METHOD; ?>" name="write_log">
88 <table align="center" style="border:none; margin:auto;">
89 <tr>
90 <td><input type="checkbox" name="datetime" value="1">
91 発言時間表示</td>
92 <td><input type="checkbox" name="whisper" value="1">ささやき全表示</td>
93 <td><input checked type="checkbox" name="delete" value="1">ログ削除</td>
94 </tr>
95 <tr><td colspan="3" align="center">ログファイル名:<input name="filename" type="text" value="<?php print date('Ymd'); ?>" size="10" maxlength="30" style="ime-mode:disabled;">.html <input type="submit" value="過去ログ作成"></td></tr>
96 </table></form>
97 <span align="left">「ささやき全表示」:指定すると公開ログにも全ての「ささやき」が表示されます。<br>
98 「ログ削除」:過去ログ作成と同時に、現在のログを全て削除します。<br></span>
99 <hr>
100 </td></tr>
101 <tr><td colspan="2">
102 <div style="color:blue;" align="center"><b>ディレクトリ編集</b></div>
103 <form action="./pastlog_edit_dir.php" method="<?php print METHOD; ?>">
104 <table align="center" style="border:none; margin:auto;">
105 <tr><td align="center">ディレクトリ名:<input name="dirname" type="text" value="<?php print date('Ym'); ?>" size="10" maxlength="30" style="ime-mode:disabled;"> 対象<input name="type" type="radio" value="<?php print PAST_DIR; ?>" checked>公開側<input name="type" type="radio" value="<?php print MASTER_PAST_DIR; ?>">管理側</td></tr>
106 <tr><td align="right"><input type="submit" name="mode" value="新規作成"> <input type="submit" name="mode" value="削除"></td></tr>
107 <tr>
108 <td align="right" nowrap>変更後ディレクトリ名:<input name="dirname_new" type="text" value="" size="10" maxlength="30" style="ime-mode:disabled;"> <input type="submit" name="mode" value="変更"></form></td></tr>
109 </table>
110 <span align="left">過去ログ整理用ディレクトリを作成します。<br>
111 ディレクトリ階層は、1階層のみ有効です。<br>
112 過去ログファイルがあるディレクトリは削除できません。<br>
113 ディレクトリ名に使える文字は、半角英数字とハイフン(-)、アンダーバー(_)のみです。<br>
114 </span>
115 <hr>
116 </td></tr>
117 <tr>
118 <td valign="top" width="50%">
119 <h4>公開過去ログ</h4>
120 <br>
121 <?php
122 print_pastlog_contents_list(PAST_DIR, 'root', 'ASC', true, './pastlog_edit_file.php');
123 ?>
124 </td>
125 <td valign="top" width="50%">
126 <h4>管理用過去ログ(非公開)</h4>
127 <br>
128 <?php
129 print_pastlog_contents_list(MASTER_PAST_DIR, 'root_past', 'ASC', true, './pastlog_edit_file.php', '_past');
130 ?>
131
132 <h5 style="margin-bottom:0em;">管理用過去ログには、全ての発言時間・ささやき・参加者のホスト情報が記録されます</h5>
133 <br>
134 </td>
135 </tr>
136 </table>
137
138 <noscript>
139 <p><img src="image/blog_jscript.gif" alt="Javascript" width="80" height="15">過去ログ管理機能は、JavaScript不可の環境では使用できません。</p>
140 </noscript>
141
142 <?php
143 // フッター
144 print html_footer();
145 ?>