RandNum=Session("CheckCode")
zf11ManageSession = "20041006213"&RandNum '不能改动
zf11ManageAdminID = "zf11ManageAdminID"&RandNum '不能改动
zf11ManageUser = "zf11ManageUser"&RandNum '不能改动
zf11ManageKey = "zf11ManageKey"&RandNum '不能改动
'---------------------检查用户名密码-------------------------------
function Checkin(s)
s=trim(s)
s=replace(s," "," ")
s=replace(s,"'","'")
s=replace(s,"""",""")
s=replace(s,"<","<")
s=replace(s,">",">")
Checkin=s
end function
'---------------------检查初级管理员-------------------------------
function CheckAdmin1
if Session(zf11ManageSession)true then response.redirect "admin/index.asp"
end function
'---------------------检查中级管理员-------------------------------
function CheckAdmin2
if Session(zf11ManageSession)true then response.redirect "admin/index.asp"
if Session(zf11ManageSession)true or (session(zf11ManageKey)"check" and session(zf11ManageKey)"super") then response.redirect "Admin_Default.asp?err=你的权限的够!!"
end function
'---------------------检查高级级管理员-------------------------------
function CheckAdmin3
if Session(zf11ManageSession)true then response.redirect "admin/index.asp"
if Session(zf11ManageSession)true or session(zf11ManageKey)"super" then response.redirect "Admin_Default.asp?err=你的权限的够!!"
end function
'---------------------错误输出-------------------------------
sub error()
%>
四通政府网站管理系统 - 管理员级别检测
Error!
! :(
...::: 点 此 返 回
:::...