📄 delpostbat.php
字号:
<?
/* BMForum Plus! Bulletin Board Systems Version : Plus! This is a freeware, but don't change the copyright information. A SourceForge Project - GNU Licence project. Web Site: http://www.bmforum.com Copyright (C) Bluview Technology*/
$forumfile="datafile/forumdata.php";
$thisprog="delpostbat.php";
require("adminglobal.php");
include("datafile/config.php");
if (file_exists($forumfile)) {
$forumdata=file($forumfile);
$count=count($forumdata);
}
@set_time_limit(300);
if($useraccess!="1" || $admgroupdata[11]!="1") {
adminlogin();
}
$today = getdate();
$month = $today['mon'];
$mday = $today['mday'];
$year = $today['year'];
$todayshow= "$year/$month/$mday";
print "<tr><td bgcolor=#0041BD colspan=3><font color=#D6DFF7>
<b>$arr_ad_lng[320] $arr_ad_lng[321]</b>
</td></tr><tr><td bgcolor=#D6DFF7 colspan=3>
";
$t=time();
if (empty($action)) {
//$forumselect="";
$forumonly="";
for($i=0; $i<$count; $i++) {
$detail=explode("|",$forumdata[$i]);
//$forumselect.="<option value=\"$detail[3]\">$detail[1]</option>";
if ($detail[0]!="<?exit;?>category") $forumonly.="<option value=\"$detail[3]\">$detail[1]</option>";
}
//$forumselect.="</select>";
$forumonly.="</select>";
}
if (file_exists($forumfile)) {
$forumdata=file($forumfile);
$count=count($forumdata);
}
if (empty($action)) {
$forumselect="";
$forumonly="";
$catselect="";
for($i=0; $i<$count; $i++) {
$detail=explode("|",$forumdata[$i]);
if ($detail[0]=="<?exit;?>category") { $forumselect.="<option value=\"鍒嗙被$detail[3]\">-=-$detail[1]-=-</option>";
}else{ $forumselect.="<option value=\"$detail[3]\">$detail[1]</option>";
}
}
$forumselect.="</select>";
print <<<EOT
<b>$arr_ad_lng[322]</b>
<form action="$thisprog" method=POST>$tab_top
$arr_ad_lng[323]<input type=text name="usertodel" size=20><br>
<input type=checkbox name="inforum" value="1" id="cd1"><label title="$arr_ad_lng[324]" for="cd1">$arr_ad_lng[325]</label><br><select name="inforumselect">$forumselect<br>
<input type=hidden name="action" value="delnow"><br>
<input type=radio name="alltime" value="before" id="cd2"><label for="cd2">$arr_ad_lng[326]<input type=text value="$todayshow" name=beforedate></label>
<input type=radio name="alltime" checked value="after" id="cd3"><label for="cd3">$arr_ad_lng[327]<input type=text value="$todayshow" name=afterdate></label>
<br><input type=checkbox checked name="delintopic" value="1" id="cd4"><label for="cd4">$arr_ad_lng[328]</label><input type=checkbox name="delinpost" value="1" id="cd5"><label title="$arr_ad_lng[329]" for="cd5">$arr_ad_lng[330]</label>
<p>
<button type=submit>$arr_ad_lng[331]</button>
$tab_bottom</form>
EOT;
exit;
}elseif ($action=="delnow") {
if($alltime=="before"){ $tmpdate=explode("/",$beforedate);}else{ $tmpdate=explode("/",$afterdate); }
$tmptimes=mktime (0,0,0,$tmpdate[1],$tmpdate[2],$tmpdate[0]);
if(strpos($inforumselect,"绫
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -