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

📄 admin_main.php

📁 php写的论坛,代码精简到极点 请相看说明文件。是从英文翻译过来的:)
💻 PHP
📖 第 1 页 / 共 2 页
字号:
<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>&nbsp;论坛标题&nbsp;</td>
<td width=99%>&nbsp;<input type=text name=title size=50 class=input value=\"$set[title]\"></td>
</tr>
<tr>
<td width=1% nowrap bgcolor=#C9F0FF>&nbsp;外观选择&nbsp;</td>
<td width=99%>&nbsp;<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>&nbsp;背景图像&nbsp;</td>
<td width=99%>&nbsp;<input type=text name=background_image size=50 class=input value=\"$set[background_image]\"></td>
</tr>
<tr>
<td width=1% nowrap bgcolor=#C9F0FF>&nbsp;背景颜色&nbsp;</td>
<td width=99%>&nbsp;<input type=text name=background_color size=8 class=input value=\"$set[background_color]\"></td>
</tr>
<tr>
<td width=1% nowrap bgcolor=#C9F0FF>&nbsp;标题长度&nbsp;</td>
<td width=99%>&nbsp;<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>&nbsp;昵称长度&nbsp;</td>
<td width=99%>&nbsp;<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>&nbsp;每页文章数&nbsp;</td>
<td width=99%>&nbsp;<input type=text name=page size=2 maxlength=2 class=input value='$set[page]'> 表示每页可浏览的文章数</td>
</tr>
<tr>
<td width=1% nowrap bgcolor=#C9F0FF>&nbsp;显示分页数&nbsp;</td>
<td width=99%>&nbsp;<input type=text name=pagenum size=2 maxlength=2 class=input value='$set[pagenum]'> 指出显示出多少分页列表</td>
</tr>
<tr>
<td width=1% nowrap bgcolor=#C9F0FF>&nbsp;主页面宽度&nbsp;</td>
<td width=99%>&nbsp;<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>&nbsp;热门贴数值&nbsp;</td>
<td width=99%>&nbsp;<input type=text name=best size=10 maxlength=10 class=input value='$set[best]'> 点击数超过这个数为热门贴.(0=不使用该功能)</td>
</tr>
<tr>
<td width=1% nowrap bgcolor=#C9F0FF>&nbsp;显示文章列表&nbsp;</td>
<td width=99%>&nbsp;<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>&nbsp;默认内容<br><br>&nbsp;为你自动填写的内容<br>类似个人签名&nbsp;</td>
<td width=99%>&nbsp;<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>&nbsp;等级制度说明&nbsp;</td>
<td width=99%>
&nbsp;等级越低,地位越高.<br>
&nbsp;基础等级是<b>1</b>,拥有<b>管理员</b>权限<br>
&nbsp;普通会员为<b>9</b>,访客等级为<b>10</b>.<br>
</td>
</tr>
<tr>
<td width=1% nowrap bgcolor=#C9F0FF>&nbsp;允许浏览文章列表&nbsp;</td>
<td width=99%>&nbsp;等级值为:<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>&nbsp;允许阅读文章内容&nbsp;</td>
<td width=99%>&nbsp;等级值为:<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>&nbsp;允许发表新的文章&nbsp;</td>
<td width=99%>&nbsp;等级值为:<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>&nbsp;允许发表新的回复&nbsp;</td>
<td width=99%>&nbsp;等级值为:<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>&nbsp;允许发表新的评论&nbsp;</td>
<td width=99%>&nbsp;等级值为:<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>&nbsp;论坛管理员ID号&nbsp;</td>
<td width=99%>&nbsp;如果设置多个管理员,请用逗号(,)隔开。<br>
&nbsp;<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>&nbsp;使用分类&nbsp;</td>
<td width=99%>&nbsp;<input type=checkbox name=cat value=1 id=cat $set[cat]> <label for=cat> 当发表文章时,询问发表在哪个分类中。</label></td>
</tr>
<tr>
<td width=1% nowrap bgcolor=#C9F0FF>&nbsp;分类显示&nbsp;</td>
<td width=99%>&nbsp;<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>&nbsp;显示 IP地址&nbsp;</td>
<td width=99%>&nbsp;<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>&nbsp;使用Tag过滤&nbsp;</td>
<td width=99%>&nbsp;<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>&nbsp;过滤标记列表&nbsp;</td>
<td width=99%>&nbsp;两个要过滤的标记(Tag)之间,请用逗号隔开。<br>
&nbsp;<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>&nbsp;使用词语过滤&nbsp;</td>
<td width=99%>&nbsp;<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>&nbsp;词语过滤列表&nbsp;</td>
<td width=99%>&nbsp;两个要过滤的词语(ban_word)之间,请用逗号隔开<br>
&nbsp;<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 + -