⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 report.php

📁 FTB安装版 v1.3(虚拟形象)FTB安装版 v1.3(虚拟形象)
💻 PHP
字号:
<?
require("userdata/style.php");
require("global.php");
include("bbsdata/level.php");
$add_title="不良帖子报告程式";

$check=0;
if($login_status==1 && $username==$manager) $check=1;
if (file_exists("bbsdata/superadmin.php")) {
    include("bbsdata/superadmin.php");
if($login_status==1 && $superadmin && in_array($username,$superadmin)) $check=1;}
	if (file_exists("bbsdata/admin.php")) {
		$adminlist=file("bbsdata/admin.php");
		$admincount=count($adminlist);
		for ($i=0; $i<$admincount; $i++) {
			$detail=explode("|", str_replace("\n","", $adminlist[$i]));
		if ($login_status==1 && $detail[0]==$forumid && $detail[1]==$username) $admin=1;}}

require("header.php");echo"$headertp";
//headguide("你正处在<br>{$bbs_title}<br>的不良帖子反映程式中","<a href=report.php>不良帖子列表</a>","不良帖子反映");

//if (empty($job)) { $job="list"; }
if (empty($job)) { $job="report"; }

if ($job=="report") {

if(empty($forumid) || empty($filename) || ($article=="")){
headguide("你正处在<br>{$bbs_title}<br>的不良帖子反映程式中","<a href=report.php>不良帖子列表</a>","不良帖子反映");
msg_box('出错啦!!','<center>你要反映哪个帖子啊??<br>请检查后再来!!<br><ul><li><a href="javascript:history.back(1)">返回前页</a></li><br><li><a href="index.php">返回首页</li></ul></center>');
require("footer.php");echo"$footertp";
        exit;}

if (empty($step)) {
		warn();
		require("footer.php");echo"$footertp";
		exit;} 

elseif($step==2) {
     
	if (file_exists("bbsdata/report.php")) 
	$replist=explode("\n",readfromfile("bbsdata/report.php"));
	else $replist[0]="";
	$count=count($replist);
	$send=1;
	for($i=0;$i<$count;$i++){
		$detail=explode("|",$replist[$i]);
		if($detail[0]==$user) {unset($replist[$i]);$send=0;}}
	$report=implode("\n", $replist);
	$reason=safe_convert($reason);
//	writetofile("bbsdata/report.php","$username|$timestamp|$ip|$reason|$forumid|$filename|$article|||\n".$report);

$articlelist=file("{$idpath}forum$forumid/$filename");
list($topic_name,$topic_author,$topic_content,$topic_date,$topic_area)=explode("|",$articlelist[0]);
if($article==0) $articles="<b>首贴</b>";
else $articles="<b>$article</b> 楼的回复";

//	if($send) {
postmsg($manager,
"不良帖子反映汇报","$username 向你汇报不良帖子——[<font color=blue>{$forum_name}</font>]</font> 中的 《<b><font color=red>{$topic_name}</font></b>》 $articles <br>汇报情况:<br><font color=red>$reason</font> <br><br>点击下面链接将带你去到有问题帖子!<br><a href=read.php?forumid=$forumid&filename=$filename target=_blank><b>点击进入</b></a>","$username");
		for($i=0;$superadmin[$i];$i++) {
postmsg($superadmin[$i],
"不良帖子反映汇报测试","$username 向你汇报不良帖子——[<font color=blue>{$forum_name}</font>]</font> 中的 《<b><font color=red>{$topic_name}</font></b>》 $articles <br>汇报情况:<br><font color=red>$reason</font> <br><br>点击下面链接将带你去到有问题帖子!<br><a href=read.php?forumid=$forumid&filename=$filename target=_blank><b>点击进入</b></a>","$username");
}
//}
           jump_page("read.php?forumid=$forumid&filename=$filename","反映帖子成功",
			
            "<b>反映帖子成功!谢谢你对本论坛的关注!!</b><br><br>
			你现在可以选择:<br><ul><li><a href='report.php'>返回列表</a></li>
		<br><br><li><a href='index.php'>返回论坛首页</a></li></ul>");
	
		require("footer.php");echo"$footertp";
		exit;}}
function postmsg($user,$title,$pmsg,$name="系统信息"){
global $msgpath,$timestamp;
if (file_exists("userdata/$msgpath/{$user}1.php")) $msg=file("userdata/$msgpath/{$user}1.php"); else $msg[0]="";
$new="<?die;?>|$name|$title|$timestamp|$pmsg|0|\n";
$old=implode("",$msg);
writetofile("userdata/$msgpath/{$user}1.php",$new.$old);
}
function warn() {
global $forumcolorone ,$site_name,$tablewidth,$titlecolor,$style_path,$bordercolor,$forumid,$username,$filename,$idpath,$article;
get_forum_info();
$forum_name=getforumname($forumid);
$articlelist=file("{$idpath}forum$forumid/$filename");
list($topic_name,$topic_author,$topic_content,$topic_date,$topic_area)=explode("|",$articlelist[0]);
if($article==0) $articles="<b>首贴</b>";
else $articles="第<b>$article</b> 篇的回复";
headguide("你正处在<br>{$site_name}<br>的不良帖子反映程式中","<a href=thread.php?forumid=$forumid>$forum_name</a>","不良帖子反映");
print <<<EOT
	<FORM action=report.php method=post>
<table cellspacing= cellpadding=0 width=$tablewidth bgcolor=$bordercolor border=0 align=center >
<TR><TD bgcolor=$titlecolor  height=27 >
<FONT class=TITLE><b>向版主反映这个帖子</b></FONT></TD></TR>
<TR><TD align=center  bgcolor=$forumcolorone ><br><B>您的用户名是:<FONT color="red"><b>$username</b></FONT></B></TD>
</TR>
<TR><TD align=center bgcolor=$forumcolorone ><br><B>要向总坛主反映的帖子是:</B>
&nbsp;&nbsp;<font color=blue>{$forum_name}</font> 中的 《<b><font color=red>{$topic_name}</font></b>》 $articles</TD></TR>
<TR><TD align=center bgcolor=$forumcolorone><br>
<b>原因:</b>&nbsp;&nbsp;<FONT color=red ><b>本功能只适用于反映争吵,滥发广告,色情,容易引起争斗,粗俗言语,<font color=blue>违法的政治言论(法轮功等)</font>,。</b></FONT><br><br><b>如发现乱报,将会受到严重的处罚!!</b></TD>
</TR><TR><TD bgcolor=$forumcolorone align=center><br>
<TEXTAREA name=reason rows=6 cols=80></TEXTAREA></TD></TR>
<tr > 
<td bgcolor=$titlecolor align="center"> 
<input type="button" value="论坛首页" onClick="location.href='index.php'" style="height:20px; background-color:#f3f3f3; border:1 solid black;" onMouseOver ="this.style.backgroundColor='#FFC864'" onMouseOut ="this.style.backgroundColor='#f3f3f3'">
<input onClick="javascript:history.back(1)" type="button" value="返回前页" style="height:20px;background-color:#f3f3f3; border:1 solid black" onMouseOver ="this.style.backgroundColor='#FFC864'" onMouseOut ="this.style.backgroundColor='#f3f3f3'">
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; 
<input type=submit value="确认发送" style="height:20px;background-color:#f3f3f3;border:1 solid black" onMouseOver ="this.style.backgroundColor='#FFC864'" onMouseOut ="this.style.backgroundColor='#f3f3f3'">
<input type=hidden value="2" name="step">
<input type=hidden value="$forumid" name="forumid">
<input type=hidden value="$filename" name="filename">
<input type=hidden value="$article" name="article">
<input type=hidden value="report" name="job">
<input type=reset value="清除重写" style="height:20px;background-color:#f3f3f3;border:1 solid black" onMouseOver ="this.style.backgroundColor='#FFC864'" onMouseOut ="this.style.backgroundColor='#f3f3f3'" name="reset">
</td></tr></table></form>
EOT;
}

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -