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

📄 addforum.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="addforum.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[40]</b>
    </td></tr>
";
if (file_exists($forumfile)) {
	$forumdata=file($forumfile);
}
	$count=count($forumdata);
	$t=time();
if (empty($action)) {
	//$forumselect="";
	$forumonly="";
	for($i=0; $i<$count; $i++) {
	  $detail=explode("|",$forumdata[$i]);
	  $detail[0]=str_replace("<?exit;?>","",$detail[0]);
	  //$forumselect.="<option value=\"$detail[3]\">$detail[1]</option>";
	  if ($detail[0]!="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]);
	  $forumselect.="<option value=\"$detail[3]\">$detail[1]</option>";
	  $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>";
	}
	$forumselect.="</select>"; $forumonly.="</select>"; $catselect.="</select>";

	print <<<EOT

    <tr><td bgcolor=#D6DFF7 colspan=3>
    <b>$arr_ad_lng[41]</b>
    <form action="$thisprog" method=POST>
    $tab_top
     $arr_ad_lng[42]<select name="type"><option checked 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="closed">$arr_ad_lng[47]</option><option value="hidden">$arr_ad_lng[48]</option><option value="selection">$arr_ad_lng[49]</option></select><select name="action"><option checked value="newitem">$arr_ad_lng[69]</option><option value="newsubitem">$arr_ad_lng[67]</option></select><br>
    $arr_ad_lng[50] <input type=text name="bbsname" size=20><br>$arr_ad_lng[51] <input type=text name="des" size=26> <br>$arr_ad_lng[52]
EOT;

	

	echo "<select name='sfilename'>";
	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

⌨️ 快捷键说明

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