3 * Ajax Chat for TRPG ver.1.0
4 * (c)2007 Cake All righ1ts reserved.
5 * Mail : cake_67@users.sourceforge.jp
6 * Home : http://trpgtools-onweb.sourceforge.jp/
9 * 本チャットスクリプトの使用および配布は、BSDライセンスに基づきます。
10 * BSDライセンスの詳細につきましては、添付のライセンス.txtを参照してください。
13 * 1. このスクリプトはフリーソフトです。以下の条件を満たす限りにおいて、使用・改造・再配布(オリジナルおよび改造版の両方とも)は自由です。
14 * 再配布する場合、上記著作権表示、本条件書きおよび第2項・第3項の責任限定規定を必ず含めてください。
15 * 2. 同梱のアイコンはPetite Prier様(http://snow.if.tv/)の素材です。
16 本スクリプトの使用および再配布時にアイコンをそのまま用いる場合は、配布元の規定も遵守してください。
17 * 3. 本スクリプトは無保証です。自己責任で使用してください。このスクリプトを使用したいかなる損害に対しても、作者は一切の責任を負いません。
18 * 4. 設置および使用方法に関する質問は、配布サイトの掲示板にお願いします。ただし、必ず回答できるとは限りません。
23 require_once './trpgchat-ini.php';
26 print html_header('index', $title.' 過去ログ', true, true);
29 <script type="text/javascript">
31 function onLoadClick() {
32 if ($("#name").attr("value") && $("#pwd").attr("value")) {
37 function showLog(Obj) {
38 if(Obj.value != ""){
\r
39 window.mainframe.location.href = Obj.value;
\r
45 <body onload="onLoadClick()">
46 <table border="0" cellspacing="3" cellpadding="0" id="user" align="center">
48 <td class="nodisplay">
49 <form action="./pastlog_main.php" target="mainframe" method="get" name="show" class="show" id="show">
52 <img name="whisper" title="最新ログでは、お名前とパスワードを入力すると、関連する「ささやき」も表示されます。" src="./<?php print $whisper; ?>" align="bottom" hspace="1" vspace="0" border="0"></td>
54 お名前:<input type="text" name="name" id="name" value="<?php print $_REQUEST['name'] ?>" size="8" class="inputname" id="name">
57 パスワード:<input type="password" name="pwd" size="4" class="inputpwd" id="pwd" value="<?php print $_REQUEST['pwd'] ?>">
60 <input type="submit" id="last" class="btn sub" value="最新のログ">
62 <td class="nodisplay">
66 <table border="0" align="center">
68 <td class="nodisplay">
69 <form action="<?php print $home; ?>" method="<?php print $method; ?>">
72 <input type="image" class="btn sub" src="<?php print $home_icon; ?>" alt="ホーム" title="ホーム">
74 <td class="nodisplay">
77 <td class="nodisplay">
78 <form name="past" id="past" onsubmit="return false;" action=""></td>
80 <select name="logfile">
81 <option value="">もっと前のログを見る</option>
83 if ($dir = opendir($past_dir)) {
84 while($logfiles = readdir($dir)) {
85 if (!ereg("^\.", $logfiles) && $logfiles != 'index.html') {
86 $array_logfiles[] = "<option value=\"".$past_dir.$logfiles."\">".$logfiles."</option>\n";
91 if ($array_logfiles) {
92 rsort($array_logfiles);
93 foreach ($array_logfiles as $v) {
101 <td align="left" nowrap>
102 <input type="button" class="btn sub" value="表示" onclick="showLog(this.form.logfile)">
105 <td class="nodisplay">
108 <td class="nodisplay">
109 <form action="<?php print $pastlog_maker; ?>" method="<?php print $method; ?>" target="admin">
112 管理画面:<input type="password" name="admin_pwd" size="4" class="inputpwd" value="">
115 <input type="image" class="btn sub" src="<?php print $admin_icon; ?>">
117 <td class="nodisplay">
122 <iframe src="./pastlog_main.php" width="100%" frameborder="1" border="1" allowtransparency="true" scrolling="auto" name="mainframe" class="mainframe" style="height:445px;" id="mainframe"></iframe>
125 <p><img src="image/blog_jscript.gif" alt="Javascript" width="80" height="15">過去ログ表示機能は、JavaScript が不可の環境では、一部機能のみ使用可能です</p>
130 print html_footer($copyright);