所有的信息已经保存你已经开放下列注册名为老斑竹$tab_top$userarray$tab_bottom增加更多音乐DJEOT;exit; }}if($adminjob==adma){$thisprog="admin.php?adminjob=adma";$superadminfile="bbsdata/superadmin.php";if ($action!="process") {//if (!isset($submit)){//-----------增加管理员----------if (file_exists($superadminfile)) {include($superadminfile);$superadmin=implode("\r\n",$superadmin);//$count=count($userarray);} else $superadmin="";?>增加/删除管理员 请注意:此功能是用来增加/删除管理员。输入的时候,每行输入一个用户名即可。 print $adminbottomadEOT; }elseif ($action=="process") {// elseif (isset($submit)) { //writetofile("bbsdata/superadmin.php",$addadmin."\n",'a'); $superadmin=" $userarray=str_replace("\n","",$userarray); $userarray=explode("\r",$userarray); $count=count($userarray); for ($i=0; $i $superadmin.="\$superadmin[$i]='$userarray[$i]';\n"; } writetofile($superadminfile,$superadmin); $userarray=implode("",$userarray);print $admintopad所有的信息已经保存你已经开放下列注册名为管理员$tab_top$userarray$tab_bottom增加更多管理员EOT;exit; }}if($adminjob==upload){$thisprog="admin.php?adminjob=upload";require("bbsdata/idpath.php");//查看附件if(!isset($action)){print FTB $ftb_version 系统设置面板FTB 用户交流论坛首页论坛附件管理中心附件名称附件大小/字节所属版块所属文章删除附件EOT;$upload_path=opendir("upload/");while($upload_file=readdir($upload_path)){if(($upload_file!=".") && ($upload_file!="..") && ($upload_file!="")) $upload_array[]=$upload_file;}closedir($upload_path);$upload_count=count($upload_array);$fs_all=0;for($i=0;$i$detail=explode("_",$upload_array[$i]);$forumid=str_replace("forum","",$detail[0]);$fdetail=explode(".",$detail[2]);$filename=$detail[1]."_".$fdetail[0];if(!file_exists("$idpath/$detail[0]/$filename")) $acticle="该贴已删"; else $acticle="浏览贴子";$fs=filesize("upload/$upload_array[$i]");$fs_all+=$fs;echo "$upload_array[$i]$fs浏览版块$acticle删除附件";}$fs_all=$fs_all/1024;echo "";echo "共 {$upload_count} 个附件 占用空间 {$fs_all} KB";echo "清空所有附件";exit;}//删除附件elseif($action=="del"){if(file_exists("upload/$file")) @unlink("upload/$file");print 欢迎来到讨论区管理程式 / 附件管理中心成功删除附件返回附件管理中心EOT;exit;}elseif($action=="delall"){$upload_path=opendir("upload/");while($upload_file=readdir($upload_path)){if(($upload_file!=".") && ($upload_file!="..") && ($upload_file!="")) $upload_array[]=$upload_file;}closedir($upload_path);$upload_count=count($upload_array);for($i=0;$i@unlink("upload/$upload_array[$i]");}print $admintopad成功清空所有附件返回附件管理中心EOT;exit;}}if($adminjob==mailuser){$thisprog="admin.php?adminjob=mailuser";include("bbsdata/config.php");if ($action!="send") {print $admintopad Email 群发 $tab_top功能说明: 如非必要,请不要利用本程序乱发群体邮件,不然你被人暴K可别找我啊~~ PS: 使用本程序前,确定用户列表已经存在(已经使用过统计用户数目/用户列表功能)$tab_bottom 每批发送个数: 主题: From: 内容: 你好,欢迎光临流星论坛,请记住本站的域名http://www.ofstar.com/bbs \$username $tab_top变量使用说明: 你可以在邮件内容中使用 \$username , \$password , \$email 三个变量 什么?不会用? faint........$tab_bottom 所有注册用户 论坛所有版主 $adminbottomad EOT;exit;}elseif ($action=="send") { print "$admintopad";if (empty($subject) || empty($text)) {print 请填入完整信息,主题和内容不能为空!!返回修改EOT;exit;}if (empty($pertime)) $pertime=100;if (empty($step)) $step=1;if (empty($sendto)) $sendto='members';if ($sendto=='members') $userlist=file('bbsdata/userlist.php');elseif ($sendto=='moderators') {if (file_exists('bbsdata/admin.php')) { $adminlist=file('bbsdata/admin.php'); $count=count($adminlist); for ($i=0; $i$detail=explode("|", trim($adminlist[$i]));$userlist[]=$detail[1]; }}$userlist = array_unique ($userlist);}$count=count($userlist);if ($count>($step*$pertime)) {$lastpage=0; $max=$step*$pertime;}else {$lastpage=1; $max=$count; }$min=($step-1)*$pertime;for ($i=$min; $i$usertosend=trim($userlist[$i]);$memberfile="$userpath/$usertosend.php";list($fb,$currentusername,$currentpassword,$usericon,$currentuseremail,$nouse)= explode("|",readfromfile($memberfile));$sendmessage=$text;$sendmessage=str_replace("\$email",$currentuseremail,$sendmessage);$sendmessage=str_replace("\$username",$currentusername,$sendmessage);$sendmessage=str_replace("\$password",$currentpassword,$sendmessage);//echo $currentuseremail."";echo $sendmessage."";echo $currentusername."";mail($currentuseremail,$subject,$sendmessage,"From: $From");}$step++;if ($lastpage) echo "发送成功一共发送了 $count 个用户";else print 正在发送一共要发送 $count 个用户,目前已经发送了 $i 个用户EOT;exit;}}if($adminjob==giveuser){$thisprog="admin.php?adminjob=giveuser";include("bbsdata/config.php");$timestamp = time();if ($action!="send") {print $admintopad 节日礼特大赠送 $tab_top功能说明: 碰上节日,喜事等大日子,偶尔给论坛所有用户/认证会员/版主们送点威望金钱,大泽天下,普渡众生也是很有意义的~~ PS: 使用本程序前,确定用户列表已经存在(已经使用过统计用户数目/用户列表功能)$tab_bottom 每批赠送个数:
admininfo.php,admin.php 源代码在线查看 - FTB安装版 v1.3(虚拟形象)FTB安装版 v1.3(虚拟形象) 资源下载 虫虫电子下载站...
最新推荐文章于 2022-06-29 17:38:07 发布