📄 read.php
字号:
$content="<span class=javascript id=text".$i.">".$content."</span>";
$aaa=convert_ip($area);
if (!$i) $title=str_replace('%a%','<img src="images/addon.gif" border=0>',$title);
list($print_info[$author],$bar[$author])=view_user_info($author);
if ($topic_islock!=1 && $topic_islock!=3) $bar_add=
" <a onfocus=this.blur() href='post.php?action=quote&forumid=$forumid&filename=$filename&article=$i' title=引用回复这个贴子><img height=16 alt=引用回复这个贴子 src='images/quote.gif' width=19 border=0>引用</a>
<a onfocus=this.blur() href='post.php?action=reply&forumid=$forumid&filename=$filename' title=直接回复贴子><img height=16 alt=直接回复贴子 src='images/reply.gif' width=16 border=0>回复</a> <img align=middle title=向坛主反映不良的帖子 src=images/report.gif border=0><a href='report.php?job=report&forumid=$forumid&filename=$filename&article=$i' title=向坛主反映不良的帖子>报告此贴</a> <a href=sendfriend.php?forumid=$forumid&filename=$filename title=好文章推荐给你朋友!><img src=images/emailtofriend.gif title=好文章推荐给你朋友! border=0>推荐此贴</a><br>";
$time=date("Y-m-d h:m:s",$time);
$lou="<font color=red>[{$i}楼]</font>";
if($i==0)$lou="<font color=red>[楼主]</font>";
$bottombar="<img src=images/from.gif> {$lou}来自:$aaa";
if ($login_status==1 && (($forum_admin && in_array($username,$forum_admin)) ||($father_admin && in_array($username,$father_admin) || ($superadmin && in_array($username,$superadmin))) || $username==$manager)) $bottombar.=" | <img src=images/ip.gif>IP:$area";
if ($i!=0 && $login_status==1 && (($forum_admin && in_array($username,$forum_admin)) ||($father_admin && in_array($username,$father_admin) ||($superadmin && in_array($username,$superadmin))) || $username==$manager)) $bottombar.=" | <a onfocus=this.blur() href='maread.php?action=del&forumid=$forumid&filename=$filename&article=$i'><img src='images/del.gif' width=16 height=16 border=0>删除</a>";
$bottombar.="| <a onfocus=this.blur() href='post.php?action=modify&forumid=$forumid&filename=$filename&article=$i'><img src='images/edit.gif' width=20 height=16 border=0>修改</a> |<b>Posted:</b>$time";
if ($login_status==1 && (($forum_admin && in_array($username,$forum_admin)) ||($father_admin && in_array($username,$father_admin)) || ($superadmin && in_array($username,$superadmin))|| $username==$manager) ) {
if (!ereg("[0-9]{1,3}$",$rvrc)|| $rvrc==rvrc) {$rvrcs=" <form action=action.php?starwwjob=starww&forumid=$forumid&filename=$filename&article=$i method=post><select name='rvrc1'><option value=0>0</option>
<option value=10>1</option>
<option value=20>2</option>
<option value=30>3</option>
<option value=40>4</option>
<option value=50>5</option>
<option value=-10>-1</option>
<option value=-20>-2</option>
<option value=-30>-3</option>
<option value=-40>-4</option>
<option value=-50>-5</option>
</select><input style=\"color: #000000; background-color: #f3f3f3; border-style: solid; border-width: 1\" onMouseOver =\"this.style.backgroundColor='#FFC864'\" onMouseOut =\"this.style.backgroundColor='#f3f3f3'\" type=submit value=\"评分\"></form> ";} else{$rvrc=$rvrc/10; $rvrcs=" 被 $rvrcuser <br>评为 <b><font color=red>$rvrc</font></b> 分<br><br>";}}
else
$rvrcs="<a href=\"javascript:scroll(0,0)\" title=回到顶端><img src=images/gotop.gif border=0></a>";
//mt_srand($timestamp);
if ($icon=="ran") $icon=mt_rand(0,19).".gif";
$titleline="<tr><td valign=top align=left width=32><img height=20 src='images/emotion/$icon' width=20 align=left border=0></td><td valign=top style='LEFT: 0px; WIDTH: 100%; WORD-WRAP: break-word'> <font color=#555555>$title</font></td></tr>";
$contentline="<tr><td colspan=2 valign=center>".convert($content,$ftbcode_post)."</td></tr>";
if ($usesign==1 && $sign[$author]) $contentline.="<tr><td colspan=2 valign=bottom><HR align=left width=\"50%\" color=#777777 SIZE=1>".convert($sign[$author],$ftbcode_sign)."</td></tr>";
showarticle($print_info[$author],$bar[$author].$bar_add);
}
$count=count($forumlist)-1;
for ($i=0; $i<=$count; $i++) {
$forum_list_info=explode("|",$forumlist[$i]);
if ($forum_list_info[0]=="category") $ofstar_listjup.="<OPTION target=\"_self\" value=\"index.php\">$forum_list_info[1]";
else $ofstar_listjup.="<OPTION target=\"_self\" value=\"thread.php?forumid=$forum_list_info[3]\"> |-$forum_list_info[1]";
}
print <<<EOT
<br><table cellspacing=0 cellpadding=0 width=$tablewidth align=center>
<form name=jump method=post><tr><td align=left width="70%">$fengye</td><td valign=center noWrap align=right width=30%>
<select onChange=menu() name=jumpto>$ofstar_listjup</option></select></td></tr></form></table>
EOT;
?><br>
<table cellspacing=0 cellpadding=0 width=<?=$tablewidth?> align=center bgcolor=<?=$bordercolor?> border=0>
<tr>
<td height=1></td>
</tr>
</table>
<table cellspacing=0 cellpadding=0 width=<?=$tablewidth?> align=center border=0>
<tr>
<td valign=center width=1 bgcolor=<?=$bordercolor?> height=22></td>
<td valign=center align=left width=* bgcolor=<?=$titlecolor?>>
<table cellspacing=1 cellpadding=0 width=100% border=0>
<tr bgcolor=<?=$titlecolor?>>
<script>
ie = (document.all)? true:false
if (ie){function ctlent(eventobject){if(event.ctrlKey && window.event.keyCode == 13){this.document.FORM.submit();}}}
clckcnt = 0;
function n_display(t_id){var t_id;t_id.style.display="";}
function clckcntr() {clckcnt++;if(clckcnt > 1) {if(clckcnt > 2) { return false; }alert('贴子已经发出了......\n\n' + '请等待片刻......\n\n' + '不要重复按提交键,谢谢!');return false;}return true;}
function DoComments(addTitle) {
var revisedTitle;
var currentTitle = document.FORM.articlecontent.value; revisedTitle = currentTitle+addTitle; document.FORM.articlecontent.value=revisedTitle; document.FORM.articlecontent.focus();
return;
}
</script>
<td bgcolor=<?=$titlecolor?> valign=center align=left class=title> <b>* <font color=<?=$titlefontcolor?>>快速回复</font></b> </td><td width=10% bgcolor=<?=$titlecolor?> align=right valign=middle height=23><a onfocus=this.blur() href=#top class=title><img src=images/gotop.gif border=0>顶端</a>
</td></tr>
</table>
</td>
<td valign=center width=1 bgcolor=<?=$bordercolor?> height=100%></td>
</tr>
</table>
<table cellspacing=0 cellpadding=0 width=<?=$tablewidth?> align=center bgcolor=<?echo"$bordercolor";?> border=0>
<tr>
<td height=1></td>
</tr>
</table>
<table cellspacing=0 cellpadding=0 width=<?=$tablewidth?> align=center border=1 bordercolor=<?echo"$bordercolor";?>>
<tr>
<td bgcolor=<? if ($bgcolor==$article_color1) $bgcolor=$article_color2; else $bgcolor=$article_color1;echo"$bgcolor";?>>
<table cellspacing=0 cellpadding=4 width=100% height="90%" bgcolor=<?echo"$bgcolor";?>>
<tr>
<td valign=top width=20% bgcolor=<?=$bgcolor?> rowspan=2 align="center"> <br>
<b>文章内容</b>:
<br>
<font face=verdana> HTML 代码不可用 <br>
<a onfocus=this.blur() href="javascript:openScript('faq.php?faqjob=codehelp',580,400)" title=点击查看ftb代码><font face=verdana>ftb
Code</font></a> 开放<br>
<b>代码选项</b>:<br>
<font face=verdana>
<?
echo '[img] -';
if ($ftbcode_post['pic']) echo ' 开启'; else echo ' 关闭';
echo '<br>[flash] -';
if ($ftbcode_post['flash']) echo ' 开启'; else echo ' 关闭';
echo '<br>[size] -';
if ($ftbcode_post['fontsize']) echo ' 开启'; else echo ' 关闭';
?><br><INPUT class=input3 type=checkbox CHECKED value=yes name=actioneot>使用动作
<SELECT onchange=DoComments(this.options[this.selectedIndex].value)>
<OPTION value="" selected>动作</OPTION><OPTION value=/招呼>招呼</OPTION>
<OPTION value=/欢迎>欢迎</OPTION><OPTION value=/灌水>灌水</OPTION>
<OPTION value=/无聊>无聊</OPTION><OPTION value=/负责>负责</OPTION>
<OPTION value=/生气>生气</OPTION><OPTION value=/高兴>高兴</OPTION>
<OPTION value=/鼓掌>鼓掌</OPTION><OPTION value=/等待>等待</OPTION>
<OPTION value=/反对>反对</OPTION><OPTION value=/浪漫>浪漫</OPTION>
<OPTION value=/不要>不要</OPTION><OPTION value=/找死>找死</OPTION>
<OPTION value=/去死>去死</OPTION><OPTION value=/狂笑>狂笑</OPTION>
<OPTION value=/傻笑>傻笑</OPTION><OPTION value=/痛哭>痛哭</OPTION>
<OPTION value=/道别>道别</OPTION><OPTION value=/跳舞>跳舞</OPTION>
<OPTION value=/唱歌>唱歌</OPTION><OPTION value=/害羞>害羞</OPTION>
<OPTION value=/比酷>比酷</OPTION><OPTION value=/救命>救命</OPTION>
<OPTION value=/狂妄>狂妄</OPTION><OPTION value=/拳击>拳击</OPTION>
<OPTION value=/我踢>我踢</OPTION><OPTION value=/我踩>我踩</OPTION>
<OPTION value=/饶命>饶命</OPTION><OPTION value=/眨眼>眨眼</OPTION>
<OPTION value=/臭美>臭美</OPTION><OPTION value=/变态>变态</OPTION>
<OPTION value=/拼酒>拼酒</OPTION><OPTION value=/深情>深情</OPTION>
<OPTION value=/恶心>恶心</OPTION><OPTION value=/惊讶>惊讶</OPTION>
<OPTION value=/抽烟>抽烟</OPTION><OPTION value=/怀疑>怀疑</OPTION>
<OPTION value=/拉勾>拉勾</OPTION><OPTION value=/经典>经典</OPTION>
<OPTION value=/同意>同意</OPTION><OPTION value=/OK>OK</OPTION>
<OPTION value=/kiss>kiss</OPTION><OPTION value=/生日>生日</OPTION>
<OPTION value=/晕倒>晕倒</OPTION><OPTION value=/气你>气你</OPTION>
<OPTION value=/错啦>错啦</OPTION><OPTION value=/加油>加油</OPTION>
<OPTION value=/恭喜>恭喜</OPTION><OPTION value=/简单>简单</OPTION>
<OPTION value=/鼓励>鼓励</OPTION><OPTION value=/过奖>过奖</OPTION>
<OPTION value=/原谅>原谅</OPTION><OPTION value=/大笑>大笑</OPTION>
<OPTION value=/考虑>考虑</OPTION><OPTION value=/感动>感动</OPTION>
<OPTION value=/叹气>叹气</OPTION><OPTION value=/道谢>道谢</OPTION>
<OPTION value=/摇头>摇头</OPTION><OPTION value=/拥抱>拥抱</OPTION>
<OPTION value=/无奈>无奈</OPTION></SELECT><br></td>
<td width=* bgcolor=<?echo"$bgcolor";?> height=90% rowspan=2>
<table height=100% cellspacing=0 cellpadding=0 width=1 bgcolor=<?echo"$bordercolor";?>>
<tr>
<td width=1></td>
</tr>
</table>
</td>
<td width=* bgcolor=<?echo"$bgcolor";?> rowspan=2>
<form name="FORM" method="post" action="post.php">
标题:
<input type="text" name="articletitle" value="回复:<?=$topic_name ?>" size="45" maxlength="45" style="background-color:#ffffff; border: 1 double #B4B4B4" onMouseOver = "this.style.backgroundColor = '#E5F0FF'" onMouseOut = "this.style.backgroundColor = ''">
<input type=checkbox name="usesignature" value="checkbox" checked>
使用签名 <img src=no.gif height=3><input type=checkbox name="autourl" value="yes" checked>使用自动URL <br>
<textarea onkeydown=ctlent() name="articlecontent" cols="85" rows="5" style="background-color:#FEFEFF; border: 1 double #B4B4B4" onMouseOver = "this.style.backgroundColor = '#f3f3f3'" onMouseOut = "this.style.backgroundColor = ''"></textarea>
<input type=hidden value=2 name=step>
<input type=hidden value="reply" name=action>
<input type=hidden value=<?=$forumid?> name=forumid>
<input type=hidden value="<?=$filename?>" name=filename>
<input type=hidden value="<?=$postid?>" name=postid>
<BR><BR><?if ($login_status==0) {
?>
昵称:
<input type=text name=username maxlength=25 size=12 style="background-color:#ffffff; border: 1 double #B4B4B4" onMouseOver = "this.style.backgroundColor = '#E5F0FF'" onMouseOut = "this.style.backgroundColor = ''">
密码:
<input onkeydown=ctlent() type=password name=password maxlength=25 size=12 style="background-color:#ffffff; border: 1 double #B4B4B4" onMouseOver = "this.style.backgroundColor = '#E5F0FF'" onMouseOut = "this.style.backgroundColor = ''">
<? } ?>
<input type="submit" onclick="return clckcntr();" name="Submit" value="发 表" style="height:20px;background-color:#f3f3f3;border:1 solid black" onMouseOver ="this.style.backgroundColor='#FFC864'" onMouseOut ="this.style.backgroundColor='#f3f3f3'"> <font color=red> 按 Ctrl+Enter 直接提交</font>
<input type="reset" name="Submit2" value="重 写" style="height:20px;background-color:#f3f3f3;border:1 solid black" onMouseOver ="this.style.backgroundColor='#FFC864'" onMouseOut ="this.style.backgroundColor='#f3f3f3'"> </form>
</td>
</tr>
</table>
</td>
</tr>
</table>
<script language=JavaScript>
function menu(){
var URL = document.jump.jumpto.options[document.jump.jumpto.selectedIndex].value;
top.location.href = URL; target = '_self';
}
</script>
<?php
if ($login_status==1 && (($forum_admin && in_array($username,$forum_admin)) ||($father_admin && in_array($username,$father_admin)) || $username==$manager) ||($superadmin && in_array($username,$superadmin))) {
if ($topic_islock==0 || $topic_islock==2) $read_manager.="<b>管理选项:</B>[<a onfocus=this.blur() href='masingle.php?action=lock&forumid=$forumid&filename=$filename'>加锁</a>] ";
else $read_manager.="<b>管理选项:</B>[<a onfocus=this.blur() href='masingle.php?action=unlock&forumid=$forumid&filename=$filename'>解锁</a>] ";
$read_manager.="[<a onfocus=this.blur() href='masingle.php?action=del&forumid=$forumid&filename=$filename'>删除</a>]
[<a onfocus=this.blur() href='masingle.php?action=move&forumid=$forumid&filename=$filename'>移动</a>]
[<a onfocus=this.blur() href='masingle.php?action=copy&forumid=$forumid&filename=$filename'>复制</a>]
[<a onfocus=this.blur() href='maread.php?action=btfront&forumid=$forumid&filename=$filename'>提前</a>] ";
if ($topic_type>=3) $read_manager.="[<a onfocus=this.blur() href='maread.php?action=unhold&forumid=$forumid&filename=$filename'>取消置顶</a>]";
else $read_manager.="[<a onfocus=this.blur() href='maread.php?action=holdfront&forumid=$forumid&filename=$filename'>置顶</a>]";
$alowtop=0;
if ($username==$manager) $alowtop=1;
$title="read.php?forumid=".$forumid."&filename=".$filename;
if($alowtop) $read_manager.="[<a href='topsys.php?job=write&step=2&content=$topic_name&title=$title'>总置顶</a>] ";
if ($topic_islock==2) $read_manager.=" [<a onfocus=this.blur() href='masingle.php?action=unjihua&forumid=$forumid&filename=$filename'>取消精华</a>]";
else $read_manager.=" [<a onfocus=this.blur() href='masingle.php?action=jihua&forumid=$forumid&filename=$filename'>精华</a>]";
print <<<EOT
<table cellspacing=0 cellpadding=0 width=$tablewidth align=center bgcolor=$article_color2>
<tr>
<td width="100%"> $read_manager</td>
</tr></table>
EOT;
}
require("footer.php");echo"$footertp";
exit;
?>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -