⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 check_login.asp

📁 花钱买的毕业设计。企业网络管理系统
💻 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 + -