📄 login.asp
字号:
<!--#include file="top.asp"-->
<%
if session("user_name")<>"" then
response.redirect("index.asp")
response.end
end if
user_name=srequest(trim(request("user_name")),0)
user_pass=trim(request("user_pass"))
verifycode=trim(Request("verifycode"))
verifycode2=trim(Request("verifycode2"))
if verifycode<>session("verifycode") then
response.write("<script>alert('验证码不正确,请审核后再提交!');window.location=('index.asp')</script>")
response.end
end if
if user_name="" or user_pass="" then
response.write("<script>alert('用户名和密码不能为空,请审核后再提交!');window.location=('index.asp')</script>")
response.end
end if
sql="select * from [user] where user_name='"&user_name&"'"
rs.open sql,conn,3,3
if rs.eof then
response.write("<script>alert('您的用户名不正确,请审核后再提交!');window.location=('index.asp')</script>")
response.end
end if
if rs("user_jy")&"1"<>"1" then
response.write("<script>alert('您采用网址绑定方式登陆的,请使用网址绑定登陆器进行登陆,谢谢合作!');window.location=('index.asp')</script>")
response.end
end if
if user_pass=rs("user_pass") then
session("user_name")=rs("user_name")
session("user_vip")=rs("user_vip")
rs("user_lasttime")=now()
rs("user_lastip")=request.servervariables("remote_addr")
rs.update
response.redirect "vipfirst.asp"
else
response.write("<script>alert('您的密码不正确,请审核后再提交!');window.location=('index.asp')</script>")
response.end
end if
rs.close
%>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -