📄 checkpass.asp
字号:
<!--#Include file="../Common/Inc_DatConn.asp"-->
<%session.Timeout = 333%>
<%
'┌─ 风云ASP在线 ────────────────────────┐
'│ │
'│ 作者:赵振波. http://www.fyasp.com │
'│ │
'│ Q Q:176189168 │
'│ │
'│ Email:fy96@163.com │
'│ │
'│ 程序定做,系统开发,网站制作,提供高质量的网络产品、技术和服务!│
'│ │
'│【版权声明】 │
'│ │
'│ 本程序版权归坐看风云所有,未经授权擅自修改、复制或散布本程序│
'│ │
'│的部分或全部,将承受严厉的民事和刑事处罚,对已知的违反者将给予法 │
'│ │
'│律范围内的全面制裁。对非法使用此程序所造成的一切后果本人概不负责!│
'│ │
'└─────────────────── http://www.fyasp.com ──┘
%>
<%
'/验证系统用户账户及管理密码/
Dim rdsAccount '/创建用户账号访问对象/
Dim sqlAccount '/创建SQL语句/
Dim strAccount '/用户账号/
Dim strPassWord '/管理密码/
strAccount = Request.Form("Account")
strPassWord = Request.Form("Password")
set rdsAccount = Server.CreateObject("ADODB.Recordset")
sqlAccount = "Select * From Sys_Account Where Account = '"& strAccount &"'"
rdsAccount.Open sqlAccount,Conn
if not rdsAccount.EOF then
if strPassword = rdsAccount("Password") then
if rdsAccount("State") = 0 then
Session("intUserKey") = rdsAccount("UserKey")
Session("strAccount") = strAccount
Session("strPassword") = strPassword
Session("intUserLevel") = rdsAccount("UserLevel")
Response.Redirect "Main.asp"
else
Response.Write "<script>alert(""\对不起!您的管理账号已被禁止登录,请与管理员联系!"");window.location='index.asp';</script>"
end if
else
Response.Write "<script>alert(""\您输入的管理密码不正确,请重新输入!"");window.location='index.asp';</script>"
end if
else
Response.Write "<script>alert(""\您输入的账户不存在,请重新输入!"");window.location='index.asp';</script>"
end if
rdsAccount.Close
set rdsAccount = nothing
%>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -