修复所有权限问题

This commit is contained in:
FJY
2017-11-02 16:21:23 +08:00
parent bca76d88a6
commit ae46b5a98a
20 changed files with 60 additions and 296 deletions

View File

@@ -0,0 +1,19 @@
<%@ 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用户 */
%>