📄 admin_main.php
字号:
</tr>
<tr>
<td width=1% nowrap bgcolor=#C9F0FF> 使用IP过滤 </td>
<td width=99%> <input type=checkbox name=use_ban_ip value=1 id=use_ban_ip $set[use_ban_ip]> <label for=use_ban_ip> 过滤下面已设定的IP地址</label></td>
</tr>
<tr>
<td width=1% nowrap bgcolor=#C9F0FF> IP过滤列表 </td>
<td width=99%> 两个要过滤的IP地址之间,请用逗号隔开<br>
<textarea style=\"overflow:auto;word-break:break-all\" name=ban_ip class=input cols=50 rows=5 $root_only>$set2[ban_ip]</textarea></td>
</tr>
<tr>
<td width=1% nowrap bgcolor=#C9F0FF> 使用连接过滤 </td>
<td width=99%> <input type=checkbox name=use_ban_server value=1 id=use_ban_server $set[use_ban_server]> <label for=use_ban_server> 过滤以下地址(url)的连接</label></td>
</tr>
<tr>
<td width=1% nowrap bgcolor=#C9F0FF> 连接过滤列表 </td>
<td width=99%> 两个要过滤的连接地址之间,请用逗号隔开<br>
<textarea style=\"overflow:auto;word-break:break-all\" name=ban_server class=input cols=50 rows=5 $root_only>$set2[ban_server]</textarea></td>
</tr>
";
}
////////////////////////////File attachment/link set
if($mode==4){
if($set[attach]){$set[attach]="checked";}
if($set[attach2]){$set[attach2]="checked";}
if($set[link]){$set[link]="checked";}
if($set[link2]){$set[link2]="checked";}
echo"
<tr>
<td width=1% nowrap bgcolor=#C9F0FF> 使用附件(1) </td>
<td width=99%> <input type=checkbox name=attach value=1 id=attach $set[attach]> <label for=attach> 使用</label></td>
</tr>
<tr>
<td width=1% nowrap bgcolor=#C9F0FF> 显示名称(1) </td>
<td width=99%> <input type=text class=input name=attach_title size=20 value=\"$set[attach_title]\"></td>
</tr>
<tr>
<td width=1% nowrap bgcolor=#C9F0FF> 允许的扩展名 </td>
<td width=99%> 两个文件扩展名之间请用逗号(,)隔开 <input type=text class=input name=can_attach size=50 value='$set[can_attach]'></td>
</tr>
<tr>
<td width=1% nowrap bgcolor=#C9F0FF> 禁用的扩展名 </td>
<td width=99%> 两个文件扩展名之间请用逗号(,)隔开<br> <input type=text class=input name=cant_attach size=50 value='$set[cant_attach]'></td>
</tr>
<tr>
<td width=1% nowrap bgcolor=#C9F0FF> 使用附件(2) </td>
<td width=99%> <input type=checkbox name=attach2 value=1 id=attach2 $set[attach2]> <label for=attach2> 使用</label></td>
</tr>
<tr>
<td width=1% nowrap bgcolor=#C9F0FF> 显示名称(2) </td>
<td width=99%> <input type=text class=input name=attach_title2 size=20 value=\"$set[attach_title2]\"></td>
</tr>
<tr>
<td width=1% nowrap bgcolor=#C9F0FF> 允许的扩展名 </td>
<td width=99%> 两个文件扩展名之间请用逗号(,)隔开<br> <input type=text class=input name=can_attach2 size=50 value='$set[can_attach2]'></td>
</tr>
<tr>
<td width=1% nowrap bgcolor=#C9F0FF> 禁用的扩展名 </td>
<td width=99%> 两个文件扩展名之间请用逗号(,)隔开<br> <input type=text class=input name=cant_attach2 size=50 value='$set[cant_attach2]'></td>
</tr>
<tr>
<td width=1% nowrap bgcolor=#C9F0FF> 图像宽度限制 </td>
<td width=99%> <input type=text class=input name=image_size size=3 maxlength=3 value='$set[image_size]'> 预览图像文件的最大宽度,单位:pixel</td>
</tr>
<tr>
<td width=1% nowrap bgcolor=#C9F0FF> 使用连接文件(1) </td>
<td width=99%> <input type=checkbox name=link value=1 id=link $set[link]> <label for=link> 使用</label></td>
</tr>
<tr>
<td width=1% nowrap bgcolor=#C9F0FF> 使用连接文件(2) </td>
<td width=99%> <input type=checkbox name=link2 value=1 id=link2 $set[link2]> <label for=link2> 使用</label></td>
</tr>
";
}
////////////////////////////include set
if($mode==5){echo"
<tr>
<td width=1% nowrap bgcolor=#C9F0FF> 论坛头部文件路径(url) </td>
<td width=99%> <input type=text class=input name=top_url size=50 value='$set[top_url]'></td>
</tr>
<tr>
<td width=1% nowrap bgcolor=#C9F0FF> 论坛头部文件编辑<br> 设置部分页面源 </td>
<td width=99%> <textarea style=\"overflow:auto;word-break:break-all\" name=top class=input cols=50 rows=10>$set[top]</textarea></td>
</tr>
<tr>
<td width=1% nowrap bgcolor=#C9F0FF> 论坛底部文件编辑<br> 设置部分页面源;</td>
<td width=99%> <textarea style=\"overflow:auto;word-break:break-all\" name=bottom class=input cols=50 rows=10>$set[bottom]</textarea></td>
</tr>
<tr>
<td width=1% nowrap bgcolor=#C9F0FF> 论坛尾部文件路径(url) </td>
<td width=99%> <input type=text class=input name=bottom_url size=50 value='$set[bottom_url]'></td>
</tr>
";
}
?>
</table>
<table align=center width=100% cellpadding=5 cellspacing=0 border=1 bordercolor=white bgcolor=white>
<tr><td align=center> <input type=submit class=button value='保存'> <input type=reset class=button value='重置'></td></tr>
</form>
</table>
<?
////////////////////////////category set 2
if($mode==2){
echo"
<script language=javascript>
function chk_cat(){
if(!cat.new_cat.value){alert('${error}Input to make category name');cat.new_cat.focus();return false;}
}
function chk_cat_del(){
if(!confirm('${warning}Do you delete selected category?')){return false;}
}
function chk_cat_edit(){
if(!cat_edit.new_cat.value){alert('${error}输入修改的分类名称');cat_edit.new_cat.focus();return false;}
}
function chk_cat_move(){
if(cat_move.from.value==cat_move.to.value){alert('不能移动类似 ${error}的分类');cat_move.to.focus();return false;}
}
</script>
<table align=center width=100% cellpadding=2 cellspacing=0 border=1 bordercolor=white bgcolor=white>
<tr bgcolor=#C9F0FF>
<td width=98% align=center>分类名称</td>
<td nowrap width=1% align=center>文章</td>
<td nowrap width=1% align=center>删除</td>
</tr>";
$i=0;
$query="select * from $cat_table$bd order by name";
$result=mysql_query($query,$connect);
while($data=mysql_fetch_array($result))
{
$this_total=total($board_table.$bd,"and cat=$data[no]");
if($this_total){$delete="";}else{$delete="<a href=admin_main_ing.php?bd=$bd&mode=$mode&action=cat_del&from=$data[no]&next=$mode onclick=\"return chk_cat_del()\">删除</a>";}
echo"
<tr>
<td width=98%> <label for=$data[name]>$data[name]</label></td>
<td nowrap width=1% align=right>$this_total</td>
<td nowrap width=1% align=center>$delete</td>
</tr>
";
$i++;
}
echo"
<tr><td colspan=4 height=3 bgcolor=#C9F0FF></td></tr>
<form method=post name=cat action=admin_main_ing.php onsubmit=\"return chk_cat()\">
<input type=hidden name=bd value=$bd>
<input type=hidden name=mode value=$mode>
<input type=hidden name=action value=cat>
<input type=hidden name=next value=$mode>
<tr><td colspan=4><input type=text name=new_cat size=10 class=input>
<input type=submit value=创建分类 class=button>
</td></tr>
</form>
<form method=post name=cat_edit action=admin_main_ing.php onsubmit=\"return chk_cat_edit()\">
<input type=hidden name=bd value=$bd>
<input type=hidden name=mode value=$mode>
<input type=hidden name=action value=cat_edit>
<input type=hidden name=next value=$mode>
<tr><td colspan=4><select name=from>
";
$query="select * from $cat_table$bd order by name";
$result=mysql_query($query,$connect);
while($data=mysql_fetch_array($result))
{
echo"<option value='$data[no]'>$data[name]</option>";
}
echo"
</select> -> <input type=text name=new_cat size=10 class=input>
<input type=submit value=更改分类 class=button>
</td></tr>
</form>
<form method=post name=cat_move action=admin_main_ing.php onsubmit=\"return chk_cat_move()\">
<input type=hidden name=bd value=$bd>
<input type=hidden name=mode value=$mode>
<input type=hidden name=action value=cat_move>
<input type=hidden name=next value=$mode>
<tr><td colspan=4><select name=from>
";
$query="select * from $cat_table$bd order by name";
$result=mysql_query($query,$connect);
while($data=mysql_fetch_array($result))
{
echo"<option value='$data[no]'>$data[name]</option>";
}
echo"
</select> -> <select name=to>
";
$query="select * from $cat_table$bd order by name";
$result=mysql_query($query,$connect);
while($data=mysql_fetch_array($result))
{
echo"<option value='$data[no]'>$data[name]</option>";
}
echo"
</select>
<input type=submit value=移动文章 class=button>
</td></tr>
</form>
</table>";}
?>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -