<%@page import="com.hanweb.jcms.util.SafeUtil" %> <%@page import="com.hanweb.common.util.StringUtil" %> <%@page import="com.hanweb.jcms.util.xml.XMLFile" %> <%@page import="com.hanweb.jcms.service.plugin.Jcms_ExtramodalBLF" %> <%@page import="com.hanweb.common.util.NumberUtil" %> <%@ page import="com.hanweb.common.util.mvc.Script" %> <%@ page import="com.hanweb.jcms.util.AccessUtil" %> <%@page contentType="text/html;charset=UTF-8" %> <%@include file="./config.jsp" %> <% Script script = Script.getInstanceOnly(); if(!AccessUtil.checkAccess(request)){ //阻止跨站点请求伪造 out.print(script.addScript("location.href='../../';").getScript()); return; } int nWebID = NumberUtil.getInt(strWebID); if(!Jcms_ExtramodalBLF.isExist("xxgk", nWebID)){ out.println("信息公开扩展功能不存在!"); return; } String area = SafeUtil.getSafeString(request.getParameter("area")); String modulePath; XMLFile xmlFile = new XMLFile(); String strConfigPath = application.getRealPath("")+"/jcms_files/jcms"+strAppID+"/web"+strWebID+"/site/module/xxgk/config/config.xml"; String strWebType = xmlFile.getContent("webtype", strConfigPath); // 1 内网; 2 外网 if(StringUtil.getString(strWebType).equals("1")){ modulePath = request.getContextPath()+"/jcms_files/jcms"+strAppID+"/web"+nWebID+"/site/module/"; }else{ modulePath = "/module/"; } %> 政府信息公开目录