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

📄 smanager.php

📁 FTB安装版 v1.3(虚拟形象)FTB安装版 v1.3(虚拟形象)
💻 PHP
字号:
<?
require("userdata/style.php");
require("global.php");
require("header.php");echo"$headertp";
include("bbsdata/level.php");
require("function.php");
$thisprog="smanager.php";
$des="你正处在".$bbs_title."<br>总版主管理程式中";
headguide($des,"<a href='smanager.php'>总版主管理</a>","(总版主可不要滥用职权哦~)");
$tbuserfile="bbsdata/tbuser.php";
if (file_exists($tbuserfile)) {
	include($tbuserfile);
	$tbuser=implode("\r\n",$tbuser);
} else $tbuser="";
$check=0;
if ($superadmin && in_array($username,$superadmin)) $check=1;
if ($username==$manager) $check=1;

if ($login_status==0) {
    msg_box('总版主管理','<br>状态:发生错误,您还没有登录<br><ul><li><a href="javascript:history.back(1)">返回前页</a></li><br><li><a href="login.php">现在登录</li></ul>');
    exit;
    }
if ($check==0) {
    msg_box('总版主管理','<br>状态:发生错误,您并非总版主,不要乱来哦~<br><ul><li><a href="javascript:history.back(1)">返回前页</a></li><br><li><a href="login.php">以总版主身份登录</li></ul>');
    exit;
    }
$forumid=130;
//-------管理日志---
$log_manage_file="bbsdata/log_manage.php";
if(file_exists($log_manage_file)) $old_log_manage=readfromfile($log_manage_file);
$login_ip=getenv('REMOTE_ADDR');
$login_time=time();
$new_log_manage="<?php exit;?>|$username||$action|$login_ip|$login_time|\n";
if(isset($old_log_manage)) $new_log_manage.=$old_log_manage;
writetofile($log_manage_file,$new_log_manage);
//记录管理操作日志END
if (empty($action)) {
setuser_index();
exit;
}
elseif ($action=="updatecount") update_list();
elseif ($action=="view") view_user();
elseif ($action=="viewall") viewall_user();
elseif ($action=="process") {
$check=1;
if ($check==0) {
    msg_box('添加认证会员名单','<br>状态:发生错误,您没有这个权力,不要乱来哦~<br><ul><li><a href="javascript:history.back(1)">返回前页</a></li><br><li><a href="login.php">重新登录</li></ul>');
    exit;
    }
	$tbuser="<?\n";
	$userarray=str_replace("\n","",$userarray);
	$userarray=explode("\r",$userarray);
	$count=count($userarray);
	for ($i=0; $i<$count; $i++) {
		$tbuser.="\$tbuser[$i]='$userarray[$i]';\n";
	}
	writetofile($tbuserfile,$tbuser);
	
	$userarray=implode("<br>",$userarray);

  	print <<<EOT
		<center><b>所有的信息已经保存</b><br><br>
		<b>你已经添加了下列认证会员名单</b><br><br>
		<b>$userarray</b>
		<br><br><a href="$thisprog">增加更多名单</a></center>
EOT;
	exit;
}

print "
<table width=$tablewidth border=0 cellspacing=0 cellpadding=0 align=center bgcolor=$bordercolor>
 <tr>
 <td>
  <table width=100% border=0 cellspacing=1 cellpadding=3>
   <tr> 
    <td class=title bgcolor=$titlecolor>版主设置</td>
   </tr>
   <tr bgcolor=$backgroundcolor> 
    <td><br><b>操作完成</b><br><br><a href=smanager.php>返回执行其他动作</a><br><br></td>
   </tr>
   <tr align=left bgcolor=$subcolor> 
    <td>&nbsp;</td>
   </tr>
  </table>
 </td>
 </tr>
";
exit;
function setuser_index() {
global $thisprog,$tab_bottom,$tab_top,$backgroundcolor,$bordercolor,$tablewidth,$titlecolor,$subcolor;
$forumfile="bbsdata/forumdata.php";
if (file_exists($forumfile)) {
  $forumdata=file($forumfile);
  $count=count($forumdata);
}
$tbuserfile="bbsdata/tbuser.php";
if (file_exists($tbuserfile)) {
	include($tbuserfile);
	$tbuser=implode("\r\n",$tbuser);
} else $tbuser="";
  $forumselect="";
  $forumonly="";
  for($i=0; $i<$count; $i++) {
    $detail=explode("|",$forumdata[$i]);
    $forumselect.="<option value=\"$detail[3]\">$detail[1]</option>";
    if ($detail[0]!="category") $forumonly.="<option value=\"$detail[3]\">$detail[1]</option>";
    }
$forumselect.="</select>"; $forumonly.="</select>";
echo ("
<table width=$tablewidth border=0 cellspacing=0 cellpadding=0 align=center bgcolor=$bordercolor>
 <tr>
 <td>
  <table width=100% border=0 cellspacing=1 cellpadding=3>
       <tr> 
    <td class=title bgcolor=$titlecolor>
   1.更新用户信息</td>
   </tr>
   <tr  bgcolor=$backgroundcolor>
  <td><form action=\"$thisprog\" method=post>
   将更新首页显示的用户数,这样可以用来恢复正确总用户数。<br>
   同时也可以更新用户列表,使得用户列表程序显示正确信息。<br><br>
<input type=checkbox name=\"upcount\" value=\"yes\" checked>更新用户数
<input type=checkbox name=\"uplist\" value=\"yes\">更新用户列表
<input type=hidden name=\"action\" value=\"updatecount\">
<input type=submit value=\"提  交\">
    </form>   </td>
        </tr>
       <tr> 
    <td class=title bgcolor=$titlecolor>2.查看用户</td>
   </tr>
   <tr bgcolor=$backgroundcolor>
  <td><form action=\"$thisprog\" method=post>
    输入用户名,将可以看到详细资料.<br><br>
        <input type=text name=\"member\" size=10 maxlength=16>
        <input type=submit value=\"提  交\"> ---
        <input type=radio checked name=\"action\" value=\"view\">查看 
    </form>      </td>
</tr>
       <tr> 
    <td class=title bgcolor=$titlecolor>3.警察局</td>
   </tr>
 <tr bgcolor=$backgroundcolor>
<td><a href=badman.php?job=supmg>带把御灵剑抓人去</a><br></td>
        </tr>
       <tr> 
    <td class=title bgcolor=$titlecolor>5.查看所有用户</td>
   </tr>
   <tr bgcolor=$backgroundcolor>
<td>查看所有用户列表<br><form action=\"$thisprog\" method=post>
<input type=radio checked name=\"action\" value=\"viewall\">查看所有用户<input type=submit value=\"提  交\">
</form>
</td>
   </tr>
       <tr> 
    <td class=title bgcolor=$titlecolor>6.修改认证会员名单</td>
   </tr>
   <tr bgcolor=$backgroundcolor>
<td>修改认证会员名单<br>
		<form action=\"$thisprog\" method=\"post\">
		<input type=hidden name=\"action\" value=\"process\">
		<b><center>请输入认证会员ID(一行输入一个):</b><br>
		<textarea cols=60 rows=10 name=\"userarray\">$tbuser</textarea><BR>
		<input type=submit value=\"提 交\"></center></form>
</td>
   </tr>
  </table>
 </td>
 </tr>
</table>
");
require("footer.php");echo"$footertp";
exit;
}

⌨️ 快捷键说明

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