📄 config.asp
字号:
<%
if session("admin_name")="" then
response.write "<script LANGUAGE='javascript'>alert('对不起,登陆超时!');</script>"
response.end
end if
%>
<!--#include file="conn.asp"-->
<%
action=request("action")
if action="ip" then
ip1=request("ip1")
ip2=request("ip2")
sql="update config set webconfig_allowip1='"&ip1&"',webconfig_allowip2='"&ip2&"'"
conn.execute(sql)
message="操作成功!"
end if
if action="user" then
ud=request("userday")
sql="update config set webconfig_userday='"&ud&"'"
conn.execute(sql)
message="操作成功!"
end if
%>
<html>
<head>
<link href=../css.css rel=STYLESHEET type=text/css>
<base target="_self">
<meta http-equiv="Content-Type" content="text/html; charset=gb2312"></head>
<body>
<div align="center">
<table width="504" border="0" cellpadding="0" cellspacing="0" >
<!--DWLayoutTable-->
<tr>
<td width="56" height="66"> </td>
<td width="386"><font color="#FF0000"><%=message%></font></td>
<td width="62"> </td>
</tr>
<tr>
<td height="200"> </td>
<td valign="top"><table width="100%" border="0" cellpadding="1" cellspacing="1" bgcolor="#66CCFF">
<!--DWLayoutTable-->
<tr><%
set rs=server.createobject("adodb.recordset")
sql="select * from config"
rs.open sql,conn,1,1
ip1=rs("webconfig_allowip1")
ip2=rs("webconfig_allowip2")
userday=rs("webconfig_userday")
rs.close
%>
<td width="382" height="24" valign="middle" bgcolor="#00FFFF"> <div align="center">IP段限制</div></td>
</tr>
<tr>
<td height="180" valign="top" bgcolor="#FFFFFF">
<form method="post" action="config.asp?action=ip">
<table width="100%" height="162" border="0">
<tr>
<td width="16%"> </td>
<td width="16%"> </td>
<td width="68%"> </td>
</tr>
<tr>
<td height="28"> </td>
<td>IP1:</td>
<td><input type="text" name="ip1" value=<%=ip1%>>
</td>
</tr>
<tr>
<td> </td>
<td>IP2:</td>
<td><input type="text" name="ip2" value=<%=ip2%>></td>
</tr>
<tr>
<td height="35"> </td>
<td> </td>
<td><input type="submit" name="add" value="更新"></td>
</tr>
<tr>
<td height="33"> </td>
<td colspan="2">*<a href="help.asp">操作说明见管理帮助</a></td>
</tr>
</table>
</form>
</td>
</tr>
</table></td>
<td> </td>
</tr>
<tr>
<td height="120"> </td>
<td><table width="100%" border="0" cellpadding="1" cellspacing="1" bgcolor="#66CCFF">
<!--DWLayoutTable-->
<tr>
<td width="382" height="24" valign="middle" bgcolor="#00FFFF"> <div align="center">其他参数</div></td>
</tr>
<tr>
<td height="177" valign="top" bgcolor="#FFFFFF"><form method="post" action="config.asp?action=user">
<table width="100%" height="178" border="0">
<tr>
<td width="16%"> </td>
<td width="23%"> </td>
<td colspan="2"> </td>
</tr>
<tr>
<td> </td>
<td>用户有效期:</td>
<td width="27%"><input name="userday" type="text" size="10" value=<%=userday%>></td>
<td width="34%"><input type="submit" name="Submit" value="更新"></td>
</tr>
<tr>
<td> </td>
<td> </td>
<td colspan="2"> </td>
</tr>
<tr>
<td> </td>
<td> </td>
<td colspan="2"> </td>
</tr>
<tr>
<td> </td>
<td> </td>
<td colspan="2"> </td>
</tr>
<tr>
<td> </td>
<td> </td>
<td colspan="2"> </td>
</tr>
</table>
</form></td>
</tr>
</table></td>
<td> </td>
</tr>
</table>
</div>
</body>
</html>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -