📄 system.asp
字号:
<!--#include file=conn.asp --><!--#include file=../include/config.asp --><!--#include file="../inc/config.asp"--><!--#include file="char.inc"--><!--#include file="chkuser.asp" -->
<%
IF request.cookies("KEY")<>"super" THEN
response.redirect "index_face.asp"
response.end
else
usernamecookie=CheckStr(request.cookies("UserName"))
passwdcookie=replace(trim(Request.cookies("passwd")),"'","''")
KEYcookie=replace(trim(request.cookies("KEY")),"'","''")
if usernamecookie="" or passwdcookie="" then
response.redirect "login.asp"
response.end
else
'判断用户的合法性
set rs=server.createobject("adodb.recordset")
sql="select * from admin where username='"&usernamecookie&"'"
rs.open sql,conn,1,1
if rs.eof and rs.bof then
response.redirect "login.asp"
response.end
end if
IF passwdcookie<>rs("passwd") THEN
response.redirect "login.asp"
response.end
END IF
'下面判断用户级别实际在有用户级别是都应该判断
if KEYcookie<>rs("OSKEY") then
response.redirect "index_face.asp"
response.end
end if
rs.close
set rs=nothing
END IF
END IF
response.buffer=true
Response.Expires=0
Set rs9 = Server.CreateObject("ADODB.Recordset")
sql9 ="SELECT * From system Order By id DESC"
RS9.open sql9,Conn,1,1
%>
<%if rs9("system")="1" or request.cookies("purview")="99999" then
%>
<html>
<head>
<meta http-equiv="Content-Language" content="zh-cn">
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
<LINK href=site.css rel=stylesheet>
<title><%=copyright%><%=version%> <%=ver%> - 系统设置</title>
</head>
<SCRIPT language="JavaScript" type="text/javascript">
// Begin color
function color(color)
{
url = 'color.htm';
window.open(url,color,"width=430,height=440,status=no,toolbar=no,menubar=no,resizable=no");
}
// End color-->
</script>
<body topmargin="0"><!--#include file=top.asp-->
<form method="post" action="systemsave.asp" name="system">
<div align="center">
<center>
<table width="750" border="1" cellspacing="0" cellpadding="0" style="border-collapse: collapse" bordercolor="<%=rs9("border")%>">
<tr>
<td colspan="3" height="24" width="100%" bgcolor=<%=rs9("m_top")%>>
<div align="center">网站属性设置</div></td>
</tr>
<tr bgcolor="#FFFFFF">
<td width="157" align="right" height="24"><font color=red>*</font>网站名称:</td>
<td height="24" colspan="2" align="left" width="453"> <input type="text" name="name" size="50" value="<%=rs9("name")%>" style="font-family: 宋体; font-size: 9pt">
</td>
</tr>
<tr bgcolor="#FFFFFF">
<td width="157" align="right" height="24"><font color=red>*</font>网站地址:</td>
<td height="24" colspan="2" align="left" width="593"> http://
<input type="text" name="xpurl" size="40" value="<%=rs9("xpurl")%>" style="font-family: 宋体; font-size: 9pt">
/ (指系统所在地址,如http://你的域名/news)</td>
</tr>
<tr bgcolor="#FFFFFF">
<td width="157" align="right" height="24"><font color=red>*</font>网管信箱:</td>
<td height="24" colspan="2" align="left" width="453"> <input type="text" name="email" size="50" value="<%=rs9("email")%>" style="font-family: 宋体; font-size: 9pt">
</td>
</tr>
<tr bgcolor="#FFFFFF">
<td width="157" align="right" height="24">版权说明:</td>
<td height="24" colspan="2" align="left" width="453"> <font color="#000000"><b>[<%=rs9("Copyright")%>]</b></font></td>
</tr>
<tr bgcolor="#FFFFFF">
<td width="157" align="right" height="24">版本信息:</td>
<td height="24" colspan="2" align="left" width="453"> <font color="#000000"><b>
[<%=rs9("version")%> <%=rs9("ver")%>] </b></font></td>
</tr>
<tr bgcolor="#FFFFFF">
<td height="18" align="right" bgcolor="#FFFFFF">TOP菜单一、二级选择:</td>
<td colspan="2" align="left"><select name="B_BG" size="1" id="gd1" style="font-family: 宋体; font-size: 9pt">
<option <%if rs9("B_BG")<>"0" then%>selected<%end if%> value="1">一级</option>
<option <%if rs9("B_BG")="0" then%>selected<%end if%> value="0">二级</option>
</select></td>
</tr>
<tr bgcolor="#FFFFFF">
<td height="18" align="right" bgcolor="#FFFFFF">LOGO图标:</td>
<td colspan="2" align="left"><input name="logo" type="text" id="logo" style="font-family: 宋体; font-size: 9pt" value="<%=rs9("logo")%>" size="50"></td>
</tr>
<tr bgcolor="#FFFFFF">
<td height="18" align="right" bgcolor="#FFFFFF">LOGO图标URL:</td>
<td colspan="2" align="left"><input name="logourl" type="text" id="logourl" style="font-family: 宋体; font-size: 9pt" value="<%=rs9("logourl")%>" size="50"></td>
</tr>
<tr bgcolor="#FFFFFF">
<td align="right" bgcolor="#FFFFFF">LOGO类型:</td>
<td colspan="2" align="left"><select name="gd1" size="1" id="gd1" style="font-family: 宋体; font-size: 9pt">
<option <%if rs9("gd1")<>"0" then%>selected<%end if%> value="1">photo</option>
<option <%if rs9("gd1")="0" then%>selected<%end if%> value="0">flash</option>
</select></td>
</tr>
<tr bgcolor="#FFFFFF">
<td height="18" align="right" bgcolor="#FFFFFF">Banner条:</td>
<td colspan="2" align="left"><input name="banner" type="text" id="banner" style="font-family: 宋体; font-size: 9pt" value="<%=rs9("banner")%>" size="50"></td>
</tr>
<tr bgcolor="#FFFFFF">
<td height="18" align="right" bgcolor="#FFFFFF">Banner条URL:</td>
<td colspan="2" align="left"><input name="bannerurl" type="text" id="bannerurl" style="font-family: 宋体; font-size: 9pt" value="<%=rs9("bannerurl")%>" size="50"></td>
</tr>
<tr bgcolor="#FFFFFF">
<td align="right" bgcolor="#FFFFFF">Banner条类型:</td>
<td colspan="2" align="left"><select name="gd2" size="1" id="gd2" style="font-family: 宋体; font-size: 9pt">
<option <%if rs9("gd1")<>"0" then%>selected<%end if%> value="1">photo</option>
<option <%if rs9("gd1")="0" then%>selected<%end if%> value="0">flash</option>
</select></td>
</tr>
<tr bgcolor="#FFFFFF">
<td width="157" align="right" height="24">上传文件类型:</td>
<td height="24" colspan="2" align="left" width="453"> <input type="text" name="UpFileType" size="50" value="<%=UpFileType%>" style="font-family: 宋体; font-size: 9pt">
<font color="#FF0000">用小写“|”分开</font></td>
</tr>
<tr bgcolor="#FFFFFF">
<td width="157" align="right" height="24">上传文件大小:</td>
<td height="24" colspan="2" align="left" width="453"> <input type="text" name="MaxFileSize" size="50" value="<%=MaxFileSize%>" style="font-family: 宋体; font-size: 9pt">
<font color="#FF0000">K</font></td>
</tr>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -