Files
VANTEN/WebRoot/module/limits_check.jsp
2017-11-02 16:21:23 +08:00

20 lines
817 B
Plaintext
Raw Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%>
<%
String path = request.getContextPath();
String basePath = request.getScheme() + "://" + request.getServerName() + ":" + request.getServerPort()
+ path + "/";
%>
<!-- 判断是否是管理员 -->
<%
Object LimitsName = "管理员";
if (!adminuser.equals("管理员")) {/* 已在top.jsp中声明此处报错正常 */
out.println("<script language=javascript>alert('你不是管理员,不能访问此版块');window.location.href='mainframe.jsp'</script>");
/* out.println(adminuser); */
return;
} else {
/* out.println(adminuser); */ /* 已在top.jsp中声明此处报错正常 */
}
Object user0 = session.getAttribute("actualuser");
/* out.println("欢迎"+user0);//输出当前session用户 */
%>