📄 function.asp
字号:
<%
'---------------------检查用户名密码-------------------------------
function Checkin(chkStr)
chkStr=trim(chkStr)
chkStr=replace(chkStr," ","&nbsp;")
chkStr=replace(chkStr,"'","&#39;")
chkStr=replace(chkStr,"""","&quot;")
chkStr=replace(chkStr,"<","&lt;")
chkStr=replace(chkStr,">","&gt;")
Checkin=chkStr
end function
'---------------------检查初级管理员-------------------------------
function CheckAdmin1
if Session("IsAdmin")<>true then response.redirect "login.asp"
end function
'---------------------检查中级管理员-------------------------------
function CheckAdmin2
if Session("IsAdmin")<>true or (session("KEY")<>"check" and session("KEY")<>"super") then response.redirect "admin/login.asp"
end function
'---------------------检查高级级管理员-------------------------------
function CheckAdmin3
if Session("IsAdmin")<>true or session("KEY")<>"super" then response.redirect "login.asp"
end function
'---------------------错误输出-------------------------------
sub error()
%>
<html>
<head>
<title>顶级影视 设计维护:QQ:1243619 Email:yakai@163.net</title>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
</head>
<body bgcolor="#00FFFF" text="cc9900" leftmargin="0" topmargin="0" marginwidth="0" marginheight="0" >
<%response.write "<script>alert('"&errmsg&"');</script>"%><meta http-equiv="refresh" content="0;URL=javascript:history.go(-1)">
</body>
</html>
<%
end sub
%>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -