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

📄 modforum.php

📁 bmb的论坛
💻 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*/

$thisprog="modforum.php";
require("adminglobal.php");
require("datafile/config.php");
$forumfile="datafile/forumdata.php";
if($smodaccess=="1" && $useraccess!="1") {
adminlogin();
}
$newstring="";
print "<tr><td bgcolor=#0041BD colspan=3><font color=#D6DFF7>
    <b>$arr_ad_lng[320] $arr_ad_lng[189]</b>
    </td></tr>
";
if (file_exists($forumfile)) {
	$forumdata=file($forumfile);
}
	$count=count($forumdata);
	$t=time();

if (file_exists($forumfile)) {
	$forumdata=file($forumfile);
	$count=count($forumdata);
}

if (empty($job) && empty($action)) {

	exit;
}elseif ($job=="modify") {
	$adminfile="datafile/admin.php";
	$admindata=file($adminfile);
	$cosunt=count($admindata);
	$forumadminshow="<select name=userdelid>";
	for($i=0; $i<$cosunt; $i++) {
	  $detail=explode("|",$admindata[$i]);
	  if($detail[0]==$target) $forumadminshow.="<option value=\"$detail[1]\">$detail[1]</option>";
	}
	$forumadminshow.="</select>";
	$forumonly="";
	for($i=0; $i<$count; $i++) {
	  $detail=explode("|",$forumdata[$i]);
	  if ($detail[3]==$target) {
	  $forumtype=str_replace("<?exit;?>","",$detail[0]);
	  $forumname=$detail[1];
	  $forumdes=$detail[2];
	  $targetid=$detail[3];
	  $forumsubid=$detail[4];
	  $caterows=$detail[15] ? $detail[15] : $detail[4];
	  $forumicon=$detail[5];
	  $forumstyle=$detail[6];
	  $forumpassword=$detail[7];
	  $forumcid=$detail[8];
	  $guestpost=$detail[9];
	  $forum_ford=$detail[10];
	  $postdontadd=$detail[11];
	  $spusergroup=$detail[12];
	  $aviewpost=$detail[13];
	  $needpostver=$detail[14];
	  }
	}
	@include("datafile/rules/$target.php");
	$ourrule=str_replace("<br>","\n",$ourrule);
	if($caterows=="row") $scaterows="checked";
	$guestpost=explode("_",$guestpost);
	$ford=explode("_",$forum_ford);
	if($ford[0]==1) $sford="checked";
	if($postdontadd==1) $spostdontadd="checked";
	if($needpostver==1) $sneedpostver="checked";
	if($spusergroup==1) $sspusergroup="checked";
	if($aviewpost=="openit") $saviewpost="checked";
	if($guestpost[0]==1) $sguestpost="checked";
	if($guestpost[1]=="1") $snopostpic="checked";
	$catselect="";
	$forumonly="";
	$catselect.="<option value=\"$forumcid\">$arr_ad_lng[444]</option>";
	for($i=0; $i<$count; $i++) {
	  $detail=explode("|",$forumdata[$i]);
	  $detail[0]=str_replace("<?exit;?>","",$detail[0]);
  	  if ($detail[0]!="category") $forumonly.="<option value=\"$detail[3]\">$detail[1]</option>";
	  if ($detail[0]=="category") $catselect.="<option value=\"$detail[3]\">$detail[1]</option>";
	}
$catselect.="</select>";
$forumonly.="</select>";
	print <<<EOT
    <tr><td bgcolor=#D6DFF7 colspan=3>
	
    <b>$arr_ad_lng[438]</b><form action="$thisprog" method=POST><input type=hidden name="oldforumpassword" value="$forumpassword"><input type=hidden name="action" value="maction"><input type=hidden name="job" value="modify2"><input type=hidden name="targetid" value="$targetid">
    $tab_top
    $arr_ad_lng[439]<br>
    $arr_ad_lng[440] $forumname(ID:$targetid) <br><a href="$thisprog?action=maction&job=delete&targetid=$targetid">$arr_ad_lng[441]</a><br>
$arr_ad_lng[50]<input type=text value="$forumname" name="bbsname" size=20><br>  $arr_ad_lng[51]<input value="$forumdes" type=text name="des" size=26><br>  $arr_ad_lng[42]<select name="forumtype"><option value=$forumtype>$arr_ad_lng[442]</option><option value="category">$arr_ad_lng[43]</option><option value="forum">$arr_ad_lng[44]</option><option value="former">$arr_ad_lng[45]</option><option value="locked">$arr_ad_lng[46]</option><option value="hidden">$arr_ad_lng[48]</option><option value="closed">$arr_ad_lng[47]</option><option value="selection">$arr_ad_lng[49]</option><option value="subforum">{$arr_ad_lng[443]}$arr_ad_lng[44]</option><option value="subformer">{$arr_ad_lng[443]}$arr_ad_lng[45]</option><option value="sublocked">{$arr_ad_lng[443]}$arr_ad_lng[46]</option><option value="subhidden">{$arr_ad_lng[443]}$arr_ad_lng[48]</option><option value="subclosed">{$arr_ad_lng[443]}$arr_ad_lng[47]</option><option value="subselection">{$arr_ad_lng[443]}$arr_ad_lng[49]</option></select> 
		<br>$arr_ad_lng[52]
		
EOT;

	
	echo "<select name='sfilename'>";
	echo "<option value='$forumstyle'>$arr_ad_lng[445]</option>";
	echo "<option value=''>$arr_ad_lng[53]</option>";
	
	$dh=file("datafile/stylelist.php");
	$cdh=count($dh);
	for($cid=0;$cid<$cdh;$cid++){
		$cdhtail=explode("|",$dh[$cid]);
		echo "<option value=\"$cdhtail[3]\">$cdhtail[2]</option>"; 
	}

print <<<EOT
	顥ヮ棩</select><br>$arr_ad_lng[54]<input type=text value="$forumicon" name="forum_iconurl" size=30><br>$arr_ad_lng[55]<input type=password name="newforumpass" value="$forumpassword" size=30><br>$arr_ad_lng[56]<select name="new_forum_cid">$catselect<br>$arr_ad_lng[447]<select name="forumsubid"><option value="$forumsubid">$arr_ad_lng[448]</option><option value="">$arr_ad_lng[449]</option>$forumonly<br>
	<input type=checkbox value=1 $sguestpost name=nguestpost>$arr_ad_lng[57] <input type=checkbox value=openit $saviewpost name=naviewpost>$arr_ad_lng[58]<BR><input type=checkbox value=row $scaterows name=ncaterows>$arr_ad_lng[885]<BR><input type=checkbox value=1 $sford name=fordview>$arr_ad_lng[59]<input name=viewpost value='$ford[1]' type="text" size=1>$arr_ad_lng[60]<input name=viewpoice value='$ford[2]' type="text" size=1>$arr_ad_lng[61]<input name=viewmoney value='$ford[3]' type="text" size=1>$arr_ad_lng[62]<br><input type=checkbox value=1 $spostdontadd name=npostdontadd>$arr_ad_lng[63]     <input type=checkbox value=1 $sspusergroup name=nspusergroup>$arr_ad_lng[64]     <input type=checkbox value=1 $sneedpostver name=nneedpostver>$arr_ad_lng[65]<br>
	<input type=submit value="$arr_ad_lng[66]">
    $tab_bottom</form>
  <b>$arr_ad_lng[450]</b><form action="$thisprog" method=POST><input type=hidden name="action" value="moderator">
    $tab_top
    $arr_ad_lng[451]<br><input type=hidden name="targetid" value="$target">
    $arr_ad_lng[452]<input type=radio checked name="job" value="add">$arr_ad_lng[453]<input type=text name="userid" size=8>  <input type=radio  name="job" value="del">$arr_ad_lng[454]$forumadminshow &nbsp;&nbsp;
    &nbsp; <input type=submit value="$arr_ad_lng[66]">
    $tab_bottom</form>
    	    <br>
    
    	
      <b>$arr_ad_lng[886]</b><form action="$thisprog" method=POST><input type=hidden name="action" value="rules">
    $tab_top
    <input type=hidden name="targetid" value="$target">
    $arr_ad_lng[883]<br><textarea cols=60 rows=6 name="forumrules">$ourrule</textarea>
      <br>
    &nbsp; <input type=submit value="$arr_ad_lng[66]">
    $tab_bottom</form>
    	    <br>
    
    $tab_bottom  
    </td></tr></td></tr></table></body></html>
EOT;
exit;
}elseif ($action=="maction" ) {
//-------鍒犻櫎/淇

⌨️ 快捷键说明

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