<%@page import="com.hanweb.common.util.StringUtil" %> <%@page import="com.hanweb.common.util.mvc.Script" %> <%@page import="com.hanweb.jcms.service.filemanager.Jcms_AttachBLF" %> <%@page import="com.hanweb.jcms.sys.service.SysInit" %> <%@page import="com.hanweb.jcms.util.xml.XMLFile" %> <%@ page import="com.hanweb.common.util.JsonUtil" %> <%@page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8" %> <%@include file="./config.jsp" %> <% Script script = Script.getInstanceOnly(); String strAlert = ""; XMLFile xmlFile = new XMLFile(); String webPath = application.getRealPath("") + "/jcms_files/jcms" + strAppID + "/web" + strWebID + "/site/"; String confPath = webPath + "module/download/config/config.xml"; String webtype = xmlFile.getContent( "webtype",confPath ); //1:内网 2:外网 String filename = StringUtil.getSafeString(request.getParameter("filename")); String userAgent = request.getHeader("USER-AGENT"); String vc_destpath =""; if(!StringUtil.isEmpty(filename)){ Jcms_AttachBLF attachBLF = Jcms_AttachBLF.getInstance(); String[][] temp = attachBLF.findPathByFileName(filename); if (temp!=null && temp.length>0){ for (int i = 0; i