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

📄 forumevent.php

📁 FTB安装版 v1.3(虚拟形象)FTB安装版 v1.3(虚拟形象)
💻 PHP
字号:
<? 
require("userdata/style.php");
require("global.php");
require("header.php");echo"$headertp";
if(empty($forumid)||$forumid==0) {
$bars="<a href='forumevent.php'>版主管理日志</a>";
$des="您现在正在访问的是 $bbs_title <br>所有版块的版主管理日志";
}else{
get_father_info();
$bars="";
if ($exists_forum_father==1) $bars.="<a href='thread.php?forumid=$father_id'>$father_name</a> >> ";
$bars.="<a href='thread.php?forumid=$forumid'>{$forum_name}版主管理日志</a>";
$des="您现在正在访问的是 $forum_name <br>版主管理日志";
}
headguide($des,$bars);

$perpage=20;//每页显示记录

function showevent() {
global $forumid,$page,$perpage,$maxpageno,$event_count;
if (file_exists('bbsdata/forumevent.php')) 
$event_array=explode("\n",readfromfile('bbsdata/forumevent.php'));
$count=count($event_array);
for ($i=0;$i<$count;$i++){
$detail=explode("|",$event_array[$i]);
if(($detail[1]==$forumid||empty($forumid))&&($event_array[$i]!="")) {$forumevent_array[]=$event_array[$i];}
}
$event_count=count($forumevent_array);
if ($event_count%$perpage==0) $maxpageno=$event_count/$perpage;
else $maxpageno=floor($event_count/$perpage)+1;
if($page=="") $page=1;
if ($page>$maxpageno) $page=$maxpageno;
if(!ereg("^[0-9]*$",$page)) $page=1;
$pagemin=min( ($page-1)*$perpage , $event_count-1);
$pagemax=min( $pagemin+$perpage-1, $event_count-1);
if($event_count==0) {$pagemin=1;$pagemax=0;$maxpageno=1;}
for ($i=$pagemin; $i<=$pagemax; $i++) {
$detail=explode("|",$forumevent_array[$i]);
$time=date("Y-m-d H:i:s",$detail[8]);
if($detail[5]=="") $detail[5]="无";
echo '<tr height=22 bgcolor=ffffff>';
echo "<td align=center bgcolor=ffffff><a href='profile.php?job=show&target=$detail[4]' title=查看该用户资料>$detail[4]</a></td>"; 
if ($detail[0]!="") $title=$detail[0];
if ($detail[0]=="del") {if ($detail[2]=="") $title="删除贴子";else $title="删除回复";}
if ($detail[0]=="move") $title="移动贴子";
if ($detail[0]=="copy") $title="复制贴子";
if ($detail[0]=="lock") $title="加锁贴子";
if ($detail[0]=="unlock") $title="解锁贴子";
if ($detail[0]=="jihua") $title="加入精华";
if ($detail[0]=="unjihua") $title="取消精华";
if ($detail[0]=="hebing") $title="合并主题";
if ($detail[0]=="plmove") $title="批量移动";
if ($detail[0]=="plcopy") $title="批量复制";
if ($detail[0]=="pldel") $title="批量删除";
if ($detail[0]=="holdfront") $title="置顶主题";
if ($detail[0]=="unhold") $title="取消置顶";
if ($detail[0]=="holdtop") $title="总置顶主题";
if ($detail[0]=="untop") $title="取消总置顶";
if ($detail[0]=="btfront") $title="前移主题";
$forum_name=getforumname($detail[1]);
$forum_name2=getforumname($detail[2]);
if($detail[3]!="") $filename="<a href=thread.php?forumid=$detail[1] title='所在版块:$forum_name'>《$detail[3]》</a>";else $filename="";
if($detail[0]=="move"||$detail[0]=="copy"||$detail[0]=="plmove"||$detail[0]=="plcopy") $filename="<a href=thread.php?forumid=$detail[2] title='从 $forum_name 到 $forum_name2'>《$detail[3]》</a>";
echo "<td bgcolor=ffffff><font color=green>$title</font>$filename <font color=green>原因</font>:$detail[5] <font color=green>操作</font>:威望 $detail[6] 金钱 $detail[7]</td>";
echo "<td align=center bgcolor=ffffff>$time</td>";
echo "<td align=center bgcolor=ffffff><a href=\"profile.php?job=show&target=$detail[9]\">$detail[9]</td>";
echo '</tr>'; 
}
}
?> 
<table cellspacing=1 cellpadding=0 width=<?=$tablewidth?> border=0 align=center bgcolor=<?=$bordercolor?>>
  <tr align=center height=24 bgcolor=<?=$titlecolor?>> 
    <td bgcolor=<?=$titlecolor?> class=title>对象</td>
    <td bgcolor=<?=$titlecolor?> class=title>日志内容(<a href=forumevent.php class=title>查看所有日志</a>)</td>
    <td bgcolor=<?=$titlecolor?> class=title>操作时间</td>
    <td bgcolor=<?=$titlecolor?> class=title>操作人</td>
  </tr>

<? 
showevent();
?> 
 <tr> 
    <td colspan=4 bgcolor=<?=$categorycolor?> height=24 align=left> 
        <input type="button" value="论坛首页" 
onClick="location.href='index.php'" 
style="color: #000000; background-color: #f3f3f3; border-style: solid; border-width: 1" onMouseOver ="this.style.backgroundColor='#FFFFFF'" onMouseOut ="this.style.backgroundColor='#f3f3f3'" name="button">
        <input type="button" value="返回前页" 
onClick="location.href='javascript:history.back(1)';" 
style="color: #000000; background-color: #f3f3f3; border-style: solid; border-width: 1" onMouseOver ="this.style.backgroundColor='#FFFFFF'" onMouseOut ="this.style.backgroundColor='#f3f3f3'" name="button2">

<?

if ($maxpageno==1) echo "<b>日志只有一页,共 $event_count 条记录</b>";

else { 
if($page<5) $ib=1;else $ib=$page-4;
if($page<$maxpageno-5) $ie=$page+4;else $ie=$maxpageno;
	$multi_page_bar=" <b>日志有 $maxpageno 页,每页 $perpage 条,共 $event_count 条记录</b> [ ";
if($page>5) $multi_page_bar.="<a style='color:green' href=\"forumevent.php?forumid=$forumid&page=1\"><b>1</b></a> ...";
	for ($i=$ib; $i<=$ie; $i++) {
		if ($i!=$page) 
		$multi_page_bar.=" <a href=\"forumevent.php?forumid=$forumid&page=$i\"><b>$i</b></a> ";
		else $multi_page_bar.="<b> <font color=red>$i</font><b>";
	}
	if($page<$maxpageno-5) $multi_page_bar.=" ... <a style='color:green' href=\"forumevent.php?forumid=$forumid&page=$maxpageno\">$maxpageno</a>";
	$multi_page_bar.=" 页]</b> ";
echo $multi_page_bar;
}
?>

    </td>
  </tr>
</table>
<br>
<?
require("footer.php");echo"$footertp";
?>
</body> 
</html> 

⌨️ 快捷键说明

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