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

📄 checkuser.asp

📁 公文下发和上报管理:   在发布和上报文件时
💻 ASP
字号:
<%
'----------------------------------------------------------------------------------------------------------'
'----------------------------------------------------------------------------------------------------------'
'代码主要作用:
'	通过获取cookies值来判断是否为合法用户,若非法则转到登录窗口
'|supermanage|为最高级管理者
'|chkspuer|为超级管理者,能管理文件和会议及添加和管理用户
'|chkmeet|为会议管理者
'|chkfile|为文件管理者,单独为普通发文者
'|chkmeet||chkfile|合在一起为高级管理者,可以管理文件和会议



'----------------------------------------------------------------------------------------------------------'
'----------------------------------------------------------------------------------------------------------'

'用户参数
oabusyname=request.cookies("oabusyname")				'单位名
oabusyusername=request.cookies("oabusyusername")		'用户登录名
oabusyuserdept=request.cookies("oabusyuserdept")		'用户所在部门
oabusyuserlevel=request.cookies("oabusyuserlevel")		'用户所处级别,即管理员,县委管理员,县政府管理员,一般管理员和阅读者
oabusyuserid=request.cookies("oabusyuserid")
oabusyuserpower=request.cookies("oabusyuserpower")
			'用户ID

'系统参数
oabusyuserurl=request.cookies("url")					'主页网址
oabusyuserpath=request.Cookies("path")					'主页所在绝对路径
oabusyuserfileword=request.Cookies("fileword")			'上传word文件所在相对路径
'oabusyuserfilehtml=request.Cookies("filehtml")			'上传Html文件所在相对路径
oabusyusermeetword=request.Cookies("meetword")			'上传word会议文件所在相对路径
'oabusyusermeethtml=request.Cookies("meethtml")			'上传Html会议文件所在相对路径
oabusyuserhomename=request.Cookies("homename")			'网站的名称
oabusyuserpagecount=Request.Cookies("pagecount")

'判断是否为合法用户
if oabusyusername="" then 
	response.write("<script language=""javascript"">")
	response.write("window.top.location.href='default.asp';")
	response.write("</script>")
	response.end
end if%>

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -