<!-- #INCLUDE FILE="include/onlogin.asp" -->
<!-- #INCLUDE FILE="include/fso_file.asp" -->
<!-- #INCLUDE FILE="include/common_other.asp" -->
<%
dim tit_menu
tit_menu="<a href='?'>配置修改</a>&nbsp;┋&nbsp;"&_
	 "<a href='javascript:Do_b_data();'>备份配置</a>&nbsp;┋&nbsp;"&_
	 "<a href='javascript:Do_h_data();'>还原配置</a>"
response.write header(3,tit_menu)
%>
<script language=JavaScript><!--
function Do_b_data()
{
if (confirm("此操作将 备份 现有的网站配置！\n\n真的要进行吗？\n备份后将无法恢复！"))
  window.location="?action=b"
}
function Do_h_data()
{
if (confirm("此操作将 还原 现有的网站配置！\n\n真的要进行吗？\n还原后将无法恢复！"))
  window.location="?action=h"
}
function foreColor()
{
  var arr = showModalDialog("htmledit/selcolor.htm", "", "dialogWidth:18.5em; dialogHeight:17.5em; status:0");
}
//--></script>
<%
if action="b" or action="h" then call config_bh(action)

select case trim(request.querystring("edit"))
case "chk"
  call config_chk()
case else
  call config_main()
end select

response.write ender()

sub config_main()
  dim t1,t2,t3,j,tdim,udim,tt:tt=0
%>
<table border=1 width='92%' cellspacing=0 cellpadding=2<%response.write table1%>>
  <tr> 
    <td colspan=3 align=center> <table border=0 cellspacing=0 cellpadding=3 width="603">
        <tr> 
          <td width="100"> 
            <%response.write img_small("jt1")%>
            <a href='?action=config'>基本信息设置</a></td>
          <td width="100"> 
            <%response.write img_small("jt1")%>
            <a href='?action=config2'>基本功能设置</a></td>
          <td width="100"> 
            <%response.write img_small("jt1")%>
            <a href='?action=num'>页显示数量等</a></td>
          <td width="101"> 
            <%response.write img_small("jt1")%>
            <a href='?action=info'>过滤提示设置</a></td>
          <td width="101"> 
            <%response.write img_small("jt1")%>
            <a href='?action=down_up'>下载上传设置</a></td>
        </tr>
        <tr> 
          <td width="100"> 
            <%response.write img_small("jt1")%>
            <a href='?action=menu'>栏目菜单设置</a></td>
          <td width="100"> 
            <%response.write img_small("jt1")%>
            <a href='?action=color'>网站颜色设置</a></td>
          <td width="100"> 
            <%response.write img_small("jt1")%>
            <a href='?action=user'>用户群组管理</a></td>
          <td width="101"> 
            <%response.write img_small("jt1")%>
            <a href='?action=grade'>用户等级管理</a></td>
          <td width="101"> 
            <%response.write img_small("jt1")%>
            <a href='?action=forum'>论坛分类管理</a></td>
        </tr>
      </table></td>
  </tr>
  <tr align=center bgcolor=<%response.write color2%>> 
    <td width='21%'>设置名称</td>
    <td width='42%'>参数</td>
    <td width='37%'>相关说明</td>
  </tr>
  <form action='?action=<%response.write action%>&edit=chk' method=post>
    <input type=hidden name=web_news_art value='<%response.write web_news_art%>'>
    <input type=hidden name=web_shop value='<%response.write web_shop%>'>
    <%
if action="config" then
  tt=1
%>
    <tr> 
      <td>网站名称：</td>
      <td><input type=text name=web_config_1 value='<%response.write web_var(web_config,1)%>' size=38 maxlength=20></td>
      <td class=gray>　</td>
    </tr>
    <tr> 
      <td>网站地址：</td>
      <td><input type=text name=web_config_2 value='<%response.write web_var(web_config,2)%>' size=38 maxlength=50></td>
      <td class=gray>　</td>
    </tr>
    <tr> 
      <td>超级管理员：</td>
      <td><input type=text name=web_config_3 value='<%response.write web_var(web_config,3)%>' size=20 maxlength=20></td>
      <td class=gray>　</td>
    </tr>
    <tr> 
      <td>所在目录：</td>
      <td><input type=text name=web_config_4 value='<%response.write web_var(web_config,4)%>' size=20 maxlength=20></td>
      <td class=gray>　</td>
    </tr>
    <tr> 
      <td>网站SKIN：</td>
      <td><input type=text name=web_config_5 value='<%response.write web_var(web_config,5)%>' size=20 maxlength=20></td>
      <td class=gray>　</td>
    </tr>
    <tr> 
      <td>Cookies名称：</td>
      <td><input type=text name=web_cookies value='<%response.write web_cookies%>' size=20 maxlength=20></td>
      <td class=gray>　</td>
    </tr>
    <tr> 
      <td>数据库名称：</td>
      <td><input type=text name=web_config_6 value='<%response.write web_var(web_config,6)%>' size=38 maxlength=50></td>
      <td class=gray>　</td>
    </tr>
    <tr> 
      <td>网站背景：</td>
      <td><input type=text name=web_config_7 value='<%response.write web_var(web_config,7)%>' size=20 maxlength=20></td>
      <td background='images/<%response.write web_var(web_config,7)%>.gif'>　</td>
    </tr>
    <tr> 
      <td>虚拟货币：</td>
      <td><input type=text name=web_config_8 value='<%response.write web_var(web_config,8)%>' size=20 maxlength=20></td>
      <td class=gray>&nbsp;尽量减短其名称</td>
    </tr>
	<tr>
    <td>页面宽度：</td>
    <td><input type=text name=web_config_10 value='<%response.write web_var(web_config,10)%>' size=20 maxlength=20></td>
    <td class=gray>&nbsp;网站页面宽度（百分比或像素）</td>
    </tr>
	<tr> 
      <td>版本信息：</td>
      <td><input type=text name=web_config_11 value='<%response.write web_var(web_config,11)%>' size=20 maxlength=20></td>
      <td colspan="2" class=gray>&nbsp;站点的版本设定</td>
    </tr>


    <% else %>
    <input type=hidden name=web_config_1 value='<%response.write web_var(web_config,1)%>'>
    <input type=hidden name=web_config_2 value='<%response.write web_var(web_config,2)%>'>
    <input type=hidden name=web_config_3 value='<%response.write web_var(web_config,3)%>'>
    <input type=hidden name=web_config_4 value='<%response.write web_var(web_config,4)%>'>
    <input type=hidden name=web_config_5 value='<%response.write web_var(web_config,5)%>'>
    <input type=hidden name=web_cookies value='<%response.write web_cookies%>'>
    <input type=hidden name=web_config_6 value='<%response.write web_var(web_config,6)%>'>
    <input type=hidden name=web_config_7 value='<%response.write web_var(web_config,7)%>'>
    <input type=hidden name=web_config_8 value='<%response.write web_var(web_config,8)%>'>
	<input type=hidden name=web_config_10 value='<%response.write web_var(web_config,10)%>'>
	<input type=hidden name=web_config_11 value='<%response.write web_var(web_config,11)%>'>
    <%
end if

if action="config2" then
  tt=1
%>
		
	<% t1=web_var_num(web_setup,9,1) %>
	<tr>
	<td>网站头部：</td>
	<td><input type=radio name=web_setup_9 value='1'<% if t1=1 then response.write " checked" %> class=bg_1> 
        &nbsp;是&nbsp;&nbsp;&nbsp; <input type=radio name=web_setup_9 value='0'<% if t1<>1 then response.write " checked" %> class=bg_1> 
        &nbsp;否&nbsp;&nbsp;&nbsp;&nbsp;</td>
	<td class=gray>&nbsp;是否使用整图作为网站头部</td>
    </tr>
	<% t1=web_var_num(web_setup,10,1) %>
	<tr>
	<td>论坛头部：</td>
	<td><input type=radio name=web_setup_10 value='1'<% if t1=1 then response.write " checked" %> class=bg_1> 
        &nbsp;是&nbsp;&nbsp;&nbsp; <input type=radio name=web_setup_10 value='0'<% if t1<>1 then response.write " checked" %> class=bg_1> 
        &nbsp;否&nbsp;&nbsp;&nbsp;&nbsp;</td>
	<td class=gray>&nbsp;论坛中心是否使用纵向显示</td>
    </tr>
    <tr> 
      <td>网站状态：</td>
      <td><input type=radio name=web_login value='1'<% if int(web_login)=1 then response.write " checked" %> class=bg_1> 
        &nbsp;开放&nbsp; <input type=radio name=web_login value='0'<% if int(web_login)<>1 then response.write " checked" %> class=bg_1> 
        &nbsp;关闭</td>
      <td class=gray>&nbsp;是否开放网站</td>
    </tr>
    <% t1=web_var_num(web_setup,1,1) %>
    <tr> 
      <td>登陆浏览：</td>
      <td colspan=2><input type=radio name=web_setup_1 value='1'<% if t1=1 then response.write " checked" %> class=bg_1> 
        &nbsp;是&nbsp;&nbsp;&nbsp; <input type=radio name=web_setup_1 value='0'<% if t1<>1 then response.write " checked" %> class=bg_1> 
        &nbsp;否&nbsp;&nbsp;&nbsp;&nbsp;<font class=gray>是否要登陆才可浏览文章或下载软件等</font></td>
    </tr>
    <% t3=web_var_num(web_setup,8,1) %>
    <tr>
	<td>注册开放：</td>
	<td><input type=radio name=web_setup_8 value='1'<% if t3=1 then response.write " checked" %> class=bg_1> 
        &nbsp;是&nbsp;&nbsp;&nbsp; <input type=radio name=web_setup_8 value='0'<% if t3<>1 then response.write " checked" %> class=bg_1> 
        &nbsp;否&nbsp;&nbsp;&nbsp;&nbsp;</td>
	<td class=gray>&nbsp;是否对新用户注册进行开放</td>
    </tr>
    <% t1=web_var_num(web_setup,2,1) %>
    <tr> 
      <td>注册审核：</td>
      <td><input type=radio name=web_setup_2 value='0'<% if t1<>1 then response.write " checked" %> class=bg_1> 
        &nbsp;是&nbsp;&nbsp;&nbsp; <input type=radio name=web_setup_2 value='1'<% if t1=1 then response.write " checked" %> class=bg_1> 
        &nbsp;否</td>
      <td class=gray>&nbsp;是否对新注册进行邮件审核</td>
    </tr>
    <%
t1=web_var_num(web_setup,3,1)
if t1<>1 and t1<>2 then t1=0
%>
    <tr> 
      <td>网站模式：</td>
      <td colspan=2 class=gray><input type=radio name=web_setup_3 value='0'<% if t1=0 then response.write " checked" %> class=bg_1> 
        &nbsp; <input type=text name=web_stamp_1 value='<%response.write web_var(web_stamp,1)%>' size=10 maxlength=10> 
        &nbsp;&nbsp;&nbsp;本站的注册用户可以登陆，不记录在线列表</td>
    <tr> 
      <td>　</td>
      <td colspan=2 class=gray><input type=radio name=web_setup_3 value='1'<% if t1=1 then response.write " checked" %> class=bg_1> 
        &nbsp; <input type=text name=web_stamp_2 value='<%response.write web_var(web_stamp,2)%>' size=10 maxlength=10> 
        &nbsp;&nbsp;&nbsp;所有登陆和浏览本站的人被并记录在线列表</td>
    <tr> 
      <td>　</td>
      <td colspan=2 class=gray><input type=radio name=web_setup_3 value='2'<% if t1=2 then response.write " checked" %> class=bg_1> 
        &nbsp; <input type=text name=web_stamp_3 value='<%response.write web_var(web_stamp,3)%>' size=10 maxlength=10> 
        &nbsp;&nbsp;&nbsp;本站的注册用户可以登陆，并记录用户在线列表</td>
    </tr>
    <% t1=web_var_num(web_setup,4,1) %>
    <tr> 
      <td>信息过滤：</td>
      <td><input type=radio name=web_setup_4 value='1'<% if t1=1 then response.write " checked" %> class=bg_1> 
        &nbsp;是&nbsp;&nbsp;&nbsp; <input type=radio name=web_setup_4 value='0'<% if t1<>1 then response.write " checked" %> class=bg_1> 
        &nbsp;否</td>
      <td class=gray>&nbsp;是否对论坛等进行字符过滤</td>
    </tr>
    <%
t1=web_var_num(web_setup,5,1)
if t1<>0 and t1<>1 then t1=2
%>
    <tr> 
      <td>显示 IP：</td>
      <td><input type=radio name=web_setup_5 value='0'<% if t1=0 then response.write " checked" %> class=bg_1>
        完全保密 
        <input type=radio name=web_setup_5 value='1'<% if t1=1 then response.write " checked" %> class=bg_1>
        显示部分 
        <input type=radio name=web_setup_5 value='2'<% if t1=2 then response.write " checked" %> class=bg_1>
        完全开放</td>
      <td class=gray>&nbsp;对管理员总是完全开放</td>
    </tr>
    <% t1=web_var_num(web_setup,6,1) %>
    <tr> 
      <td>版主显示：</td>
      <td><input type=radio name=web_setup_6 value='1'<% if t1=1 then response.write " checked" %> class=bg_1> 
        &nbsp;文字链接&nbsp; <input type=radio name=web_setup_6 value='0'<% if t1<>1 then response.write " checked" %> class=bg_1> 
        &nbsp;下拉菜单框</td>
      <td class=gray>&nbsp;论坛版主显示模式</td>
    </tr>
    <% t1=web_var_num(web_setup,7,1) %>
    <tr> 
      <td>计数方式：</td>
      <td><input type=radio name=web_setup_7 value='1'<% if t1=1 then response.write " checked" %> class=bg_1> 
        &nbsp;记录多次&nbsp; <input type=radio name=web_setup_7 value='0'<% if t1<>1 then response.write " checked" %> class=bg_1> 
        &nbsp;记录一次</td>
      <td class=gray>&nbsp;网站计数的方式</td>
    </tr>
    <% t1=web_var_num(web_var(web_config,9),1,1) %>
    <tr> 
      <td>发布新闻：</td>
      <td><input type=radio name=web_config_9_1 value='1'<% if t1=1 then response.write " checked" %> class=bg_1> 
        &nbsp;开放&nbsp; <input type=radio name=web_config_9_1 value='0'<% if t1=0 then response.write " checked" %> class=bg_1> 
        &nbsp;关闭</td>
      <td class=gray>　</td>
    </tr>
    <% t1=web_var_num(web_var(web_config,9),2,1) %>
    <tr> 
      <td>发表文章：</td>
      <td><input type=radio name=web_config_9_2 value='1'<% if t1=1 then response.write " checked" %> class=bg_1> 
        &nbsp;开放&nbsp; <input type=radio name=web_config_9_2 value='0'<% if t1=0 then response.write " checked" %> class=bg_1> 
        &nbsp;关闭</td>
      <td class=gray>　</td>
    </tr>
    <% t1=web_var_num(web_var(web_config,9),3,1) %>
    <tr> 
      <td>添加软件：</td>
      <td><input type=radio name=web_config_9_3 value='1'<% if t1=1 then response.write " checked" %> class=bg_1> 
        &nbsp;开放&nbsp; <input type=radio name=web_config_9_3 value='0'<% if t1=0 then response.write " checked" %> class=bg_1> 
        &nbsp;关闭</td>
      <td class=gray>　</td>
    </tr>
    <% t1=web_var_num(web_var(web_config,9),4,1) %>
    <tr> 
      <td>上传贴图：</td>
      <td><input type=radio name=web_config_9_4 value='1'<% if t1=1 then response.write " checked" %> class=bg_1> 
        &nbsp;开放&nbsp; <input type=radio name=web_config_9_4 value='0'<% if t1=0 then response.write " checked" %> class=bg_1> 
        &nbsp;关闭</td>
      <td class=gray>　</td>
    </tr>
    <% t1=web_var_num(web_var(web_config,9),5,1) %>
    <tr> 
      <td>推荐网站：</td>
      <td><input type=radio name=web_config_9_5 value='1'<% if t1=1 then response.write " checked" %> class=bg_1> 
        &nbsp;开放&nbsp; <input type=radio name=web_config_9_5 value='0'<% if t1=0 then response.write " checked" %> class=bg_1> 
        &nbsp;关闭</td>
      <td class=gray>　</td>
    </tr>
    <% t1=web_var_num(web_var(web_config,9),6,1) %>
    <tr> 
      <td>添加影片：</td>
      <td><input type=radio name=web_config_9_6 value='1'<% if t1=1 then response.write " checked" %> class=bg_1> 
        &nbsp;开放&nbsp; <input type=radio name=web_config_9_6 value='0'<% if t1=0 then response.write " checked" %> class=bg_1> 
        &nbsp;关闭</td>
      <td class=gray>　</td>
    </tr>
    <% t1=web_var_num(web_var(web_config,9),7,1) %>
    <tr> 
      <td>发布广告：</td>
      <td><input type=radio name=web_config_9_7 value='1'<% if t1=1 then response.write " checked" %> class=bg_1> 
        &nbsp;开放&nbsp; <input type=radio name=web_config_9_7 value='0'<% if t1=0 then response.write " checked" %> class=bg_1> 
        &nbsp;关闭</td>
      <td class=gray>　</td>
    </tr>
   <% t1=web_var_num(web_var(web_config,9),8,1) %>
    <tr> 
      <td>发布Flash：</td>
      <td><input type=radio name=web_config_9_8 value='1'<% if t1=1 then response.write " checked" %> class=bg_1> 
        &nbsp;开放&nbsp; <input type=radio name=web_config_9_8 value='0'<% if t1=0 then response.write " checked" %> class=bg_1> 
        &nbsp;关闭</td>
      <td class=gray>　</td>
    </tr>
   <% t1=web_var_num(web_var(web_config,9),9,1) %>
    <tr> 
      <td>发布交易：</td>
      <td><input type=radio name=web_config_9_9 value='1'<% if t1=1 then response.write " checked" %> class=bg_1> 
        &nbsp;开放&nbsp; <input type=radio name=web_config_9_9 value='0'<% if t1=0 then response.write " checked" %> class=bg_1> 
        &nbsp;关闭</td>
      <td class=gray>　</td>
    </tr>

	<% t1=web_var_num(web_var(web_config,9),10,1) %>
	  <tr>
      <td>红包开关：</td>
      <td colspan=2><input type=radio name=web_config_9_10 value='1'<% if t1=1 then response.write " checked" %> class=bg_1> 
        &nbsp;开放&nbsp; <input type=radio name=web_config_9_10 value='0'<% if t1=0 then response.write " checked" %> class=bg_1> 
        &nbsp;关闭&nbsp;<font class=gray>再次使用请执行SQL：delete from get_money清空已使用记录</font></td>
      </tr>
    <% else %>
    <input type=hidden name=web_login value='<%response.write web_login%>'>
    <input type=hidden name=web_stamp_1 value='<%response.write web_var(web_stamp,1)%>'>
    <input type=hidden name=web_stamp_2 value='<%response.write web_var(web_stamp,2)%>'>
    <input type=hidden name=web_stamp_3 value='<%response.write web_var(web_stamp,3)%>'>
    <input type=hidden name=web_setup_1 value='<%response.write web_var_num(web_setup,1,1)%>'>
    <input type=hidden name=web_setup_2 value='<%response.write web_var_num(web_setup,2,1)%>'>
    <input type=hidden name=web_setup_3 value='<%response.write web_var_num(web_setup,3,1)%>'>
    <input type=hidden name=web_setup_4 value='<%response.write web_var_num(web_setup,4,1)%>'>
    <input type=hidden name=web_setup_5 value='<%response.write web_var_num(web_setup,5,1)%>'>
    <input type=hidden name=web_setup_6 value='<%response.write web_var_num(web_setup,6,1)%>'>
    <input type=hidden name=web_setup_7 value='<%response.write web_var_num(web_setup,7,1)%>'>
    <input type=hidden name=web_setup_8 value='<%response.write web_var_num(web_setup,8,1)%>'>
	<input type=hidden name=web_setup_9 value='<%response.write web_var_num(web_setup,9,1)%>'>
	<input type=hidden name=web_setup_10 value='<%response.write web_var_num(web_setup,10,1)%>'>
    <input type=hidden name=web_config_9_1 value='<%response.write web_var_num(web_var(web_config,9),1,1)%>'>
    <input type=hidden name=web_config_9_2 value='<%response.write web_var_num(web_var(web_config,9),2,1)%>'>
    <input type=hidden name=web_config_9_3 value='<%response.write web_var_num(web_var(web_config,9),3,1)%>'>
    <input type=hidden name=web_config_9_4 value='<%response.write web_var_num(web_var(web_config,9),4,1)%>'>
    <input type=hidden name=web_config_9_5 value='<%response.write web_var_num(web_var(web_config,9),5,1)%>'>
    <input type=hidden name=web_config_9_6 value='<%response.write web_var_num(web_var(web_config,9),6,1)%>'>
    <input type=hidden name=web_config_9_7 value='<%response.write web_var_num(web_var(web_config,9),7,1)%>'>
    <input type=hidden name=web_config_9_8 value='<%response.write web_var_num(web_var(web_config,9),8,1)%>'>
    <input type=hidden name=web_config_9_9 value='<%response.write web_var_num(web_var(web_config,9),9,1)%>'>
	<input type=hidden name=web_config_9_10 value='<%response.write web_var_num(web_var(web_config,9),10,1)%>'>
    <%
end if

if action="num" then
  tt=1
%>
    <tr> 
      <td>用户名长度：</td>
      <td><input type=text name=web_num_1 value='<%response.write web_var(web_num,1)%>' size=20 maxlength=20></td>
      <td class=gray>　</td>
    </tr>
    <tr> 
      <td>每页主题数：</td>
      <td><input type=text name=web_num_2 value='<%response.write web_var(web_num,2)%>' size=20 maxlength=20></td>
      <td class=gray>&nbsp;论坛、会员每页显示等</td>
    </tr>
    <tr> 
      <td>每页显示数：</td>
      <td><input type=text name=web_num_3 value='<%response.write web_var(web_num,3)%>' size=20 maxlength=20></td>
      <td class=gray>&nbsp;查看贴子内容等</td>
    </tr>
    <tr> 
      <td>每页留言数：</td>
      <td><input type=text name=web_num_4 value='<%response.write web_var(web_num,4)%>' size=20 maxlength=20></td>
      <td class=gray>&nbsp;每页留言数目等</td>
    </tr>
    <tr> 
      <td>自动返回：</td>
      <td><input type=text name=web_num_5 value='<%response.write web_var(web_num,5)%>' size=20 maxlength=20></td>
      <td class=gray>&nbsp;自动返回时间，单位为秒</td>
    </tr>
    <tr> 
      <td>主题长度：</td>
      <td><input type=text name=web_num_6 value='<%response.write web_var(web_num,6)%>' size=20 maxlength=20> 
        &nbsp;KB</td>
      <td class=gray>&nbsp;论坛发贴主题等长度</td>
    </tr>
    <tr> 
      <td>图片宽度：</td>
      <td><input type=text name=web_num_7 value='<% response.write web_var(web_num,7) %>' size=20 maxlength=20> 
        &nbsp;像素</td>
      <td class=gray>&nbsp;下载、图库等图片显示宽度</td>
    </tr>
    <tr> 
      <td>图片高度：</td>
      <td><input type=text name=web_num_8 value='<% response.write web_var(web_num,8) %>' size=20 maxlength=20> 
        &nbsp;像素</td>
      <td class=gray>&nbsp;下载、图库等图片显示高度</td>
    </tr>
    <tr> 
      <td>最大宽度：</td>
      <td><input type=text name=web_num_9 value='<% response.write web_var(web_num,9) %>' size=20 maxlength=20> 
        &nbsp;像素</td>
      <td class=gray>&nbsp;贴图、FLASH等最大宽度</td>
    </tr>
    <tr> 
      <td>最大高度：</td>
      <td><input type=text name=web_num_10 value='<% response.write web_var(web_num,10) %>' size=20 maxlength=20> 
        &nbsp;像素</td>
      <td class=gray>&nbsp;贴图、FLASH等最大高度</td>
    </tr>
    <td>头像高度：</td>
    <td><input type=text name=face_url_1 value='<% response.write web_var(face_url,1) %>' size=20 maxlength=10> 
      &nbsp;像素</td>
    <td class=gray>&nbsp;自定义头像的最高高度</td></tr>
    <tr> 
      <td>头像宽度：</td>
      <td><input type=text name=face_url_2 value='<% response.write web_var(face_url,2) %>' size=20 maxlength=10> 
        &nbsp;像素</td>
      <td class=gray>&nbsp;自定义头像的最高宽度</td>
    </tr>
    <tr> 
      <td>用户头像数：</td>
      <td><input type=text name=web_num_11 value='<% response.write web_var(web_num,11) %>' size=20 maxlength=20></td>
      <td class=gray>&nbsp;用户头像的总数</td>
    </tr>
    <tr> 
      <td>间距系数：</td>
      <td><input type=text name=web_num_12 value='<% response.write web_var(web_num,12) %>' size=20 maxlength=20></td>
      <td class=gray>&nbsp;表格行的间距</td>
    </tr>
    <tr> 
      <td>登陆超时：</td>
      <td><input type=text name=web_num_13 value='<% response.write web_var(web_num,13) %>' size=20 maxlength=20> 
        &nbsp;分钟</td>
      <td class=gray>&nbsp;用户登陆超时的时间</td>
    </tr>
    <tr> 
      <td>积分换算：</td>
      <td><input type=text name=web_num_14 value='<% response.write web_var(web_num,14) %>' size=20 maxlength=20></td>
      <td class=gray>&nbsp;积分换算比率</td>
    </tr>
    <tr> 
      <td>发布加分：</td>
      <td><input type=text name=web_num_15 value='<% response.write web_var(web_num,15) %>' size=20 maxlength=20> 
        &nbsp;分</td>
      <td class=gray>&nbsp;前台发布信息加分值</td>
    </tr>
    <tr> 
      <td>发贴加分：</td>
      <td><input type=text name=web_num_16 value='<% response.write web_var(web_num,16) %>' size=20 maxlength=20> 
        &nbsp;分</td>
      <td class=gray>&nbsp;会员论坛发帖加分值</td>
    </tr>
    <tr> 
      <td>回帖加分：</td>
      <td><input type=text name=web_num_17 value='<% response.write web_var(web_num,17) %>' size=20 maxlength=20> 
        &nbsp;分</td>
      <td class=gray>&nbsp;会员论坛回帖加分值</td>
    </tr>
    <td>注册积分：</td>
    <td><input type=text name=web_num_18 value='<% response.write web_var(web_num,18) %>' size=20 maxlength=20> 
      &nbsp;分</td>
    <td class=gray>&nbsp;会员注册默认积分</td></tr>
    <tr> 
      <td>发布加魅力：</td>
      <td><input type=text name=web_num_28 value='<% response.write web_var(web_num,28) %>' size=20 maxlength=20> 
        &nbsp;点</td>
      <td class=gray>&nbsp;前台发布信息加魅力</td>
    </tr>
    <tr> 
      <td>发贴加魅力：</td>
      <td><input type=text name=web_num_29 value='<% response.write web_var(web_num,29) %>' size=20 maxlength=20> 
        &nbsp;点</td>
      <td class=gray>&nbsp;会员论坛发帖加魅力</td>
    </tr>
    <tr> 
      <td>回帖加魅力：</td>
      <td><input type=text name=web_num_30 value='<% response.write web_var(web_num,30) %>' size=20 maxlength=20> 
        &nbsp;点</td>
      <td class=gray>&nbsp;会员论坛回帖加魅力</td>
    </tr>
    <td>注册魅力：</td>
    <td><input type=text name=web_num_31 value='<% response.write web_var(web_num,31) %>' size=20 maxlength=20> 
      &nbsp;点</td>
    <td class=gray>&nbsp;会员注册默认魅力</td></tr>
    <tr> 
      <td>精华贴加人气:</td>
      <td><input name=web_num_37 type=text  value='<% response.write web_var(web_num,37) %>' size=20 maxlength=20> 
        &nbsp;点</td>
      <td class=gray>&nbsp;会员帖子被被固顶或精华加人气</td>
    </tr>
    <tr>
      <td>帖子被回加人气</td>
      <td><input name=web_num_36 type=text  value='<% response.write web_var(web_num,36) %>' size=20 maxlength=20> 
        &nbsp;点 </td>
      <td class=gray>&nbsp;会员在论坛帖子被回复加人气</td>
    </tr>
    <tr> 
      <td>被加好友加人气:</td>
      <td><input name=web_num_38 type=text  value='<% response.write web_var(web_num,38) %>' size=20 maxlength=20> 
        &nbsp;点</td>
      <td class=gray>&nbsp;会员被加入好友加人气</td>
    </tr>
    <tr> 
      <td>被踢好友扣人气:</td>
      <td><input name=web_num_39 type=text value='<% response.write web_var(web_num,39) %>' size=20 maxlength=20> 
        &nbsp;点</td>
      <td class=gray>&nbsp;会员被踢出好友扣积分</td>
    </tr>
    <tr> 
      <td>注册金币：</td>
      <td><input type=text name=web_num_19 value='<% response.write web_var(web_num,19) %>' size=20 maxlength=20> 
        &nbsp;金币</td>
      <td class=gray>&nbsp;会员注册默认金币</td>
    </tr>
    <tr> 
      <td>精华贴加积分：</td>
      <td><input type=text name=web_num_32 value='<% response.write web_var(web_num,32) %>' size=20 maxlength=20> 
        &nbsp;分</td>
      <td class=gray>&nbsp;精华贴的积分奖励</td>
    </tr>
    <tr> 
      <td>精华贴加魅力：</td>
      <td><input type=text name=web_num_33 value='<% response.write web_var(web_num,33) %>' size=20 maxlength=20> 
        &nbsp;点</td>
      <td class=gray>&nbsp;精华贴的魅力奖励</td>
    </tr>
    <tr> 
      <td>删贴扣积分：</td>
      <td><input type=text name=web_num_34 value='<% response.write web_var(web_num,34) %>' size=20 maxlength=20> 
        &nbsp;分</td>
      <td class=gray>&nbsp;删贴扣积分</td>
    </tr>
    <tr> 
      <td>删贴扣魅力：</td>
      <td><input type=text name=web_num_35 value='<% response.write web_var(web_num,35) %>' size=20 maxlength=20> 
        &nbsp;点</td>
      <td class=gray>&nbsp;删贴扣魅力</td>
    </tr>
    <td>发布小字报：</td>
    <td><input type=text name=web_num_20 value='<% response.write web_var(web_num,20) %>' size=20 maxlength=20> 
      &nbsp;金币</td>
    <td class=gray>&nbsp;论坛发布小字报所需要货币值</td></tr>
    <tr> 
      <td>小字报显示：</td>
      <td><input type=text name=web_num_21 value='<% response.write web_var(web_num,21) %>' size=20 maxlength=20> 
        &nbsp;天</td>
      <td class=gray>&nbsp;显示天数，0则不显示（关闭）</td>
    </tr>
    <td>添加滚动广告：</td>
    <td><input type=text name=web_num_23 value='<% response.write web_var(web_num,23) %>' size=20 maxlength=20> 
      &nbsp;金币</td>
    <td class=gray>&nbsp;添加滚动广告所需要货币值</td></tr>
    <tr> 
      <td>滚动广告显示：</td>
      <td><input type=text name=web_num_22 value='<% response.write web_var(web_num,22) %>' size=20 maxlength=20> 
        &nbsp;天</td>
      <td class=gray>&nbsp;显示天数，0则不显示（关闭）</td>
    </tr>
    <tr> 
      <td>论坛投票：</td>
      <td><input type=text name=web_num_24 value='<% response.write web_var(web_num,24) %>' size=20 maxlength=20>
        &nbsp;栏</td>
      <td class=gray>&nbsp;投票显示栏目数，0 则关闭</td>
    </tr>
    <tr> 
      <td>发布防灌水：</td>
      <td><input type=text name=web_num_25 value='<% response.write web_var(web_num,25) %>' size=20 maxlength=20>
        &nbsp;秒</td>
      <td class=gray>&nbsp;前台用户发布间隔时间</td>
    </tr>
    <tr> 
      <td>留言防灌水：</td>
      <td><input type=text name=web_num_26 value='<% response.write web_var(web_num,26) %>' size=20 maxlength=20>
        &nbsp;秒</td>
      <td class=gray>&nbsp;前台用户留言间隔时间</td>
    </tr>
    <tr> 
      <td>论坛防灌水：</td>
      <td><input type=text name=web_num_27 value='<% response.write web_var(web_num,27) %>' size=20 maxlength=20>
        &nbsp;秒</td>
      <td class=gray>&nbsp;用户在论坛发贴和回帖间隔时间</td>
    </tr></tr>
    <tr>
     <td>上传权限：</td>
     <td><input type=text name=web_num_40 value='<% response.write web_var(web_num,40) %>' size=20 maxlength=20>
        &nbsp;用户组</td>
     <td class=gray>&nbsp;上传不受限制的级别(详见用户组管理)</td>
    </tr>
    <tr>
     <td>上传数量：</td>
     <td><input type=text name=web_num_41 value='<% response.write web_var(web_num,41) %>' size=20 maxlength=20>
        &nbsp;个</td>
     <td class=gray>&nbsp;限制每日上传数量(0为关闭上传)</td>
    </tr>
    <tr>
     <td>在线加分：</td>
     <td><input type=text name=web_num_42 value='<% response.write web_var(web_num,42) %>' size=20 maxlength=20>
        &nbsp;分钟</td>
     <td class=gray>&nbsp;控制在线增加积分的时间</td>
    </tr>

<!--论坛主题加色和加粗的后台定义，输入开始 -->
<tr>
<td>加色扣分：</td>
<td><input type=text name=web_num_43 value='<% response.write web_var(web_num,43) %>' size=20 maxlength=20> 分</td>
<td class=gray>&nbsp;论坛主题加色和加粗扣积分</td>
</tr>
<!--论坛主题加色和加粗的后台定义，输入结束 -->
<tr>
<td>红包钱数：</td>
<td><input type=text name=web_num_44 value='<% response.write web_var(web_num,44) %>' size=20 maxlength=20> </td>
<td class=gray>&nbsp;恭送红包金钱数量</td>
</tr>

    <% else %>
    <input type=hidden name=web_num_1 value='<%response.write web_var(web_num,1)%>'>
    <input type=hidden name=web_num_2 value='<%response.write web_var(web_num,2)%>'>
    <input type=hidden name=web_num_3 value='<%response.write web_var(web_num,3)%>'>
    <input type=hidden name=web_num_4 value='<%response.write web_var(web_num,4)%>'>
    <input type=hidden name=web_num_5 value='<%response.write web_var(web_num,5)%>'>
    <input type=hidden name=web_num_6 value='<%response.write web_var(web_num,6)%>'>
    <input type=hidden name=web_num_7 value='<%response.write web_var(web_num,7)%>'>
    <input type=hidden name=web_num_8 value='<%response.write web_var(web_num,8)%>'>
    <input type=hidden name=web_num_9 value='<%response.write web_var(web_num,9)%>'>
    <input type=hidden name=web_num_10 value='<%response.write web_var(web_num,10)%>'>
    <input type=hidden name=web_num_11 value='<%response.write web_var(web_num,11)%>'>
    <input type=hidden name=web_num_12 value='<%response.write web_var(web_num,12)%>'>
    <input type=hidden name=web_num_13 value='<%response.write web_var(web_num,13)%>'>
    <input type=hidden name=web_num_14 value='<%response.write web_var(web_num,14)%>'>
    <input type=hidden name=web_num_15 value='<%response.write web_var(web_num,15)%>'>
    <input type=hidden name=web_num_16 value='<%response.write web_var(web_num,16)%>'>
    <input type=hidden name=web_num_17 value='<%response.write web_var(web_num,17)%>'>
    <input type=hidden name=web_num_18 value='<%response.write web_var(web_num,18)%>'>
    <input type=hidden name=web_num_19 value='<%response.write web_var(web_num,19)%>'>
    <input type=hidden name=web_num_20 value='<%response.write web_var(web_num,20)%>'>
    <input type=hidden name=web_num_21 value='<%response.write web_var(web_num,21)%>'>
    <input type=hidden name=web_num_22 value='<%response.write web_var(web_num,22)%>'>
    <input type=hidden name=web_num_23 value='<%response.write web_var(web_num,23)%>'>
    <input type=hidden name=web_num_24 value='<%response.write web_var(web_num,24)%>'>
    <input type=hidden name=web_num_25 value='<%response.write web_var(web_num,25)%>'>
    <input type=hidden name=web_num_26 value='<%response.write web_var(web_num,26)%>'>
    <input type=hidden name=web_num_27 value='<%response.write web_var(web_num,27)%>'>
    <input type=hidden name=web_num_28 value='<%response.write web_var(web_num,28)%>'>
    <input type=hidden name=web_num_29 value='<%response.write web_var(web_num,29)%>'>
    <input type=hidden name=web_num_30 value='<%response.write web_var(web_num,30)%>'>
    <input type=hidden name=web_num_31 value='<%response.write web_var(web_num,31)%>'>
    <input type=hidden name=web_num_32 value='<%response.write web_var(web_num,32)%>'>
    <input type=hidden name=web_num_33 value='<%response.write web_var(web_num,33)%>'>
    <input type=hidden name=web_num_34 value='<%response.write web_var(web_num,34)%>'>
    <input type=hidden name=web_num_35 value='<%response.write web_var(web_num,35)%>'>
    <input type=hidden name=web_num_36 value='<%response.write web_var(web_num,36)%>'>
    <input type=hidden name=web_num_37 value='<%response.write web_var(web_num,37)%>'>
    <input type=hidden name=web_num_38 value='<%response.write web_var(web_num,38)%>'>
    <input type=hidden name=web_num_39 value='<%response.write web_var(web_num,39)%>'>
    <input type=hidden name=web_num_40 value='<%response.write web_var(web_num,40)%>'>
    <input type=hidden name=web_num_41 value='<%response.write web_var(web_num,41)%>'>
    <input type=hidden name=web_num_42 value='<%response.write web_var(web_num,42)%>'>
    <input type=hidden name=web_num_43 value='<%response.write web_var(web_num,43)%>'>
	<input type=hidden name=web_num_44 value='<%response.write web_var(web_num,44)%>'>
    <input type=hidden name=face_url_1 value='<%response.write web_var(face_url,1)%>'>
    <input type=hidden name=face_url_2 value='<%response.write web_var(face_url,2)%>'>
    <%
end if

if action="menu" then
  tt=1
  tdim=split(web_menu,"|")
  for i=0 to ubound(tdim)
%>
    <tr> 
      <td>网站菜单 
        <%response.write i+1%>
        ：</td>
      <td colspan=2><input type=text name=web_menu_<%response.write i+1%> value='<%response.write tdim(i)%>' size=40 maxlength=100></td>
    </tr>
    <%
  next
  erase tdim
%>
    <input type=hidden name=web_menu_num value='<%response.write i%>'>
    <tr> 
      <td>增加新菜单：</td>
      <td colspan=2><input type=text name=web_menu_new value='' size=40 maxlength=100> 
        &nbsp;例：abc:文章学习</td>
    </tr>
    <tr> 
      <td colspan=3 class=htd><font class=red>网站菜单修改说明：</font>你可以添加、修改、删除网站菜单，但文本框中只能是以“abc:文章学习”的形式（栏目名:菜单名）存在，否则将出错！！！<br> 
        <font class=red_3>添加菜单</font>即在“增加新菜单”中按规则加入要新添的菜单，只能一个一个的增加；<br> <font class=red_3>修改菜单</font>可修改所有的，如要排序，只要将其内容互换即可，但栏目名和菜单名要同时互换；<br> 
        <font class=red_3>删除菜单</font>可一次删除一个或多个，方法为将要删除的栏目菜单框里的内容清空，再将栏目数较大的向较小的里转移。</td>
    </tr>
    <% else %>
    <input type=hidden name=web_menu value='<%response.write web_menu%>'>
    <%
end if

if action="color" then
  tt=1
%>
    <tr> 
      <td>网站背景：</td>
      <td><input type=text name=web_color_1 value='<%response.write web_var(web_color,1)%>' size=20 maxlength=7></td>
      <td bgcolor=<%response.write web_var(web_color,1)%>>　</td>
    </tr>
    <tr> 
      <td>表格色一：</td>
      <td><input type=text name=web_color_2 value='<%response.write web_var(web_color,2)%>' size=20 maxlength=7></td>
      <td bgcolor=<%response.write web_var(web_color,2)%>>　</td>
    </tr>
    <tr> 
      <td>表格色二：</td>
      <td><input type=text name=web_color_3 value='<%response.write web_var(web_color,3)%>' size=20 maxlength=7></td>
      <td bgcolor=<%response.write web_var(web_color,3)%>>　</td>
    </tr>
    <tr> 
      <td>表格色三：</td>
      <td><input type=text name=web_color_4 value='<%response.write web_var(web_color,4)%>' size=20 maxlength=7></td>
      <td bgcolor=<%response.write web_var(web_color,4)%>>　</td>
    </tr>
    <tr> 
      <td>表格色四：</td>
      <td><input type=text name=web_color_5 value='<%response.write web_var(web_color,5)%>' size=20 maxlength=7></td>
      <td bgcolor=<%response.write web_var(web_color,5)%>>　</td>
    </tr>
    <tr> 
      <td>左边背景：</td>
      <td><input type=text name=web_color_6 value='<%response.write web_var(web_color,6)%>' size=20 maxlength=7></td>
      <td bgcolor=<%response.write web_var(web_color,6)%>>　</td>
    </tr>
    <tr> 
      <td>主字体色：</td>
      <td><input type=text name=web_color_7 value='<%response.write web_var(web_color,7)%>' size=20 maxlength=7></td>
      <td bgcolor=<%response.write web_var(web_color,7)%>>　</td>
    </tr>
    <tr> 
      <td>突出字体一：</td>
      <td><input type=text name=web_color_8 value='<%response.write web_var(web_color,8)%>' size=20 maxlength=7></td>
      <td bgcolor=<%response.write web_var(web_color,8)%>>　</td>
    </tr>
    <tr> 
      <td>淡色字体：</td>
      <td><input type=text name=web_color_9 value='<%response.write web_var(web_color,9)%>' size=20 maxlength=7></td>
      <td bgcolor=<%response.write web_var(web_color,9)%>>　</td>
    </tr>
    <tr> 
      <td>红色字体一：</td>
      <td><input type=text name=web_color_10 value='<%response.write web_var(web_color,10)%>' size=20 maxlength=7></td>
      <td bgcolor=<%response.write web_var(web_color,10)%>>　</td>
    </tr>
    <tr> 
      <td>红色字体二：</td>
      <td><input type=text name=web_color_11 value='<%response.write web_var(web_color,11)%>' size=20 maxlength=7></td>
      <td bgcolor=<%response.write web_var(web_color,11)%>>　</td>
    </tr>
    <tr> 
      <td>红色字体三：</td>
      <td><input type=text name=web_color_12 value='<%response.write web_var(web_color,12)%>' size=20 maxlength=7></td>
      <td bgcolor=<%response.write web_var(web_color,12)%>>　</td>
    </tr>
    <tr> 
      <td>网站字体：</td>
      <td colspan=2><input type=text name=web_font_family value='<%response.write web_font_family%>' size=60 maxlength=100></td>
    </tr>
    <tr> 
      <td>字体大小：</td>
      <td colspan=2><input type=text name=web_font_size value='<%response.write web_font_size%>' size=20 maxlength=10></td>
    </tr>
    <tr>
      <td>颜色拾取：</td>
      <td colspan=2><a class=Btn TITLE=字体颜色 LANGUAGE=javascript onclick=foreColor()>   <img class=Ico src='htmledit/images/fgcolor.gif' WIDTH=18 HEIGHT=18>    点击图标取色后，复制颜色代码即OK</a></td>
    </tr>
    <% else %>
    <input type=hidden name=web_color_1 value='<%response.write web_var(web_color,1)%>'>
    <input type=hidden name=web_color_2 value='<%response.write web_var(web_color,2)%>'>
    <input type=hidden name=web_color_3 value='<%response.write web_var(web_color,3)%>'>
    <input type=hidden name=web_color_4 value='<%response.write web_var(web_color,4)%>'>
    <input type=hidden name=web_color_5 value='<%response.write web_var(web_color,5)%>'>
    <input type=hidden name=web_color_6 value='<%response.write web_var(web_color,6)%>'>
    <input type=hidden name=web_color_7 value='<%response.write web_var(web_color,7)%>'>
    <input type=hidden name=web_color_8 value='<%response.write web_var(web_color,8)%>'>
    <input type=hidden name=web_color_9 value='<%response.write web_var(web_color,9)%>'>
    <input type=hidden name=web_color_10 value='<%response.write web_var(web_color,10)%>'>
    <input type=hidden name=web_color_11 value='<%response.write web_var(web_color,11)%>'>
    <input type=hidden name=web_color_12 value='<%response.write web_var(web_color,12)%>'>
    <input type=hidden name=web_color_13 value='<%response.write web_var(web_color,13)%>'>
    <input type=hidden name=web_font_family value='<%response.write web_font_family%>'>
    <input type=hidden name=web_font_size value='<%response.write web_font_size%>'>
    <%
end if

if action="down_up" then
  tt=1
%>
    <tr> 
      <td>软件图片宽：</td>
      <td><input type=text name=web_down_1 value='<%response.write web_var(web_down,1)%>' size=20 maxlength=10> 
        &nbsp;像素</td>
      <td class=gray>&nbsp;软件图片的宽度</td>
    </tr>
    <tr> 
      <td>软件图片高：</td>
      <td><input type=text name=web_down_2 value='<%response.write web_var(web_down,2)%>' size=20 maxlength=10> 
        &nbsp;像素</td>
      <td class=gray>&nbsp;软件图片的高度</td>
    </tr>
    <tr> 
      <td>软件目录：</td>
      <td><input type=text name=web_down_5 value='<%response.write web_var(web_down,5)%>' size=20 maxlength=20></td>
      <td class=gray>　</td>
    </tr>
    <tr> 
      <td>运行环境：</td>
      <td colspan=2><input type=text name=web_down_3 value='<%response.write web_var(web_down,3)%>' size=66 maxlength=100></td>
    </tr>
    <tr> 
      <td>授权类型：</td>
      <td colspan=2><input type=text name=web_down_4 value='<%response.write web_var(web_down,4)%>' size=66 maxlength=100></td>
    </tr>
    <tr> 
      <td>上传路径：</td>
      <td><input type=text name=web_upload_1 value='<% response.write web_var(web_upload,1) %>' size=20 maxlength=20></td>
      <td class=gray>&nbsp;为防有错，尽量不要修改此项</td>
    </tr>
    <tr> 
      <td>文件类型：</td>
      <td><input type=text name=web_upload_2 value='<% response.write web_var(web_upload,2) %>' size=35 maxlength=50></td>
      <td class=gray>&nbsp;多个类型用“,”分开</td>
    </tr>
    <tr> 
      <td>文件类型：</td>
      <td><input type=text name=web_upload_5 value='<% response.write web_var(web_upload,5) %>' size=35 maxlength=50></td>
      <td class=gray>&nbsp;用户上传头像专用类型</td>
    </tr>
    <tr> 
      <td>文件大小：</td>
      <td><input type=text name=web_upload_3 value='<% response.write web_var(web_upload,3) %>' size=20 maxlength=10></td>
      <td class=gray>&nbsp;单位为KB，最好小于500</td>
    </tr>
    <tr> 
      <td>管理上传：</td>
      <td><input type=text name=web_upload_4 value='<% response.write web_var(web_upload,4) %>' size=20 maxlength=10></td>
      <td class=gray> 单位为KB，最好小于500</td>
    </tr>
    <% else %>
    <input type=hidden name=web_down_1 value='<%response.write web_var(web_down,1)%>'>
    <input type=hidden name=web_down_2 value='<%response.write web_var(web_down,2)%>'>
    <input type=hidden name=web_down_5 value='<%response.write web_var(web_down,5)%>'>
    <input type=hidden name=web_down_3 value='<%response.write web_var(web_down,3)%>'>
    <input type=hidden name=web_down_4 value='<%response.write web_var(web_down,4)%>'>
    <input type=hidden name=web_upload_1 value='<% response.write web_var(web_upload,1) %>'>
    <input type=hidden name=web_upload_2 value='<% response.write web_var(web_upload,2) %>'>
    <input type=hidden name=web_upload_3 value='<% response.write web_var(web_upload,3) %>'>
    <input type=hidden name=web_upload_4 value='<% response.write web_var(web_upload,4) %>'>
    <input type=hidden name=web_upload_5 value='<% response.write web_var(web_upload,5) %>'>
    <%
end if

if action="info" then
  tt=1
%>
    <tr> 
      <td colspan=3 class=red_3>&nbsp;过滤字符设置</td>
    </tr>
    <tr> 
      <td>非法字符：</td>
      <td colspan=2><input type=text name=web_safety_1 value='<%response.write replace(web_var(web_safety,1),"'","")%>' size=30 maxlength=100> 
        &nbsp;&nbsp;单引号(')和双引号(")已被系统过滤</td>
    </tr>
    <tr> 
      <td>密码允许：</td>
      <td colspan=2><input type=text name=web_safety_2 value='<%response.write web_var(web_safety,2)%>' size=66 maxlength=200></td>
    </tr>
    <tr> 
      <td>注册禁用：</td>
      <td colspan=2><input type=text name=web_safety_3 value='<%response.write web_var(web_safety,3)%>' size=66 maxlength=200></td>
    </tr>
    <tr> 
      <td>不健康字符：</td>
      <td colspan=2><input type=text name=web_safety_4 value='<%response.write web_var(web_safety,4)%>' size=66 maxlength=200></td>
    </tr>
    <tr><td colspan=3 class=red_3>&nbsp;IP 过滤设置    （多个IP则用“:”隔开）</td></tr>
    <tr>
     <td>被过滤的IP：</td>
     <td colspan=2><input type=text name=web_safety_5 value='<%response.write web_var(web_safety,5)%>' size=66 maxlength=2000></td>
    </tr>
    <tr> 
      <td colspan=3 class=red_3>&nbsp;信息提示设置</td>
    </tr>
    <tr> 
      <td>外部提交：</td>
      <td colspan=2><input type=text name=web_error_1 value='<%response.write web_var(web_error,1)%>' size=66 maxlength=200></td>
    </tr>
    <tr> 
      <td>未注册登陆：</td>
      <td colspan=2><input type=text name=web_error_2 value='<%response.write web_var(web_error,2)%>' size=66 maxlength=200></td>
    </tr>
    <tr> 
      <td>支持信息：</td>
      <td colspan=2><input type=text name=web_error_3 value='<%response.write web_var(web_error,3)%>' size=66 maxlength=200></td>
    </tr>
	<tr> 
      <td>网站信息：</td>
      <td colspan=2><input type=text name=web_error_5 value='<%response.write web_var(web_error,5)%>' size=66 maxlength=200></td>
    </tr>
    <tr> 
      <td>网站底部：</td>
      <td colspan=2><input type=text name=web_error_4 value='<%response.write web_var(web_error,4)%>' size=66 maxlength=200></td>
    </tr>
	<tr> 
      <td>红包信息：</td>
      <td colspan=2><input type=text name=web_error_6 value='<%response.write web_var(web_error,6)%>' size=66 maxlength=200></td>
    </tr>
    <% else %>
    <input type=hidden name=web_safety_1 value='<%response.write replace(web_var(web_safety,1),"'","")%>'>
    <input type=hidden name=web_safety_2 value='<%response.write web_var(web_safety,2)%>'>
    <input type=hidden name=web_safety_3 value='<%response.write web_var(web_safety,3)%>'>
    <input type=hidden name=web_safety_4 value='<%response.write web_var(web_safety,4)%>'>
    <input type=hidden name=web_safety_5 value='<%response.write web_var(web_safety,5)%>'>
    <input type=hidden name=web_error_1 value='<%response.write web_var(web_error,1)%>'>
    <input type=hidden name=web_error_2 value='<%response.write web_var(web_error,2)%>'>
    <input type=hidden name=web_error_3 value='<%response.write web_var(web_error,3)%>'>
    <input type=hidden name=web_error_4 value='<%response.write web_var(web_error,4)%>'>
	<input type=hidden name=web_error_5 value='<%response.write web_var(web_error,5)%>'>
	<input type=hidden name=web_error_6 value='<%response.write web_var(web_error,6)%>'>
    <%
end if

if action="user" then
  tt=1
  tdim=split(user_power,"|")
  for i=0 to ubound(tdim)
%>
    <tr> 
      <td>用户组 
        <%response.write i+1%>
        ：</td>
      <td><input type=text name=user_power_<%response.write i+1%> value='<%response.write tdim(i)%>' size=30 maxlength=20></td>
      <td class=gray>　</td>
    </tr>
    <%
  next
  erase tdim
%>
    <input type=hidden name=user_power_num value='<%response.write i%>'>
    <tr> 
      <td>新用户组：</td>
      <td><input type=text name=user_power_new value='' size=30 maxlength=20></td>
      <td class=gray>&nbsp;例：huser:高级用户</td>
    </tr>
    <tr> 
      <td colspan=3 class=htd><font class=red>用户组修改说明：</font>你可以添加、修改、删除用户组，但文本框中只能是以“huser:高级用户”的形式（组别:用户组名）存在，否则将出错！！！ 
        <font class=red>在程序中，用户组数越小，权限越大，前三个用户组别请勿私自修改，但修改其用户组名可以！当网站正式运行后，请勿再修改用户组别，以防部分用户将会不能被程序正确实别！</font><br> 
        <font class=red_3>添加用户组</font>即在“增加新用户组”中按规则加入要新添的用户组，只能单个的增加；<br> <font class=red_3>修改用户组</font>可修改所有的，如要排序，只要将其内容互换即可，但用户组别和用户组名要同时互换；<br> 
        <font class=red_3>删除用户组</font>可一次删除一个或多个，方法为将要删除的用户组框里的内容清空，再将栏目数较大的向较小的里转移。</td>
    </tr>
    <% else %>
    <input type=hidden name=user_power value='<%response.write user_power%>'>
    <%
end if

if action="grade" then
  tt=1
  tdim=split(user_grade,"|")
  for i=0 to ubound(tdim)
%>
    <tr> 
      <td>用户等级 
        <%response.write i%>
        ：</td>
      <td><input type=text name=user_grade_<%response.write i+1%> value='<%response.write tdim(i)%>' size=30 maxlength=20></td>
      <td class=gray>&nbsp;<img src='images/star/star_<%response.write i%>.gif' border=0></td>
    </tr>
    <%
  next
  erase tdim
%>
    <input type=hidden name=user_grade_num value='<%response.write i%>'>
    <tr> 
      <td>新用户等级：</td>
      <td><input type=text name=user_grade_new value='' size=30 maxlength=20></td>
      <td class=gray>&nbsp;例：10000:超级</td>
    </tr>
    <tr> 
      <td colspan=3 class=htd><font class=red>用户等级修改说明：</font>你可以添加、修改、删除用户等级，但文本框中只能是以“10000:超级”的形式（所需帖子数:等级名称）存在，否则将出错！！！<br> 
        <font class=red_3>添加用户等级</font>即在“增加新用户组”中按规则加入要新添的用户等级，只能单个的增加；<br> <font class=red_3>修改用户等级</font>可修改所有的，如要排序，只要将其内容互换即可，但所需帖子数和等级名称要同时互换；<br> 
        <font class=red_3>删除用户等级</font>可一次删除一个或多个，方法为将要删除的用户等级框里的内容清空，再将栏目数较大的向较小的里转移。</td>
    </tr>
    <% else %>
    <input type=hidden name=user_grade value='<%response.write user_grade%>'>
    <%
end if

if action="forum" then
  tt=1
  udim=split(user_power,"|")
  tdim=split(forum_type,"|")
  for i=0 to ubound(tdim)
    t2=left(tdim(i),instr(tdim(i),":")-1)
%>
    <tr> 
      <td>论坛分类 
        <%response.write i+1%>
        ：</td>
      <td><input type=text name=forum_type_<%response.write i+1%>_2 value='<%response.write right(tdim(i),len(tdim(i))-instr(tdim(i),":"))%>' size=20 maxlength=20></td>
      <td class=gray>　</td>
    </tr>
    <tr> 
      <td class=gray>论坛权限</td>
      <td colspan=2> 
        <%
for j=0 to ubound(udim)
  response.write vbcrlf&"<input type=checkbox name=forum_type_"&i+1&"_1 value='"&j+1&"' class=bg_1"
  if instr(1,"."&t2&".","."&j+1&".")>0 then response.write " checked"
  response.write ">"&right(udim(j),len(udim(j))-instr(udim(j),":"))
next
%>
        <input type=checkbox name=forum_type_<%response.write i+1%>_1 value='0' class=bg_1<%if instr(1,"."&t2&".",".0.")>0 then response.write " checked"%>>
        游客</td>
    </tr>
    <%
  next
  erase tdim
%>
    <input type=hidden name=forum_type_num value='<%response.write i%>'>
    <tr> 
      <td>新论坛分类：</td>
      <td><input type=text name=forum_type_new_2 value='' size=30 maxlength=20></td>
      <td class=gray>&nbsp;例：精华论坛</td>
    </tr>
    <tr> 
      <td class=gray>论坛权限</td>
      <td colspan=2> 
        <%
for j=0 to ubound(udim)
  response.write vbcrlf&"<input type=checkbox name=forum_type_new_1 value='"&j+1&"' class=bg_1>"&right(udim(j),len(udim(j))-instr(udim(j),":"))
next
%>
        <input type=checkbox name=forum_type_new_1 value='0' class=bg_1>
        游客</td>
    </tr>
    <tr> 
      <td colspan=3 class=htd><font class=red>论坛分类修改说明：</font>你可以添加、修改、删除论坛分类，但文本框中只能是以“文章学习”的形式（论坛分类名称）存在，否则将出错！！！ 
        <font class=red>如用户组有删除或修改其权限后，请重新分配论坛权限！如论坛分类及权限有修改，请进入论坛管理以重新分配论坛类别！</font><br> 
        <font class=red_3>添加论坛分类</font>即在“新论坛分类”中按规则加入要新添的论坛分类，只能单个的增加；<br> <font class=red_3>修改论坛分类</font>可修改所有的，排序对论坛的权限没有影响；<br> 
        <font class=red_3>删除论坛分类</font>可一次删除一个或多个，方法为将要删除的论坛分类框里的内容删除即可。</td>
    </tr>
    <%
  erase udim
else
%>
    <input type=hidden name=forum_type value='<%response.write forum_type%>'>
    <%
end if

if tt=0 then
%>
    <tr> 
      <td colspan=3 align=center height=150 class=htd><font class=red>请先选择配置修改的类型！建议在修改配置文件前先<a href='javascript:Do_b_data();'>备份配置</a>。<br>
        如果在修改配置时出现了错误，您可以试着<a href='javascript:Do_h_data();'>还原配置</a>。<br>
        如果因为您的一时不小心，将配置文件修改错误，请尽快用FTP连上并用可用的配置文件覆盖错误的文件（include/common.asp）</font></td>
    </tr>
    <% else %>
    <tr> 
      <td colspan=3 align=center height=30><input type=submit value='提 交 修 改'> 
        &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <input type=reset value=' 重 置 '> 
      </td>
    </tr>
    <% end if %>
  </form>
</table>
<%
end sub

sub config_chk()
  dim t1,t2,tn
  face_url=code_config(request.form("face_url_1"),3) &"|"& code_config(request.form("face_url_2"),3)
  web_font_family=code_config(request.form("web_font_family"),0):web_font_size=code_config(request.form("web_font_size"),0)
  web_config=code_config(request.form("web_config_1"),3) &"|"& code_config(request.form("web_config_2"),3) &"|"& _
	     code_config(request.form("web_config_3"),3) &"|"& code_config(request.form("web_config_4"),3) &"|"& _
	     code_config(request.form("web_config_5"),3) &"|"& code_config(request.form("web_config_6"),3) &"|"& _
	     code_config(request.form("web_config_7"),3) &"|"& code_config(request.form("web_config_8"),3) &"|"& _
	     trim(request.form("web_config_9_1")) & trim(request.form("web_config_9_2")) & _
	     trim(request.form("web_config_9_3")) & trim(request.form("web_config_9_4")) & _
	     trim(request.form("web_config_9_5")) & trim(request.form("web_config_9_6")) & _
	     trim(request.form("web_config_9_7")) & trim(request.form("web_config_9_8")) & _
	     trim(request.form("web_config_9_9")) & trim(request.form("web_config_9_10"))&"|"& _
		 code_config(request.form("web_config_10"),3) &"|"& code_config(request.form("web_config_11"),3) 
  web_cookies=code_config(request.form("web_cookies"),3):web_login=trim(request.form("web_login"))
  web_setup=trim(request.form("web_setup_1"))&trim(request.form("web_setup_2"))&trim(request.form("web_setup_3"))&_
	    trim(request.form("web_setup_4"))&trim(request.form("web_setup_5"))&trim(request.form("web_setup_6"))&_
	    trim(request.form("web_setup_7"))&trim(request.form("web_setup_8"))&trim(request.form("web_setup_9"))&_
        trim(request.form("web_setup_10"))
  web_num=code_num(trim(request.form("web_num_1")),20) &"|"& code_num(trim(request.form("web_num_2")),20) &"|"& _
	  code_num(trim(request.form("web_num_3")),10) &"|"& code_num(trim(request.form("web_num_4")),5) &"|"& _
	  code_num(trim(request.form("web_num_5")),3) &"|"& code_num(trim(request.form("web_num_6")),12) &"|"& _
	  code_num(trim(request.form("web_num_7")),150) &"|"& code_num(trim(request.form("web_num_8")),112) &"|"& _
	  code_num(trim(request.form("web_num_9")),430) &"|"& code_num(trim(request.form("web_num_10")),350) &"|"& _
	  code_num(trim(request.form("web_num_11")),24) &"|"& code_num(trim(request.form("web_num_12")),16) &"|"& _
	  code_num(trim(request.form("web_num_13")),20) &"|"& code_num(trim(request.form("web_num_14")),20) &"|"& _
          code_num(trim(request.form("web_num_15")),2) &"|"& code_num(trim(request.form("web_num_16")),0) &"|"& _
          code_num(trim(request.form("web_num_17")),0) &"|"& code_num(trim(request.form("web_num_18")),0) &"|"& _
          code_num(trim(request.form("web_num_19")),0) &"|"& _
          code_num(trim(request.form("web_num_20")),0) &"|"& _
          code_num(trim(request.form("web_num_21")),0) &"|"& _
          code_num(trim(request.form("web_num_22")),0) &"|"& _
          code_num(trim(request.form("web_num_23")),0) &"|"& _
          code_num(trim(request.form("web_num_24")),0) &"|"& _
          code_num(trim(request.form("web_num_25")),0) &"|"& _
          code_num(trim(request.form("web_num_26")),0) &"|"& _
          code_num(trim(request.form("web_num_27")),0) &"|"& _
          code_num(trim(request.form("web_num_28")),0) &"|"& _
          code_num(trim(request.form("web_num_29")),0) &"|"& _
          code_num(trim(request.form("web_num_30")),0) &"|"& _
          code_num(trim(request.form("web_num_31")),0) &"|"& _
          code_num(trim(request.form("web_num_32")),0) &"|"& _
          code_num(trim(request.form("web_num_33")),0) &"|"& _
          code_num(trim(request.form("web_num_34")),0) &"|"& _
	  code_num(trim(request.form("web_num_35")),0) &"|"& _
          code_num(trim(request.form("web_num_36")),0) &"|"& _
          code_num(trim(request.form("web_num_37")),0) &"|"& _
          code_num(trim(request.form("web_num_38")),0) &"|"& _
          code_num(trim(request.form("web_num_39")),0) &"|"& _
          code_num(trim(request.form("web_num_40")),1) &"|"& _
          code_num(trim(request.form("web_num_41")),0) &"|"& _
          code_num(trim(request.form("web_num_42")),0) &"|"& _
		  code_num(trim(request.form("web_num_43")),0) &"|"& _
          code_num(trim(request.form("web_num_44")),0)

  if action="menu" then
    web_menu="":tn=int(trim(request.form("web_menu_num")))
    for i=1 to tn
      t1=code_config(request.form("web_menu_"&i),4)
      if len(t1)>1 then if instr(1,t1,":")>0 then web_menu=web_menu&t1&"|"
    next
    t1=code_config(request.form("web_menu_new"),4)
    if len(t1)>1 then if instr(1,t1,":")>0 then web_menu=web_menu&t1
    if right(web_menu,1)="|" then web_menu=left(web_menu,len(web_menu)-1)
  else
    web_menu=trim(request.form("web_menu"))
  end if
  web_color=code_config(request.form("web_color_1"),2)&"|"&code_config(request.form("web_color_2"),2)&"|"&code_config(request.form("web_color_3"),2)&"|"&_
	    code_config(request.form("web_color_4"),2)&"|"&code_config(request.form("web_color_5"),2)&"|"&code_config(request.form("web_color_6"),2)&"|"&_
	    code_config(request.form("web_color_7"),2)&"|"&code_config(request.form("web_color_8"),2)&"|"&code_config(request.form("web_color_9"),2)&"|"&_
	    code_config(request.form("web_color_10"),2)&"|"&code_config(request.form("web_color_11"),2)&"|"&code_config(request.form("web_color_12"),2)
  web_upload=code_config(request.form("web_upload_1"),2)&"|"&code_config(request.form("web_upload_2"),2)&"|"&code_config(request.form("web_upload_3"),2)&"|"&code_config(request.form("web_upload_4"),2)&"|"&code_config(request.form("web_upload_5"),2)
 sweb_upload=code_config(request.form("sweb_upload_1"),2)&"|"&code_config(request.form("sweb_upload_2"),2)&"|"&code_config(request.form("sweb_upload_3"),2)
 web_safety=replace(trim(request.form("web_safety_1")),"""","""&chr(34)&""")&"'"&"|"&trim(request.form("web_safety_2"))&"|"&trim(request.form("web_safety_3"))&"|"&trim(request.form("web_safety_4"))&"|"&trim(request.form("web_safety_5"))
  web_error=code_config(request.form("web_error_1"),3)&"|"&code_config(request.form("web_error_2"),3)&"|"&code_config(request.form("web_error_3"),3)&"|"&code_config(request.form("web_error_4"),3)&"|"&code_config(request.form("web_error_5"),3)&"|"&code_config(request.form("web_error_6"),3)
  web_news_art=trim(request.form("web_news_art"))
  web_down=code_num(trim(request.form("web_down_1")),95)&"|"&code_num(trim(request.form("web_down_2")),75)&"|"&_
	   code_config(request.form("web_down_3"),4)&"|"&code_config(request.form("web_down_4"),4)&"|"&code_config(request.form("web_down_5"),4)
  web_shop=trim(request.form("web_shop"))
  web_stamp=code_config(request.form("web_stamp_1"),3)&"|"&code_config(request.form("web_stamp_2"),3)&"|"&code_config(request.form("web_stamp_3"),3)
  if action="user" then
    user_power="":tn=int(trim(request.form("user_power_num")))
    for i=1 to tn
      t1=code_config(request.form("user_power_"&i),4)
      if len(t1)>1 then if instr(1,t1,":")>0 then user_power=user_power&t1&"|"
    next
    t1=code_config(request.form("user_power_new"),4)
    if len(t1)>1 then if instr(1,t1,":")>0 then user_power=user_power&t1
    if right(user_power,1)="|" then user_power=left(user_power,len(user_power)-1)
  else
    user_power=trim(request.form("user_power"))
  end if
  if action="grade" then
    user_grade="":tn=int(trim(request.form("user_grade_num")))
    for i=1 to tn
      t1=code_config(request.form("user_grade_"&i),4)
      if len(t1)>1 then if instr(1,t1,":")>0 then user_grade=user_grade&t1&"|"
    next
    t1=code_config(request.form("user_grade_new"),4)
    if len(t1)>1 then if instr(1,t1,":")>0 then user_grade=user_grade&t1
    if right(user_grade,1)="|" then user_grade=left(user_grade,len(user_grade)-1)
  else
    user_grade=trim(request.form("user_grade"))
  end if
  if action="forum" then
    forum_type="":tn=int(trim(request.form("forum_type_num")))
    for i=1 to tn
      t1=replace(trim(request.form("forum_type_"&i&"_1"))," ","")
      t2=code_config(request.form("forum_type_"&i&"_2"),2)
      if len(t1)>0 and len(t2)>0 then t1=replace(t1,",","."):forum_type=forum_type&t1&":"&t2&"|"
    next
    t1=replace(trim(request.form("forum_type_new_1"))," ","")
    t2=code_config(request.form("forum_type_new_2"),2)
    if len(t1)>0 and len(t2)>0 then t1=replace(t1,",","."):forum_type=forum_type&t1&":"&t2
    if right(forum_type,1)="|" then forum_type=left(forum_type,len(forum_type)-1)
  else
    forum_type=trim(request.form("forum_type"))
  end if
  
  call config_file()
  if action="color" then call config_css():call config_mouse_on_title()
  response.write "<script language=javascript>alert(""配置修改成功！"");</script>"
  call config_main()
end sub

sub config_bh(bht)
  dim vv,filetype,file_name1,file_name2,filetemp,fileos,filepath:filetype=""
  if bht="h" then
    file_name1="include/back_common.asp"
    file_name2="include/common.asp"
    vv="还原"
  else
    file_name1="include/common.asp"
    file_name2="include/back_common.asp"
    vv="备份"
  end if
  
  set fileos=CreateObject("Scripting.FileSystemObject")
  filepath=server.mappath(file_name1)
  set filetemp=fileos.OpenTextFile(filepath,1,true)
  filetype=filetemp.ReadAll
  filetemp.close
  filepath=server.mappath(file_name2)
  set filetemp=fileos.createtextfile(filepath,true)
  filetemp.writeline( filetype )
  filetemp.close
  set filetemp=nothing
  set fileos=nothing
  response.write "<script language=javascript>alert("""&vv&" 网站配置成功！"");</script>"
end sub

function code_num(strers,cnum)
  dim strer:strer=trim(strers)
  if not(isnumeric(strer)) then strer=cnum
  if int(strer)<1 then strer=cnum
  code_num=strer
end function

function code_config(strers,ct)
  dim strer:strer=trim(strers)
  if isnull(strer) or strer="" then code_config="":exit function
  select case ct
  case 1
    strer=replace(strer,"'","&#39;")
    strer=replace(strer,CHR(34),"&quot;")
  case 2
    strer=replace(strer,CHR(34),"")
    strer=replace(strer,"'","")
    strer=replace(strer,":","")
    strer=replace(strer,"|","")
  case 3
    strer=replace(strer,"'","&#39;")
    strer=replace(strer,CHR(34),"&quot;")
    strer=replace(strer,"|","")
  case 4
    strer=replace(strer,CHR(34),"")
    strer=replace(strer,"'","")
    strer=replace(strer,"|","")
  case else
    strer=replace(strer,"'","")
    strer=replace(strer,CHR(34),"")
  end select
  code_config=strer
end function
%>