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

📄 admin_setup.asp

📁 本息统基于中国网站技术人员最熟悉WindowsNT环境和Asp语言
💻 ASP
📖 第 1 页 / 共 3 页
字号:
<!--#include file="inc/inc_sys.asp"-->
<%
dim action
action=trim(request("action"))
if action="saveconfig" then
	call saveconfig()
else
	call showconfig()
end if

sub showconfig()
dim rs
set rs=oblog.execute("select * from oblog_setup")
%>
<html>
<head>
<title>站点配置</title>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
<link href="images/admin/Admin_STYLE.CSS" rel="stylesheet" type="text/css">
</head>
<body leftmargin="0" topmargin="0" marginwidth="0" marginheight="0" class="bgcolor" >
  <br>
  <table width="98%" border="0" align="center" cellpadding="2" cellspacing="1" Class="border">
    <tr class="topbg">       
    <td height="22" colspan=2 align=center><b>网 站 配 置</b></td>
    </tr>
    <tr > 
      <td width="70" height="30"><strong>管理导航:</strong></td>      
    <td height="30"><a href="admin_setup.asp#SiteInfo">网站信息配置</a> | <a href="admin_setup.asp#SiteOption">网站选项配置</a> 
      | <a href="#user">用户信息选项</a> | <a href="#show">日志显示选项</a> | <a href="#upload">上传选项</a></td>
    </tr>
</table>

<form method="POST" action="admin_setup.asp" id="form1" name="form1">
  <table width="98%" border="0" align="center" cellpadding="2" cellspacing="1" bgcolor="#FFFFFF" Class="border">
    <tr > 
      <td height="22" colspan="2" class="topbg"> <a name="SiteInfo"></a><strong>网站信息配置</strong></td>
    </tr>
    <tr class="tdbg" onmouseout="this.style.backgroundColor=''" onmouseover="this.style.backgroundColor='#BFDFFF'"> 
      <td width="348" height="25" >网站名称(最多50个字节):</td>
      <td width="409" height="25" > <input name="site_name" type="text" id="site_name" value="<%=oblog.filt_html(rs("site_name"))%>" size="40" maxlength="50"> 
      </td>
    </tr>
    <tr class="tdbg" onmouseout="this.style.backgroundColor=''" onmouseover="this.style.backgroundColor='#BFDFFF'"> 
      <td width="348" height="25" >网站标题(最多50个字节):</td>
      <td width="409" height="25" > <input name="site_title" type="text" id="site_title" value="<%=oblog.filt_html(rs("site_title"))%>" size="40" maxlength="50"> 
      </td>
    </tr>
    <tr class="tdbg" onmouseout="this.style.backgroundColor=''" onmouseover="this.style.backgroundColor='#BFDFFF'"> 
      <td width="348" height="25" >网站地址:<br>
        重要!请添写完整URL地址,如http://www.oblog.cn/blog/,<font color="#FF0000">不能省略最后的/号</font>,此设置将影响到rss和trackback的正常运行。</td>
      <td width="409" height="25" > <input name="site_path" type="text" id="site_path" value="<%=rs("site_path")%>" size="40" maxlength="255"> 
      </td>
    </tr>
    <tr class="tdbg" onmouseout="this.style.backgroundColor=''" onmouseover="this.style.backgroundColor='#BFDFFF'"> 
      <td width="348" height="25" > 二级域名根,请按照oblog.cn这样的形式书写,如有多个二级域名,请用&quot;|&quot;隔开,<font color="#FF0000">如关闭二级域名,请留空</font>。</td>
      <td width="409" height="25" > <input name="site_domain" type="text" id="site_domain" value="<%=rs("site_domain")%>" size="40" maxlength="255"> 
      </td>
    </tr>
    <tr class="tdbg" onmouseover="this.style.backgroundColor='#BFDFFF'" onmouseout="this.style.backgroundColor=''"> 
      <td height="25" >站点关键字(更容易被搜索引擎找到,&quot;,&quot;号隔开)</td>
      <td height="25" ><input name="site_keyword" type="text" id="site_keyword" value="<%=rs("site_keyword")%>" size="40" maxlength="100"></td>
    </tr>
    <tr class="tdbg" onmouseover="this.style.backgroundColor='#BFDFFF'" onmouseout="this.style.backgroundColor=''"> 
      <td height="25" >是否开启二级域名用户连接:</td>
      <td height="25" ><input type="radio" name="is_secondary_domain" value=1 <%if rs("is_secondary_domain")=1 then response.write "checked"%>>
        是 &nbsp;&nbsp;&nbsp;&nbsp; <input type="radio" name="is_secondary_domain" value=0 <%if rs("is_secondary_domain")=0  then response.write "checked"%>>
        否&nbsp;<font color="#FF0000">(如关闭或不支持二级域名,请选择否)</font></td>
    </tr>
    <tr class="tdbg" onmouseout="this.style.backgroundColor=''" onmouseover="this.style.backgroundColor='#BFDFFF'"> 
      <td height="25" >站点版权信息(显示在系统页面底部):</td>
      <td height="25" ><textarea name="site_copyright" cols="55" rows="5" id="site_copyright"><%=rs("site_copyright")%></textarea> 
        <br> <a href="javascript:chang_size(-3,'site_copyright')"><img src="images/minus.gif" unselectable="on" border='0'></a> 
        <a href="javascript:chang_size(3,'site_copyright')"><img src="images/plus.gif" unselectable="on" border='0'></a> 
      </td>
    </tr>
    <tr class="tdbg" onmouseout="this.style.backgroundColor=''" onmouseover="this.style.backgroundColor='#BFDFFF'"> 
      <td width="348" height="25" >站长信箱:</td>
      <td width="409" height="25" > <input name="master_email" type="text" id="master_email" value="<%=rs("master_email")%>" size="40" maxlength="100"> 
      </td>
    </tr>
    <tr> 
      <td height="25" colspan="2" class="topbg"><a name="SiteOption"></a><b>网站选项配置</b></td>
    </tr>
    <tr class="tdbg" onmouseout="this.style.backgroundColor=''" onmouseover="this.style.backgroundColor='#BFDFFF'"> 
      <td width="348" height="25" >是否开启日志审核(日志审核后才能显示):</td>
      <td height="25" > <input type="radio" name="is_log_check" value=1 <%if rs("is_log_check")=1 then response.write "checked"%>>
        是 &nbsp;&nbsp;&nbsp;&nbsp; <input type="radio" name="is_log_check" value=0 <%if rs("is_log_check")=0  then response.write "checked"%>>
        否</td>
    </tr>
    <tr class="tdbg" onmouseover="this.style.backgroundColor='#BFDFFF'" onmouseout="this.style.backgroundColor=''"> 
      <td height="25" >日志文件名默认生成格式:</td>
      <td height="25" > <input type="radio" name="df_filename" value=0 <%if rs("df_filename")=0 then response.write "checked"%>>
        日志ID自动编号 &nbsp;&nbsp;&nbsp;&nbsp; 
        <input type="radio" name="df_filename" value=1 <%if rs("df_filename")=1  then response.write "checked"%>>
        日志发表时间 </td>
    </tr>
    <tr class="tdbg" onmouseover="this.style.backgroundColor='#BFDFFF'" onmouseout="this.style.backgroundColor=''"> 
      <td height="25" >发表日志,系统日志分类是否为必须:</td>
      <td height="25" ><input type="radio" name="is_need_classid" value=1 <%if rs("is_need_classid")=1 then response.write "checked"%>>
        是 &nbsp;&nbsp;&nbsp;&nbsp; <input type="radio" name="is_need_classid" value=0 <%if rs("is_need_classid")=0 then response.write "checked"%>>
        否</td>
    </tr>
    <tr class="tdbg" onmouseover="this.style.backgroundColor='#BFDFFF'" onmouseout="this.style.backgroundColor=''"> 
      <td height="25" >是否允许日志全文搜索(建议关闭):</td>
      <td height="25" > <input type="radio" name="is_searchlogtext" value=1 <%if rs("is_searchlogtext")=1 then response.write "checked"%>>
        是 &nbsp;&nbsp;&nbsp;&nbsp; <input type="radio" name="is_searchlogtext" value=0 <%if rs("is_searchlogtext")=0 then response.write "checked"%>>
        否</td>
    </tr>
    <tr class="tdbg" onmouseover="this.style.backgroundColor='#BFDFFF'" onmouseout="this.style.backgroundColor=''"> 
      <td height="25" >每天允许用户更新全站多少次:</td>
      <td height="25" ><input name="oneday_update" type="text" id="oneday_update" value="<%=rs("oneday_update")%>" size="10" maxlength="10">
        次(设置为0则不进行限制)</td>
    </tr>
    <tr class="tdbg" onmouseout="this.style.backgroundColor=''" onmouseover="this.style.backgroundColor='#BFDFFF'"> 
      <td height="25" >是否允许游客发表评论及留言:</td>
      <td height="25" > <input type="radio" name="is_enguest_comment" value=1 <%if rs("is_enguest_comment")=1 then response.write "checked"%>>
        是 &nbsp;&nbsp;&nbsp;&nbsp; <input type="radio" name="is_enguest_comment" value=0 <%if rs("is_enguest_comment")=0 then response.write "checked"%>>
        否</td>
    </tr>
    <tr class="tdbg" onmouseover="this.style.backgroundColor='#BFDFFF'" onmouseout="this.style.backgroundColor=''"> 
      <td height="25" >发表日志时,当敏感字出现多少种,日志自动转为待审核:</td>
      <td height="25" ><input name="max_badstr_num" type="text" id="max_badstr_num" value="<%=rs("max_badstr_num")%>" size="10" maxlength="10">
        次</td>
    </tr>
    <tr class="tdbg" onmouseout="this.style.backgroundColor=''" onmouseover="this.style.backgroundColor='#BFDFFF'"> 
      <td height="25" >用户注册是否需要验证码:</td>
      <td height="25" ><input type="radio" name="is_code_reg" value=1 <%if rs("is_code_reg")=1 then response.write "checked"%>>
        是 &nbsp;&nbsp;&nbsp;&nbsp; <input type="radio" name="is_code_reg" value=0 <%if rs("is_code_reg")=0 then response.write "checked"%>>
        否</td>
    </tr>
    <tr class="tdbg" onmouseout="this.style.backgroundColor=''" onmouseover="this.style.backgroundColor='#BFDFFF'"> 
      <td height="25" >用户登陆是否需要验证码:</td>
      <td height="25" ><input type="radio" name="is_code_login" value=1 <%if rs("is_code_login")=1 then response.write "checked"%>>
        是 &nbsp;&nbsp;&nbsp;&nbsp; <input type="radio" name="is_code_login" value=0 <%if rs("is_code_login")=0 then response.write "checked"%>>
        否</td>
    </tr>
    <tr class="tdbg" onmouseout="this.style.backgroundColor=''" onmouseover="this.style.backgroundColor='#BFDFFF'"> 
      <td height="25" >用户发表评论,留言是否需要验证码:</td>
      <td height="25" ><input type="radio" name="is_code_comment" value=1 <%if rs("is_code_comment")=1 then response.write "checked"%>>
        是 &nbsp;&nbsp;&nbsp;&nbsp; <input type="radio" name="is_code_comment" value=0 <%if rs("is_code_comment")=0 then response.write "checked"%>>
        否</td>
    </tr>
    <!--- <tr class="tdbg" onmouseout="this.style.backgroundColor=''" onmouseover="this.style.backgroundColor='#BFDFFF'"> 
      <td height="25" >用户发表短信息是否需要验证码:</td>
      <td height="25" ><input type="radio" name="is_code_pm" value=1 <%'if rs("is_code_pm")=1 then response.write "checked"%>>
        是 &nbsp;&nbsp;&nbsp;&nbsp; <input type="radio" name="is_code_pm" value=0 <%'if rs("is_code_pm")=0 then response.write "checked"%>>
        否</td>
		
    </tr>-->
    <tr class="tdbg" onmouseout="this.style.backgroundColor=''" onmouseover="this.style.backgroundColor='#BFDFFF'"> 
      <td height="25" >用户发表日志是否需要验证码:</td>
      <td height="25" ><input type="radio" name="is_code_addblog" value=1 <%if rs("is_code_addblog")=1 then response.write "checked"%>>
        是 &nbsp;&nbsp;&nbsp;&nbsp; <input type="radio" name="is_code_addblog" value=0 <%if rs("is_code_addblog")=0 then response.write "checked"%>>
        否</td>
    </tr>
    <tr class="tdbg" onmouseover="this.style.backgroundColor='#BFDFFF'" onmouseout="this.style.backgroundColor=''"> 
      <td height="25" >用户页面统计防刷新时间:</td>
      <td height="25" ><input name="dis_refutime" type="text" id="dis_refutime" value="<%=rs("dis_refutime")%>" size="10" maxlength="10">
        秒 </td>
    </tr>
    <tr class="tdbg" onmouseover="this.style.backgroundColor='#BFDFFF'" onmouseout="this.style.backgroundColor=''"> 
      <td height="25" >发表日志,留言,评论的时间间隔:</td>
      <td height="25" ><input name="add_pitchtime" type="text" id="add_pitchtime" value="<%=rs("add_pitchtime")%>" size="10" maxlength="10">
        秒 </td>
    </tr>
    <tr class="tdbg" onmouseout="this.style.backgroundColor=''" onmouseover="this.style.backgroundColor='#BFDFFF'"> 
      <td height="25" >首页静态文件的更新时间(建议设置300秒以上,否则将极耗费服务器资源):</td>
      <td height="25" ><input name="time_index_update" type="text" id="time_index_update" value="<%=rs("time_index_update")%>" size="10" maxlength="10">
        秒 </td>
    </tr>
    <tr class="tdbg" onmouseout="this.style.backgroundColor=''" onmouseover="this.style.backgroundColor='#BFDFFF'"> 
      <td height="25" >用户最多短信息条数:</td>
      <td height="25" ><input name="pm_num" type="text" id="pm_num" value="<%=rs("pm_num")%>" size="10" maxlength="10">
        条 </td>
    </tr>
    <tr class="tdbg" onmouseover="this.style.backgroundColor='#BFDFFF'" onmouseout="this.style.backgroundColor=''"> 
      <td height="25" >单篇日志允许最多字数:</td>
      <td height="25" ><input name="max_log_word" type="text" id="max_log_word" value="<%=rs("max_log_word")%>" size="10" maxlength="10">
        字(英文字符) </td>
    </tr>
    <tr class="tdbg" onmouseover="this.style.backgroundColor='#BFDFFF'" onmouseout="this.style.backgroundColor=''"> 
      <td height="25" >回复及留言允许最多字数:</td>
      <td height="25" ><input name="max_comment_word" type="text" id="max_comment_word" value="<%=rs("max_comment_word")%>" size="10" maxlength="10">
        字(英文字符) </td>
    </tr>
    <tr class="tdbg" onmouseover="this.style.backgroundColor='#BFDFFF'" onmouseout="this.style.backgroundColor=''"> 
      <td height="25" >转向用户首页是否转到index文件:</td>
      <td height="25" ><input type="radio" name="index_to_file" value=1 <%if rs("index_to_file")=1 then response.write "checked"%>>
        是 &nbsp;&nbsp;&nbsp;&nbsp; <input type="radio" name="index_to_file" value=0 <%if rs("index_to_file")=0  then response.write "checked"%>>
        否</td>
    </tr>
    <tr class="tdbg" onmouseover="this.style.backgroundColor='#BFDFFF'" onmouseout="this.style.backgroundColor=''"> 
      <td height="25" >允许用户修改二级域名:</td>
      <td height="25" ><input type="radio" name="enchangdomain" value=1 <%if rs("enchangdomain")=1 then response.write "checked"%>>
        是 &nbsp;&nbsp;&nbsp;&nbsp; <input type="radio" name="enchangdomain" value=0 <%if rs("enchangdomain")=0  then response.write "checked"%>>
        否</td>
    </tr>
    <tr> 
      <td height="25" colspan="2" class="topbg"><a name="show"></a><b>日志显示选项</b></td>
    </tr>
    <tr class="tdbg" onmouseover="this.style.backgroundColor='#BFDFFF'" onmouseout="this.style.backgroundColor=''"> 
      <td height="25" >系统日志列表每页显示多少条日志标题</td>
      <td height="25" ><input name="show_log_num" type="text" id="show_log_num" value="<%=rs("show_log_num")%>" size="10" maxlength="10"> 
      </td>
    </tr>
    <tr class="tdbg" onmouseover="this.style.backgroundColor='#BFDFFF'" onmouseout="this.style.backgroundColor=''"> 
      <td height="25" ><p>系统日志列表调用前多少篇日志</p></td>
      <td height="25" > <input name="get_log_num" type="text" id="get_log_num" value="<%=rs("get_log_num")%>" size="10" maxlength="10"></td>
    <tr class="tdbg" onmouseover="this.style.backgroundColor='#BFDFFF'" onmouseout="this.style.backgroundColor=''"> 
      <td height="25" >相片列表每页显示多少个相片</td>
      <td height="25" ><input name="show_photonum" type="text" id="show_photonum" value="<%=rs("show_photonum")%>" size="10" maxlength="10"> 
      </td>
    </tr>
    <tr class="tdbg" onmouseover="this.style.backgroundColor='#BFDFFF'" onmouseout="this.style.backgroundColor=''"> 
      <td height="25" ><p>相片列表调用前多少个相片</p></td>
      <td height="25" > <input name="get_photonum" type="text" id="get_photonum" value="<%=rs("get_photonum")%>" size="10" maxlength="10"></td>
    <tr class="tdbg" onmouseover="this.style.backgroundColor='#BFDFFF'" onmouseout="this.style.backgroundColor=''"> 
      <td height="25" >评论是否顺序排列:</td>
      <td height="25" ><input type="radio" name="show_comment_asc" value=1 <%if rs("show_comment_asc")=1 then response.write "checked"%>>
        是 &nbsp;&nbsp;&nbsp;&nbsp; <input type="radio" name="show_comment_asc" value=0 <%if rs("show_comment_asc")=0 then response.write "checked"%>>
        否</td>
    </tr>
    <tr class="tdbg" onmouseover="this.style.backgroundColor='#BFDFFF'" onmouseout="this.style.backgroundColor=''"> 
      <td height="25" >页面数据载入时显示字符</td>
      <td height="25" ><input name="loadingstr" type="text" id="loadingstr" value="<%=rs("loadingstr")%>" size="30" maxlength="50"></td>
    </tr>
    <tr class="tdbg" onmouseout="this.style.backgroundColor=''" onmouseover="this.style.backgroundColor='#BFDFFF'"> 
      <td height="25" >博客列表每页显示条数</td>
      <td height="25" ><input name="show_listuser_num" type="text" id="show_listuser_num" value="<%=rs("show_listuser_num")%>" size="10" maxlength="10"></td>

⌨️ 快捷键说明

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