📄 admin_main.php
字号:
<table align=center width=100% cellpadding=2 cellspacing=0 border=1 bordercolor=white bgcolor=white>
<form name=config method=post action=admin_main_ing.php>
<input type=hidden name=bd value=<?=$bd?>>
<input type=hidden name=mode value=<?=$mode?>>
<input type=hidden name=action value=default>
<input type=hidden name=next value=<?=$mode?>>
<?
////////////////////////////Basis establishment
if($mode==0){echo"
<tr>
<td width=1% nowrap bgcolor=#C9F0FF> 论坛标题 </td>
<td width=99%> <input type=text name=title size=50 class=input value=\"$set[title]\"></td>
</tr>
<tr>
<td width=1% nowrap bgcolor=#C9F0FF> 外观选择 </td>
<td width=99%> <select name=skinname>";
$handle=opendir("skin");
while ($skinname = readdir($handle))
{
if(!eregi("\.",$skinname))
{
if($skinname==$set[skinname]) $select="selected"; else $select="";
echo"<option value=$skinname $select>$skinname</option>";
}
}
closedir($handle);
if($set[width_kind]){$width_kind1="selected";}else{$width_kind0="selected";}
if($set[show_list]){$set[show_list]="checked";}
echo"</select> <input type=button class=button value=\"更多外观\" onclick=\"window.open('http://navyism.com/english')\"></td>
</tr>
<tr>
<td width=1% nowrap bgcolor=#C9F0FF> 背景图像 </td>
<td width=99%> <input type=text name=background_image size=50 class=input value=\"$set[background_image]\"></td>
</tr>
<tr>
<td width=1% nowrap bgcolor=#C9F0FF> 背景颜色 </td>
<td width=99%> <input type=text name=background_color size=8 class=input value=\"$set[background_color]\"></td>
</tr>
<tr>
<td width=1% nowrap bgcolor=#C9F0FF> 标题长度 </td>
<td width=99%> <input type=text name=title_length size=3 maxlength=3 class=input value='$set[title_length]'> 表示可使用的标题长度的最大值</td>
</tr>
<tr>
<td width=1% nowrap bgcolor=#C9F0FF> 昵称长度 </td>
<td width=99%> <input type=text name=name_length size=3 maxlength=3 class=input value='$set[name_length]'> 表示可使用的昵称长度的最大值</td>
</tr>
<tr>
<td width=1% nowrap bgcolor=#C9F0FF> 每页文章数 </td>
<td width=99%> <input type=text name=page size=2 maxlength=2 class=input value='$set[page]'> 表示每页可浏览的文章数</td>
</tr>
<tr>
<td width=1% nowrap bgcolor=#C9F0FF> 显示分页数 </td>
<td width=99%> <input type=text name=pagenum size=2 maxlength=2 class=input value='$set[pagenum]'> 指出显示出多少分页列表</td>
</tr>
<tr>
<td width=1% nowrap bgcolor=#C9F0FF> 主页面宽度 </td>
<td width=99%> <input type=text name=table_width size=3 maxlength=3 class=input value='$set[table_width]'>
<select name=width_kind><option value=0 $width_kind0>%</option><option value=1 $width_kind1>Pixel</option></select></td>
</tr>
<tr>
<td width=1% nowrap bgcolor=#C9F0FF> 热门贴数值 </td>
<td width=99%> <input type=text name=best size=10 maxlength=10 class=input value='$set[best]'> 点击数超过这个数为热门贴.(0=不使用该功能)</td>
</tr>
<tr>
<td width=1% nowrap bgcolor=#C9F0FF> 显示文章列表 </td>
<td width=99%> <input type=checkbox name=show_list $set[show_list] id=show_list value=1> <label for=show_list> 阅读文章时,在其页面下面显示其它文章列表</label></td>
</tr>
<tr>
<td width=1% nowrap bgcolor=#C9F0FF> 默认内容<br><br> 为你自动填写的内容<br>类似个人签名 </td>
<td width=99%> <textarea style=\"overflow:auto;word-break:break-all\" name=default_text class=input cols=50 rows=5>$set[default_text]</textarea></td>
</tr>
";}
////////////////////////////Competence establishment
if($mode==1){
echo"
<script language=javascript>
function add(){
num=config.auth_list.value+1;
config.auth_list.value=num;
}
</script>
<tr>
<td width=1% nowrap bgcolor=#C9F0FF> 等级制度说明 </td>
<td width=99%>
等级越低,地位越高.<br>
基础等级是<b>1</b>,拥有<b>管理员</b>权限<br>
普通会员为<b>9</b>,访客等级为<b>10</b>.<br>
</td>
</tr>
<tr>
<td width=1% nowrap bgcolor=#C9F0FF> 允许浏览文章列表 </td>
<td width=99%> 等级值为:<select name=auth_list>
";
for($i=1;$i<=10;$i++){
if($i==$set[auth_list]){$selected="selected";}else{$selected="";}
echo"<option value=$i $selected>$i</option>";
}
echo"
</select>的用户权限, 可以浏览文章列表。</td>
</tr>
<tr>
<td width=1% nowrap bgcolor=#C9F0FF> 允许阅读文章内容 </td>
<td width=99%> 等级值为:<select name=auth_read>
";
for($i=1;$i<=10;$i++){
if($i==$set[auth_read]){$selected="selected";}else{$selected="";}
echo"<option value=$i $selected>$i</option>";
}
echo"
</select>的用户权限, 可以阅读文章内容。</td>
</tr>
<tr>
<td width=1% nowrap bgcolor=#C9F0FF> 允许发表新的文章 </td>
<td width=99%> 等级值为:<select name=auth_write>
";
for($i=1;$i<=10;$i++){
if($i==$set[auth_write]){$selected="selected";}else{$selected="";}
echo"<option value=$i $selected>$i</option>";
}
echo"
</select>的用户权限, 可以发表新的文章。</td>
</tr>
<tr>
<td width=1% nowrap bgcolor=#C9F0FF> 允许发表新的回复 </td>
<td width=99%> 等级值为:<select name=auth_reply>
";
for($i=1;$i<=10;$i++){
if($i==$set[auth_reply]){$selected="selected";}else{$selected="";}
echo"<option value=$i $selected>$i</option>";
}
echo"
</select>的用户权限, 可以发表新的回复。</td>
</tr>
<tr>
<td width=1% nowrap bgcolor=#C9F0FF> 允许发表新的评论 </td>
<td width=99%> 等级值为:<select name=auth_comment>
";
for($i=1;$i<=10;$i++){
if($i==$set[auth_comment]){$selected="selected";}else{$selected="";}
echo"<option value=$i $selected>$i</option>";
}
echo"
</select>的用户权限, 可以发表新的评论。</td>
</tr>
<tr>
<td width=1% nowrap bgcolor=#C9F0FF> 论坛管理员ID号 </td>
<td width=99%> 如果设置多个管理员,请用逗号(,)隔开。<br>
<textarea style=\"overflow:auto;word-break:break-all\" name=auth class=input cols=50 rows=5 $root_only>$set[auth]</textarea></td>
</tr>
";}
////////////////////////////Category establishment
if($mode==2){
if($set[cat]){$set[cat]="checked";}
if($set[cat_on]){$set[cat_on]="checked";}
echo"
<tr>
<td width=1% nowrap bgcolor=#C9F0FF> 使用分类 </td>
<td width=99%> <input type=checkbox name=cat value=1 id=cat $set[cat]> <label for=cat> 当发表文章时,询问发表在哪个分类中。</label></td>
</tr>
<tr>
<td width=1% nowrap bgcolor=#C9F0FF> 分类显示 </td>
<td width=99%> <input type=checkbox name=cat_on value=1 id=cat_on $set[cat_on]> <label for=cat_on> 在文章列表主页面中,显示全部分类导航。</label></td>
</tr>
";
}
////////////////////////////Security item establishment
if($mode==3){
if($set[show_ip]){$set[show_ip]="checked";}
if($set[use_ban_tag]){$set[use_ban_tag]="checked";}
if($set[use_ban_word]){$set[use_ban_word]="checked";}
if($set[use_ban_ip]){$set[use_ban_ip]="checked";}
if($set[use_ban_server]){$set[use_ban_server]="checked";}
echo"
<tr>
<td width=1% nowrap bgcolor=#C9F0FF> 显示 IP地址 </td>
<td width=99%> <input type=checkbox name=show_ip value=1 id=show_ip $set[show_ip]> <label for=show_ip> 在每篇文章中,显示作者的IP地址。</label></td>
</tr>
<tr>
<td width=1% nowrap bgcolor=#C9F0FF> 使用Tag过滤 </td>
<td width=99%> <input type=checkbox name=use_ban_tag value=1 id=use_ban_tag $set[use_ban_tag]> <label for=use_ban_tag> 在文章中过滤下面已设定的语法标记(tags)</label></td>
</tr>
<tr>
<td width=1% nowrap bgcolor=#C9F0FF> 过滤标记列表 </td>
<td width=99%> 两个要过滤的标记(Tag)之间,请用逗号隔开。<br>
<textarea style=\"overflow:auto;word-break:break-all\" name=ban_tag class=input cols=50 rows=5 $root_only>$set2[ban_tag]</textarea></td>
</tr>
</tr>
<tr>
<td width=1% nowrap bgcolor=#C9F0FF> 使用词语过滤 </td>
<td width=99%> <input type=checkbox name=use_ban_word value=1 id=use_ban_word $set[use_ban_word]> <label for=use_ban_word> 在文章中过滤下面已设定的不良词语</label></td>
</tr>
<tr>
<td width=1% nowrap bgcolor=#C9F0FF> 词语过滤列表 </td>
<td width=99%> 两个要过滤的词语(ban_word)之间,请用逗号隔开<br>
<textarea style=\"overflow:auto;word-break:break-all\" name=ban_word class=input cols=50 rows=5 $root_only>$set2[ban_word]</textarea></td>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -