⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 function.asp

📁 顶级影视站ASP源代码系统。很全面很强大。数据库用access
💻 ASP
字号:
<%
'---------------------检查用户名密码-------------------------------
function Checkin(chkStr)

chkStr=trim(chkStr)
chkStr=replace(chkStr," ","&amp;nbsp;")
chkStr=replace(chkStr,"'","&amp;#39;")
chkStr=replace(chkStr,"""","&amp;quot;")
chkStr=replace(chkStr,"&lt;","&amp;lt;")
chkStr=replace(chkStr,"&gt;","&amp;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 + -