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/
10 require_once './trpgchat-ini.php';
11 require_once './lib/trpgchat.php';
12 require_once './lib/pastlog.php';
18 set_config(read_config());
26 print html_header(CHAT_TITLE.' 管理画面', 'admin', true, true);
29 require_once './lib/js/trpgchat-js.php';
33 <style type="text/css">
35 input, textarea, select {
42 <h2 align="center"><?php print CHAT_TITLE; ?> 管理画面</h2>
45 if ($_GET['msg']) print '<p class="msg">'.$_GET['msg'].'</p>';
48 <table cellspacing="0" align="center">
50 <p align="center"style="color:blue;" ><b>設定</b></p>
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>
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;">
90 <td><input type="checkbox" name="datetime" value="1">
92 <td><input type="checkbox" name="whisper" value="1">ささやき全表示</td>
93 <td><input checked type="checkbox" name="delete" value="1">ログ削除</td>
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>
97 <span align="left">「ささやき全表示」:指定すると公開ログにも全ての「ささやき」が表示されます。<br>
98 「ログ削除」:過去ログ作成と同時に、現在のログを全て削除します。<br></span>
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>
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>
110 <span align="left">過去ログ整理用ディレクトリを作成します。<br>
111 ディレクトリ階層は、1階層のみ有効です。<br>
112 過去ログファイルがあるディレクトリは削除できません。<br>
113 ディレクトリ名に使える文字は、半角英数字とハイフン(-)、アンダーバー(_)のみです。<br>
118 <td valign="top" width="50%">
122 print_pastlog_contents_list(PAST_DIR, 'root', 'ASC', true, './pastlog_edit_file.php');
125 <td valign="top" width="50%">
126 <h4>管理用過去ログ(非公開)</h4>
129 print_pastlog_contents_list(MASTER_PAST_DIR, 'root_past', 'ASC', true, './pastlog_edit_file.php', '_past');
132 <h5 style="margin-bottom:0em;">管理用過去ログには、全ての発言時間・ささやき・参加者のホスト情報が記録されます</h5>
139 <p><img src="image/blog_jscript.gif" alt="Javascript" width="80" height="15">過去ログ管理機能は、JavaScript不可の環境では使用できません。</p>