<?php
/*
- * Ajax Chat for TRPG ver.2.1
- * (c)2007-2008 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/
*/
// 設定ファイルの読み込み
// 設定セット
set_config(read_config());
+// 直近の過去ログ&HTML化過去ログ両方非表示なら動作しない
+if (DELETE_LAST_PASTLOG && !PUBLIC_PASTLOG) error("現在過去ログは表示できません", false, true);
+
// アクセスブロック
access_block();
<tr>
<td align="left" valign="top">
+<?php
+// 直近の過去ログを「流す」場合は表示せず
+if (!DELETE_LAST_PASTLOG) {
+ print <<< DOC
<table border="0" cellspacing="3" cellpadding="0">
<tr>
<td colspan="2" class="nodisplay">
-<form action="./pastlog_main.php" target="mainframe" method="<?php print METHOD; ?>" name="show" class="show" id="show">
+DOC;
+print '<form action="./pastlog_main.php" target="mainframe" method="'.METHOD.'" name="show" class="show" id="show">';
+print <<< DOC
</td>
</tr>
<tr>
<td colspan="2" nowrap>
-お名前:<input type="text" name="name" id="name" size="8" class="inputname" id="name">
+お名前:<input type="text" name="name_on" id="name_on" size="8" class="inputname">
</td>
</tr>
<tr>
<td colspan="2" nowrap>
-パスワード:<input type="password" name="pwd" size="4" class="inputpwd" id="pwd">
+パスワード:<input type="password" name="pwd_on" size="4" class="inputpwd" id="pwd_on">
</td>
</tr>
<tr>
<td nowrap>
-<img name="whisper" title="最新ログでは、お名前とパスワードを入力すると、関連する「ささやき」も表示されます。" src="<?php print WHISPER_ICON; ?>" align="bottom" hspace="1" vspace="0" border="0">
+DOC;
+show_icon(WHISPER_ON_ICON, '', '', '', '∂', 'お名前とパスワードを入力してください', '');
+print <<< DOC
<input type="submit" id="last" class="btn sub" value="最新のログ">
</td>
<td class="nodisplay">
</form></td>
</tr>
+<tr>
+<td class="nodisplay"><form action="./#" method="METHOD" onsubmit="pastlogHtmlOutput();return false;"></td>
+</tr>
+<tr>
+<td>
+<input type="submit" class="btn sub" value="ダウンロード" >
+</td>
+</tr>
+<tr>
+<td class="nodisplay">
+</form></td>
+</tr>
</table>
<hr>
-<?php
-// 過去ログファイルの表示
+DOC;
+}
+
+// HTML化過去ログファイルの表示
if (PUBLIC_PASTLOG) {
print "<p>\n";
- print_pastlog_contents_list(PAST_DIR, 'root', 'DESC', '', '', '' , 'open', 'close', 'もっと前のログ');
+ print_pastlog_contents_list(PAST_DIR, 'root', 'DESC', '', '', '' , 'open', 'close', 'もっと前のログ', 'クリックで開閉', 'mainframe');
print "</p>\n";
print "<hr>\n";
}
-
?>
<table border="0" cellspacing="3" cellpadding="0">
<tr>
-<td colspan="2" class="nodisplay">
-<form action="./auth.php" method="<?php print METHOD; ?>" target="admin">
-</td>
-</tr>
-<tr>
-<td colspan="2" class="nodisplay">
-</form>
-</td>
-</tr>
-<tr>
<td class="nodisplay">
<form action="<?php print HOME; ?>" method="<?php print METHOD; ?>" target="_self">
</td>
</td>
<td width="100%" valign="top">
-<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>
+<iframe src="./pastlog_main.php" width="100%" frameborder="1" border="1" allowtransparency="true" scrolling="auto" name="mainframe" class="mainframe" style="height:525px;" id="mainframe"></iframe>
</td></tr>
</table>
<noscript>