?? 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 + -