📄 check_login.asp
字号:
<%@LANGUAGE="VBSCRIPT" CODEPAGE="936"%>
<!--#include file="../include/md5.asp" -->
<!--#include file="../include/config.asp" -->
<html>
<head>
<title>Untitled Document</title>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
<link href="../style/style.css" rel="stylesheet" type="text/css">
</head>
<body>
<%
seed = Session("seed")
str = "select id,login_name,password,certified from member where login_name = '" & Request.Form("login_name") & "'"
with Session("rs")
.Open str,Session("conn")
if .EOF or MD5(.Fields("password") & seed)<>Request.Form("password") then
%>
<script language="JavaScript" type="text/JavaScript">
window.alert("您的账号、密码输入不正确!")
history.back();
</script>
<%
.Close()
elseif not .Fields("certified") then
Session("login_name") = .Fields("login_name")
Session("member_id") = .Fields("id")
Session("mode") = "uncertified"
%>
<script language="JavaScript" type="text/JavaScript">
window.alert("您的申请正在被认证,认证之前你还未能享受会员服务!")
window.open("../index/index.asp","_self")
</script>
<%
else
Session("login_name") = .Fields("login_name")
Session("member_id") = .Fields("id")
Session("mode") = "member"
.Close()
%>
<script language="JavaScript" type="text/JavaScript">
window.alert("登录成功!")
</script>
<%
Server.Execute("../include/check_session.asp")
%>
<script language="JavaScript" type="text/JavaScript">
window.open("../index/index.asp","_parent")
</script>
<%
end if
end with
Session("seed") = ""
%>
</body>
</html>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -