%@page import="com.forgon.directory.model.LoginInfo"%> <%@ page contentType="text/html; charset=UTF-8" %> <%@ include file="/common/taglibs.jsp" %> <%@page import="com.forgon.disinfectsystem.common.*"%> <%@page import="net.sf.json.JSONObject" %> <%@page import="java.io.File" %> <% HttpSession oldSession = request.getSession(false); String needResetPasswordUserId = null; if(oldSession != null){ if(!oldSession.isNew()){ needResetPasswordUserId = (String)oldSession.getAttribute("needResetPasswordUserId"); } if(needResetPasswordUserId!=null){ oldSession.removeAttribute("needResetPasswordUserId"); } } session.setAttribute("logonType", "expensivegoods"); String flag = request.getParameter(WebConstants.ACCESS_FILE_SYSTEM_OBJECT_FLAG); if(WebConstants.ENABLE_FILE_SYSTEM_OBJECT.equals(flag)){ session.setAttribute(WebConstants.ACCESS_FILE_SYSTEM_OBJECT_FLAG, flag); } String companyName = CssdUtils.getSystemSetConfigByName("companyName"); String companyNameStr = ""; if(companyName == null || companyName.equals("forgon")){ companyNameStr = "©2016 广州孚峻信息技术有限公司 版权所有"; }else if(companyName.equals("dingxiang")){ companyNameStr = "©2016 广州丁香软件有限公司 版权所有"; } session.setAttribute("companyName", companyNameStr); String project = CssdUtils.getConfigProperty("project"); session.setAttribute("profile", project); String imgPath = "disinfectsystem/config/" + project + "/img/logo_" + project +".png"; //System.out.println(application.getRealPath("/") + imgPath); File file = new File(application.getRealPath("/") + imgPath); if(file.exists()){ request.setAttribute("logoPath",imgPath); }else{ if(companyName == null || companyName.equals("forgon")){ request.setAttribute("logoPath","themes/portalPage/img/logo_Forgon.png"); }else if(companyName.equals("dingxiang")){ request.setAttribute("logoPath","themes/portalPage/img/logo_dingxiangsoft.png"); } } %>