📄 de.asp
字号:
<!--#include file="include/function.asp"-->
<!--#include file="adminconn.asp"-->
<%
if session("super")<>"super" then
set rs=server.CreateObject("adodb.recordset")
pwd=request.form("pws")
pws=jiami(trim(pwd))
user=request.form("user")
user=jiami(trim(user))
sql="select * from Admin where admin='"&admin&"'"
rs.open sql,conn,1,1
IF not rs.eof THEN
if pws=trim(rs("password")) and user=trim(rs("admin")) then
session("super")="super"
response.write "<script language=JavaScript>" & chr(13) & "alert('登陆成功!');window.location.href='de.asp';</script>"
response.end
end if
end if
end if
%>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
<title>后台首页</title>
</head>
<body>
<form name="form1" method="post" action="de.asp">
<table width="524" border="0" align="center" cellpadding="0" cellspacing="0">
<% if session("super")<>"super" then %>
<tr>
<td width="524"><table width="300" border="0" align="center" cellpadding="0" cellspacing="0" style="font-size:12px">
<tr>
<th height="20" colspan="2">尚未登录,请先登录!</th>
</tr>
<tr>
<td width="68" height="20">用户名:</td>
<td width="232" height="20"><input type="text" name="user"></td>
</tr>
<tr>
<td height="20">密码:</td>
<td><input type="password" name="pws"></td>
</tr>
<tr>
<td colspan="2" align="center"><input type="submit" name="Submit" value="提交"></td>
</tr>
<tr>
<td colspan="2" align="center" style="font-size:12px;color:#ff0000" height="50">非管理员止步!<%=user%><%=pws%></td>
</tr>
</table></td>
</tr>
<%
else
%>
<tr>
<td style="font-size:12px;line-height:22px">英雄网--后台管理
<p>欢迎使用!!!您已成功登录!!!点<a href="exit.asp" target="_parent"><font color="#ff0000">这里安全退出</font></a></p>
<p>程序功能说明:<br>
(1)网站管理内可更改您登录时的用户名及密码。<br>
(2)信息发布系统集成<font color="#0000FF">在线编辑器</font>功能,所以要求您的<font color="#FF0000">IE必需是6.0以上</font>版本;<br>
(3)网址手动更新<br>
(4)自动生成静态主页<br>
(5)访客留言功能可实现与浏览者的倾心沟通;<br>
(6)如果您还有什么不清楚,请与我们联系。13860820261<br>
<br>
CopyRight <a href="http://www.adyou.cn" style="color:#ff0000;text-decoration:unline" target="_blank">http://www.adyou.cn
</a>© 2006-2007<br>
</p>
</td>
</tr>
<%end if%>
</table>
</form>
</body>
</html>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -