<%=ForumName%>--管理页面
<%
if not master then
Errmsg=Errmsg+" "+"
本页面为管理员专用,请登陆后进入。"
call Error()
else
call main()
end if
sub main()
%>
align=center>
欢迎<%=session("mastername")%>进入管理页面
>
<%call leftmenu()%>
<%
if request("action")="save" then
call saveconst()
else
call consted()
end if
%>
<%
end sub
sub consted()
%>
<%
end sub
sub saveconst()
set rs = server.CreateObject ("adodb.recordset")
sql = "select * from config"
rs.open sql,conn,1,3
if Request("ForumName")="" then
errmsg = errmsg + " " + "
请填论坛名称!
"
Founderr=true
else
rs("ForumName") = Request("ForumName")
end if
if Request("ForumURL")="" then
errmsg = errmsg + " " + "
请填论坛连接地址!
"
Founderr=true
else
rs("ForumURL") = Request("ForumURL")
end if
if Request("CompanyName")="" then
errmsg = errmsg + " " + "
请填主页名称名称!
"
Founderr=true
else
rs("CompanyName") =Request("CompanyName")
end if
if Request("HostUrl")="" then
errmsg = errmsg + " " + "
请填论坛名称名称!
"
Founderr=true
else
rs("HostUrl") = Request("HostUrl")
end if
if Request("SMTPServer")="" then
errmsg = errmsg + " " + "
请填写邮件服务器地址!
"
Founderr=true
else
rs("SMTPServer") = request("SMTPServer")
end if
if Request("SystemEmail")="" then
errmsg = errmsg + " " + "
请填写邮件服务器地址!
"
Founderr=true
else
rs("SystemEmail") = Request("SystemEmail")
end if
if Request("TimeAdjust")="" then
rs("TimeAdjust") = 0
else
rs("TimeAdjust") = Request("TimeAdjust")
end if
if Request("ScriptTimeOut")="" then
rs("ScriptTimeOut") = 300
else
rs("ScriptTimeOut") = Request("ScriptTimeOut")
end if
if Request("logo")="" then
errmsg = errmsg + " " + "
请填写论坛logo地址!
"
Founderr=true
else
rs("Logo") = Request("Logo")
end if
if Request("Picurl")="" then
errmsg = errmsg + " " + "
请填写论坛图片目录!
"
Founderr=true
else
rs("Picurl") = Request("Picurl")
end if
if Request("Faceurl")="" then
errmsg = errmsg + " " + "