📄 admin.asp
字号:
<%@LANGUAGE="VBSCRIPT" CODEPAGE="936"%>
<!--#include file="conn.asp"-->
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312" />
<title>帮你365天后台管理</title>
<LINK href="Inc/sitecss.css" type=text/css rel=stylesheet>
</head>
<body>
<%
action=trim(request("action"))
username=trim(request("username"))
password=trim(request("password"))
if action="LoginOk" then
if charcheck(request("username"))<>request("username") or charcheck(request("password"))<>request("password") then
call ErrorMsgExit("您填写的内容中含有非法字符,请检查后重新输入!")
end if
if username="" or password="" then
call ErrorMsgExit("填写不完整,请检查后重新提交!")
end if
if Session("N_Num")<>trim(request("PassCode")) then
response.write "<script language='javascript'>"
response.write "alert('验证码错误,请检查后重新输入!');"
response.write "location.href='javascript:history.go(-1)';"
response.write "</script>"
response.end
end if
set rs=conn.execute("select * from ManageUser where Password='"&password&"' and UserName='"&username&"'")
'response.Write md5(md5(password))
'response.End()
if not(rs.bof and rs.eof) then
session("usertype")=rs("Type")
session("ManageUser")=username '设置cookies
Response.Redirect("index.asp")
else
call ErrorMsgExit("您填写的用户名或者密码有误,请检查后重新输入。")
end if
set rs=nothing
conn.close
set conn=nothing
end if
%>
<form id="form1" name="form1" method="post" action="">
<table width="300" border="0" align="center" cellpadding="2" cellspacing="1" bgcolor="#0066FF">
<tr>
<td width="100" height="30" align="right" bgcolor="#FFFFFF">用户:</td>
<td width="200" bgcolor="#FFFFFF"><input name="username" type="text" class="inputclass" id="username" size="15" /></td>
</tr>
<tr>
<td height="30" align="right" bgcolor="#FFFFFF">密码:</td>
<td bgcolor="#FFFFFF"><input name="password" type="password" class="inputclass" size="15" /></td>
</tr>
<tr>
<td height="30" align="right" bgcolor="#FFFFFF">验证:</td>
<td bgcolor="#FFFFFF"><input name="PassCode" type="text" class="inputclass" size="15" /><img src="inc/Passcode.asp" border="0"></td>
</tr>
<tr>
<td height="30" colspan="2" align="center" bgcolor="#FFFFFF">
<input type="submit" name="Submit" value="提交" />
<input type="reset" name="Submit2" value="重置" />
<input name="action" type="hidden" id="action" value="LoginOk" /></td>
</tr>
</table>
</form>
</body>
</html>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -