admin_config_features.asp
来自「一个不错的ASP论坛源码」· ASP 代码 · 共 262 行 · 第 1/2 页
ASP
262 行
<%
'########## Snitz Forums 2000 Version 3.1 SR4 ####################
'# #
'# 汉化修改: 资源搜罗站 #
'# 电子邮件: cgier@21cn.com #
'# 主页地址: http://www.sdsea.com #
'# http://www.99ss.net #
'# http://www.cdown.net #
'# http://www.wzdown.com #
'# http://www.13888.net #
'# 论坛地址:http://ubb.yesky.net #
'# 最后修改日期: 2001/03/12 中文版本:Version 3.1 SR4 #
'#################################################################
'# 原始来源 #
'# Snitz Forums 2000 Version 3.1 SR4 #
'# Copyright 2000 http://forum.snitz.com - All Rights Reserved #
'#################################################################
'#【版权声明】 #
'# #
'# 本软体为共享软体(shareware)提供个人网站免费使用,请勿非法修改,#
'# 转载,散播,或用于其他图利行为,并请勿删除版权声明。 #
'# 如果您的网站正式起用了这个脚本,请您通知我们,以便我们能够知晓#
'# 如果可能,请在您的网站做上我们的链接,希望能给予合作。谢谢! #
'#################################################################
'# 请您尊重我们的劳动和版权,不要删除以上的版权声明部分,谢谢合作#
'# 如有任何问题请到我们的论坛告诉我们 #
'#################################################################
%>
<!--#INCLUDE FILE="config.asp" -->
<% If Session(strCookieURL & "Approval") = "15916941253" Then %>
<!--#INCLUDE file="inc_functions.asp" -->
<!--#INCLUDE file="inc_top.asp" -->
<table border="0" width="100%">
<tr>
<td width="33%" align="left" nowrap><font face="<% =strDefaultFontFace %>" size="<% =strDefaultFontSize %>">
<img src="<%=strImageURL %>icon_folder_open.gif" height=15 width=15 border="0"> <a href="default.asp">返回论坛首页</a> <img src="<%=strImageURL %>icon_folder_open.gif" height=15 width=15 border="0"> <a href="admin_home.asp">论坛管理中心</a> <img src="<%=strImageURL %>icon_folder_open_topic.gif" height=15 width=15 border="0"> 论坛设置<br>
</font></td>
</tr>
</table>
<%
if Request.Form("Method_Type") = "Write_Configuration" then
Err_Msg = ""
if Request.Form("strIMGInPosts") = "1" and Request.Form("strAllowForumCode") = "0" then
Err_Msg = Err_Msg & "<li>如果允许贴图就必须开启本版专用代码</li>"
end if
if (Request.Form("strHotTopic") = "1" and strHotTopic = "1") or (Request.Form("strHotTopic") = "1" and strHotTopic = "0") then
if Request.Form("intHotTopicNum") = "" then
Err_Msg = Err_Msg & "<li>你必须设定热门主题的文章数</li>"
end if
if left(Request.Form("intHotTopicNum"), 1) = "-" then
Err_Msg = Err_Msg & "<li>你必须设定确切的热门主题文章数</li>"
end if
if left(Request.Form("intHotTopicNum"), 1) = "+" then
Err_Msg = Err_Msg & "<li>只能输入的数字不要包含 <b>+</b></li>"
end if
end if
if Err_Msg = "" then
'## Forum_SQL
strSql = "UPDATE " & strTablePrefix & "CONFIG "
strSql = strSql & " SET C_STRMOVETOPICMODE = " & Request.Form("strMoveTopicMode") & ""
strSql = strSql & ", C_STRIPLOGGING = " & Request.Form("strIPLogging") & ""
strSql = strSql & ", C_STRPRIVATEFORUMS = " & Request.Form("strPrivateForums") & ""
strSql = strSql & ", C_STRSHOWMODERATORS = " & Request.Form("strShowModerators") & ""
strSql = strSql & ", C_STRALLOWFORUMCODE = " & Request.Form("strAllowForumCode") & ""
strSql = strSql & ", C_STRIMGINPOSTS = " & Request.Form("strIMGInPosts") & ""
strSql = strSql & ", C_STRALLOWHTML = " & Request.Form("strAllowHTML") & ""
strSql = strSql & ", C_STRHOTTOPIC = " & Request.Form("strHotTopic") & ""
if (Request.Form("strHotTopic") = "1" and strHotTopic = "1") or (Request.Form("strHotTopic") = "1" and strHotTopic = "0") then
strSql = strSql & ", C_INTHOTTOPICNUM = " & Request.Form("intHotTopicNum") & ""
end if
strSql = strSql & ", C_STRiconS = " & Request.Form("stricons") & ""
strSql = strSql & ", C_STRSECUREADMIN = " & Request.Form("strSecureAdmin") & ""
strSql = strSql & ", C_STRNOCOOKIES = " & Request.Form("strNoCookies") & ""
strSql = strSql & ", C_STREDITEDBYDATE = " & Request.Form("strEditedByDate") & ""
strSql = strSql & ", C_STRSHOWSTATISTICS = " & Request.Form("strShowStatistics") & ""
strSql = strSql & ", C_STRSHOWPAGING = " & Request.Form("strShowPaging") & ""
strSql = strSql & ", C_STRSHOWTOPICNAV = " & Request.Form("strShowTopicNav") & ""
strSql = strSql & ", C_STRPAGESIZE = " & Request.Form("strPageSize") & ""
strSql = strSql & ", C_STRPAGENUMBERSIZE = " & Request.Form("strPageNumberSize") & ""
strSql = strSql & " WHERE CONFIG_ID = " & 1
my_Conn.Execute (strSql)
Application(strCookieURL & "ConfigLoaded") = ""
%>
<p align="center"><font face="<% =strDefaultFontFace %>" size="<% =strHeaderFontSize %>">论坛设置完毕</font></p>
<meta http-equiv="Refresh" content="0; URL=admin_home.asp">
<p align="center"><font face="<% =strDefaultFontFace %>" size="<% =strHeaderFontSize %>">修改完成!</font></p>
<p align="center"><font face="<% =strDefaultFontFace %>" size="<% =strDefaultFontSize %>"><a href="admin_home.asp">回到管理中心</font></a></p>
<% else %>
<p align=center><font face="<% =strDefaultFontFace %>" size="<% =strHeaderFontSize %>">你输入的资料有问题或没有填写完整</font></p>
<table align=center border=0>
<tr>
<td><font face="<% =strDefaultFontFace %>" size="<% =strDefaultFontSize %>">
<ul>
<% =Err_Msg %>
</ul>
</font></td>
</tr>
</table>
<p align=center><font face="<% =strDefaultFontFace %>" size=<% =strDefaultFontSize %>><a href="JavaScript:history.go(-1)">请返回重新输入</a></font></p>
<% end if %>
<% else %>
<form action="admin_config_features.asp" method="post" id="Form1" name="Form1">
<input type="hidden" name="Method_Type" value="Write_Configuration">
<table border="0" cellspacing="1" cellpadding="3" align=center bgcolor="<% =strPopUpBorderColor %>">
<tr valign="top">
<td bgcolor="<% =strHeadCellColor %>" colspan="2"><font face="<% =strDefaultFontFace %>" size="<% =strDefaultFontSize %>" color="<% =strHeadFontColor %>">论坛设置</font></td>
</tr>
<tr valign="top">
<td bgColor="<% =strPopUpTableColor %>" align="right"><font face="<% =strDefaultFontFace %>" size="<% =strDefaultFontSize %>">限制版主移动该版主题:</font></td>
<td bgColor="<% =strPopUpTableColor %>">
开启:<input type="radio" class="radio" name="strMoveTopicMode" value="1"<% if strMoveTopicMode <> "0" then Response.Write(" checked") %>>
关闭:<input type="radio" class="radio" name="strMoveTopicMode" value="0"<% if strMoveTopicMode = "0" then Response.Write(" checked") %>>
<a href="JavaScript:openWindow3('pop_config_help.asp#MoveTopicMode')"><img src="<%=strImageURL %>icon_smile_question.gif" border="0"></a>
</td>
</tr>
<tr valign="top">
<td bgColor="<% =strPopUpTableColor %>" align="right"><font face="<% =strDefaultFontFace %>" size="<% =strDefaultFontSize %>">记录IP:</font></td>
<td bgColor="<% =strPopUpTableColor %>">
开启:<input type="radio" class="radio" name="strIPLogging" value="1"<% if strIPLogging <> "0" then Response.Write(" checked") %>>
关闭:<input type="radio" class="radio" name="strIPLogging" value="0"<% if strIPLogging = "0" then Response.Write(" checked") %>>
<a href="JavaScript:openWindow3('pop_config_help.asp#IPLogging')"><img src="<%=strImageURL %>icon_smile_question.gif" border="0"></a>
</td>
</tr>
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?