📄 checklogin.asp
字号:
<%
function GetPath1()
dim m_intLoop , m_strBaseDIr
for m_intLoop = getInitLoop to ubound(split(Request.ServerVariables ("SCRIPT_NAME"),"/" )) - 1
m_strBaseDir = m_strBaseDir + "../"
next
GetPath1 = m_strBaseDir
end function
function getInitLoop()
strMD=Request.ServerVariables("APPL_MD_PATH")
strMDs=split(strMD,"/")
if strMDs(ubound(strMDs))="Root" then
getInitLoop=1
else
getInitLoop=2
end if
end function
if session("loginuser")="" or session("loginorlogout")<>"1" then
if Request.ServerVariables("SCRIPT_NAME")="/main.asp" then
strredirect=""
else
strredirect="http://" & Request.ServerVariables("REMOTE_HOST") &":"& Request.ServerVariables("SERVER_PORT") & Request.ServerVariables("SCRIPT_NAME")
end if
'response.write GetPath1()&"function/login.asp"
'response.end
response.redirect GetPath1()&"function/login.asp?StrRedirect="&strredirect
response.end
end if
%>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -