📄 user_checkpurview.asp
字号:
<%
If ComeURL = "" Then
Response.Clear()
Response.Write "<font color=red>禁止直接输入地址访问本页面</font>"
Call ApplicationTerminate()
Else
Dim Current_URL
Current_URL = "http://" & Trim(Request.ServerVariables("HTTP_HOST"))
Current_URL = Current_URL & Trim(Request.ServerVariables("SCRIPT_NAME"))
If CheckComefrom(ComeURL, Current_URL) = False Then
Response.Clear()
Response.Write "<font color=red>禁止从外部链接地址访问本页面</font>"
Call ApplicationTerminate()
End If
End If
If EL_User.UserIsLogin = False Then
Response.Write "<scr" & "ipt>top.location='User_Login.asp';</scr" & "ipt>"
Call ApplicationTerminate()
End If
Function CheckComefrom(StrComeURL, StrCurrentURL)
If Trim(StrComeURL) = "" Then
CheckComefrom = False
Else
If LCase(Left(StrComeURL, InStrRev(StrComeURL, "/"))) <> LCase(Left(StrCurrentURL, InStrRev(StrCurrentURL, "/"))) Then
CheckComefrom = False
Else
CheckComefrom = True
End If
End If
End Function
%>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -