📄 r_login.asp
字号:
<!--#include file="connection.asp"-->
<%
dim xuid,xpass,checkpass
xuid = request("userid")
xpass = request("pass")
if instr(1,xuid,"'") > 0 then
xuid = replace(xuid,"'","''")
end if
if instr(1,xpass,"'") > 0 then
xpass = replace(xpass,"'","''")
end if
conn.open = connstring
set rs = conn.execute ( "Select count(pass) from reportusers where pass = '" & xpass & "' and userid = '" & xuid & "'")
if (len(xpass) = 0) or (len(xuid) = 0) then
response.redirect "R_er_login.htm"
else
if (rs(0) >= 1) then
set rs = conn.execute ( "Select * from reportusers where userid = '" & xuid & "'")
checkpass = rs("pass")
if not(xpass=checkpass) then
response.redirect "R_er_login.htm"
end if
session("Ruserid") = xuid
Response.Redirect "reportsmain.asp"
else
Response.Redirect "R_er_login.htm"
end if
end if
%>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -