資源簡(jiǎn)介
CKFinder 2.6.2 破解版 eclipse工程源代碼;
標(biāo)準(zhǔn)JSP工程,純eclipse工程源代碼,導(dǎo)入即可;
包含CKFinder JAVA源代碼。
(1)解決了DEMO版本的提示;
(2)解決了中文圖片無法顯示;
(3)中文文件夾亂碼問題需要修改WEBAPP的配置文件,添加URIEncoding="UTF-8"
筆者敬告:僅供學(xué)習(xí)研究使用,不得用于商業(yè)用途。

代碼片段和文件信息
/*
?*?CKFinder
?*?========
?*?http://cksource.com/ckfinder
?*?Copyright?(C)?2007-2015?CKSource?-?Frederico?Knabben.?All?rights?reserved.
?*
?*?The?software?this?file?and?its?contents?are?subject?to?the?CKFinder
?*?License.?Please?read?the?license.txt?file?before?using?installing?copying
?*?modifying?or?distribute?this?file?or?part?of?its?contents.?The?contents?of
?*?this?file?is?part?of?the?Source?Code?of?CKFinder.
?*/
package?com.ckfinder.connector;
import?java.util.HashMap;
import?java.util.Map;
import?javax.servlet.http.HttpServletRequest;
import?javax.servlet.jsp.JspException;
import?javax.servlet.jsp.tagext.TagSupport;
import?com.ckfinder.connector.utils.PathUtils;
/**
?*?Source?code?of
?*?<ckfinder:setupCKEditor?/>
?tag.
?*/
public?class?CKFinderSetupCKEditor?extends?TagSupport?{
private?static?final?String?CKFINDER_UPLOAD_URL?=?“/ckfinder/core/connector/java/connector.java?command=QuickUpload&type=“;
private?static?final?String?CKFINDER_PAGE?=?“/ckfinder.html“;
private?static?final?String?DEFAULT_IMAGE_TYPE?=?“Images“;
private?static?final?String?DEFAULT_FLASH_TYPE?=?“Flash“;
/**
?*
?*/
private?static?final?long?serialVersionUID?=?3947714242365900445L;
private?String?basePath;
private?String?editor;
private?String?imageType;
private?String?flashType;
@Override
public?int?doStartTag()?throws?JspException?{
if?(imageType?==?null?||?imageType.equals(““))?{
imageType?=?DEFAULT_IMAGE_TYPE;
}
if?(flashType?==?null?||?flashType.equals(““))?{
flashType?=?DEFAULT_FLASH_TYPE;
}
Map>?attr?=?new?HashMap>();
Map?params?=?new?HashMap();
params.put(“filebrowserBrowseUrl“?buildBrowseUrl(null));
params.put(“filebrowserUploadUrl“?buildUploadUrl(“Files“));
params.put(“filebrowserImageBrowseUrl“?buildBrowseUrl(imageType));
params.put(“filebrowserImageUploadUrl“?buildUploadUrl(imageType));
params.put(“filebrowserFlashBrowseUrl“?buildBrowseUrl(flashType));
params.put(“filebrowserFlashUploadUrl“?buildUploadUrl(flashType));
if?(editor?==?null?||?editor.equals(““))?{
attr.put(“*“?params);
}?else?{
attr.put(editor?params);
}
pageContext.setAttribute(“ckeditor-params“?attr);
return?EVAL_PAGE;
}
/**
?*?Builds?browse?url?by?type?and?basePath.
?*
?*?@param?type?current?type
?*?@return?full?browse?url.
?*/
private?String?buildBrowseUrl(final?String?type)?{
return?PathUtils.escape(basePath.concat(CKFINDER_PAGE).concat(type?==?null???““?:?“?type=“.concat(type)));
}
/**
?*?Builds?upload?URL?by?type.
?*
?*?@param?type?current?type.
?*?@return?full?CKFinder?upload?URL.
?*/
private?String?buildUploadUrl(final?String?type)?{
if?(pageContext.getRequest()?instanceof?HttpServletRequest)?{
return?((HttpServletRequest)?pageContext.getRequest()).getContextPath().concat(CKFINDER_UPLOAD_URL).c
?屬性????????????大小?????日期????時(shí)間???名稱
-----------?---------??----------?-----??----
?????目錄???????????0??2016-09-07?09:07??imgLib\
?????文件?????????829??2016-09-05?16:38??imgLib\.classpath
?????文件????????1039??2016-09-05?16:32??imgLib\.project
?????目錄???????????0??2016-09-05?16:32??imgLib\.settings\
?????文件?????????503??2016-09-05?14:30??imgLib\.settings\.jsdtscope
?????文件??????????96??2016-09-05?15:02??imgLib\.settings\org.eclipse.core.resources.prefs
?????文件?????????364??2016-09-05?14:30??imgLib\.settings\org.eclipse.jdt.core.prefs
?????文件?????????472??2016-09-05?16:32??imgLib\.settings\org.eclipse.wst.common.component
?????文件?????????333??2016-09-05?16:38??imgLib\.settings\org.eclipse.wst.common.project.facet.core.xm
?????文件??????????49??2016-09-05?14:30??imgLib\.settings\org.eclipse.wst.jsdt.ui.superType.container
?????文件???????????6??2016-09-05?14:30??imgLib\.settings\org.eclipse.wst.jsdt.ui.superType.name
?????目錄???????????0??2016-09-06?16:14??imgLib\build\
?????目錄???????????0??2016-09-06?15:31??imgLib\resources\
?????目錄???????????0??2016-09-05?16:32??imgLib\resources\lang\
?????文件????????3246??2016-09-05?14:49??imgLib\resources\lang\bg.xm
?????文件????????2546??2016-09-05?14:49??imgLib\resources\lang\ca.xm
?????文件????????2412??2016-09-05?14:49??imgLib\resources\lang\cs.xm
?????文件????????2441??2016-09-05?14:49??imgLib\resources\lang\cy.xm
?????文件????????2432??2016-09-05?14:49??imgLib\resources\lang\da.xm
?????文件????????2576??2016-09-05?14:49??imgLib\resources\lang\de.xm
?????文件????????3676??2016-09-05?14:49??imgLib\resources\lang\el.xm
?????文件????????2394??2016-09-05?14:49??imgLib\resources\lang\en.xm
?????文件????????2345??2016-09-05?14:49??imgLib\resources\lang\eo.xm
?????文件????????2619??2016-09-05?14:49??imgLib\resources\lang\es-mx.xm
?????文件????????2601??2016-09-05?14:49??imgLib\resources\lang\es.xm
?????文件????????2306??2016-09-05?14:49??imgLib\resources\lang\et.xm
?????文件????????3017??2016-09-05?14:49??imgLib\resources\lang\fa.xm
?????文件????????2480??2016-09-05?14:49??imgLib\resources\lang\fi.xm
?????文件????????2451??2016-09-05?14:49??imgLib\resources\lang\fr.xm
?????文件????????3572??2016-09-05?14:49??imgLib\resources\lang\gu.xm
?????文件????????2700??2016-09-05?14:49??imgLib\resources\lang\he.xm
............此處省略785個(gè)文件信息
評(píng)論
共有 條評(píng)論