<%@ page language="java" pageEncoding="utf-8" import="com.cjy.util.SystemPropertyManager" %> <%@taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %> <%@ page import="com.cjy.sysuser.entity.SysUser" %> <%@ page import="com.cjy.sysdept.entity.SysDept" %> <%@ page import="java.util.Set" %> <%@ page import="java.util.TreeSet" %> <%@ page import="com.cjy.core.facade.UserAttrFacade" %> <%@ page import="com.cjy.core.SystemProperties" %> <%@ page import="com.cjy.core.auth.AuthInfo" %> <%@ taglib uri="/cjytaglib" prefix="cjy" %> <% final String ctx = request.getContextPath(); request.setAttribute("ctx", ctx); String sysname = SystemPropertyManager.getProperty("platform.name"); String loginlogo = SystemPropertyManager.getProperty("platform.loginlogo"); String registerlogo = SystemPropertyManager.getProperty("platform.registerlogo"); String mainlogo = SystemPropertyManager.getProperty("platform.mainlogo"); loginlogo = ctx + loginlogo; registerlogo = ctx + registerlogo; mainlogo = ctx + mainlogo; String[] anonymous = { "/hbcyjc/secondValidate.jsp", "/hbcyjc/login.jsp", // 手机端 应急指挥页面 "/hbcyjc/yjglddxt/yjzh/video/mindex.jsp", "/hbcyjc/yjglddxt/yjzh/video/mvideo.jsp", "/hbcyjc/yjglddxt/mobile/taskinfo.jsp", "/hbcyjc/yjglddxt/mobile/task_history.jsp", // 地区 登录页,不拦截-- "/hbcyjc/loginpage/common-login.jsp", "/hbcyjc/xiongan.jsp", "/hbcyjc/loginpage/hengshui.jsp", "/hbcyjc/region/131401/daily/index.jsp", "/hbcyjc/region/131401/daily/404/index.jsp", "/hbcyjc/loginpage/hebei.jsp", "/hbcyjc/region/130000/pages/login.jsp", }; SysUser sysUser = (SysUser) request.getSession().getAttribute("admin"); if (sysUser == null) { String uri = request.getRequestURI(); boolean access = false; for (String s : anonymous) { if (s.contains(uri)) { access = true; break; } } if (!access) { response.sendRedirect("/hbcyjclogin/logout.do"); return; } } request.setAttribute("sysUser", sysUser); SysDept ctx_sysDept = (SysDept) request.getSession().getAttribute("region"); request.setAttribute("ctx_sysDept", ctx_sysDept); String ctx_regioncname = ""; String ctx_delregion = ""; String ctx_gdlnglat = ""; if (ctx_sysDept != null) { ctx_regioncname = ctx_sysDept.getDname(); ctx_delregion = ctx_sysDept.getDremark(); ctx_gdlnglat = ctx_sysDept.getGdlnglat(); request.setAttribute("ctx_regioncname", ctx_regioncname); request.setAttribute("ctx_delregion", ctx_delregion); request.setAttribute("ctx_gdlnglat", ctx_gdlnglat); } // 备案号 request.setAttribute("sysPropertiesBeian", SystemProperties.BEIAN); request.setAttribute("Auth", AuthInfo.createAuth(request)); %> <%-- 自定义 css --%> <%--<%@include file="theme_css.jsp" %>--%>