资源简介
本人亲测可用,有php后端,有完整前端,有数据库,有完整的后台控制系统,完全可以拿来就用,登录后台界面:game +/index.php/Admin , 前端记得要配置 ssl 证书,https,
代码片段和文件信息
package com.baidu.ueditor;
import java.util.Map;
import javax.servlet.http.HttpServletRequest;
import com.baidu.ueditor.define.ActionMap;
import com.baidu.ueditor.define.AppInfo;
import com.baidu.ueditor.define.baseState;
import com.baidu.ueditor.define.State;
import com.baidu.ueditor.hunter.FileManager;
import com.baidu.ueditor.hunter.ImageHunter;
import com.baidu.ueditor.upload.Uploader;
public class ActionEnter {
private HttpServletRequest request = null;
private String rootPath = null;
private String contextPath = null;
private String actionType = null;
private ConfigManager configManager = null;
public ActionEnter ( HttpServletRequest request String rootPath ) {
this.request = request;
this.rootPath = rootPath;
this.actionType = request.getParameter( “action“ );
this.contextPath = request.getContextPath();
this.configManager = ConfigManager.getInstance( this.rootPath this.contextPath request.getRequestURI() );
}
public String exec () {
String callbackName = this.request.getParameter(“callback“);
if ( callbackName != null ) {
if ( !validCallbackName( callbackName ) ) {
return new baseState( false AppInfo.ILLEGAL ).toJSONString();
}
return callbackName+“(“+this.invoke()+“);“;
} else {
return this.invoke();
}
}
public String invoke() {
if ( actionType == null || !ActionMap.mapping.containsKey( actionType ) ) {
return new baseState( false AppInfo.INVALID_ACTION ).toJSONString();
}
if ( this.configManager == null || !this.configManager.valid() ) {
return new baseState( false AppInfo.CONFIG_ERROR ).toJSONString();
}
State state = null;
int actionCode = ActionMap.getType( this.actionType );
Mapject> conf = null;
switch ( actionCode ) {
case ActionMap.CONFIG:
return this.configManager.getAllConfig().toString();
case ActionMap.UPLOAD_IMAGE:
case ActionMap.UPLOAD_SCRAWL:
case ActionMap.UPLOAD_VIDEO:
case ActionMap.UPLOAD_FILE:
conf = this.configManager.getConfig( actionCode );
state = new Uploader( request conf ).doExec();
break;
case ActionMap.CATCH_IMAGE:
conf = configManager.getConfig( actionCode );
String[] list = this.request.getParameterValues( (String)conf.get( “fieldName“ ) );
state = new ImageHunter( conf ).capture( list );
break;
case ActionMap.LIST_IMAGE:
case ActionMap.LIST_FILE:
conf = configManager.getConfig( actionCode );
int start = this.getStartIndex();
state = new FileManager( conf ).listFile( start );
break;
}
return state.toJSONString();
}
public int getStartIndex () {
String start = this.request.getParameter( “start“ );
try {
return Integer.parseInt( start );
} catch ( Exception e ) {
return 0;
}
}
/**
* callback参数验证
*/
public boolean validCallbackName ( String name ) {
if ( name.matches( “^[a-zA-Z_]+[\\w0-9_]*$“ ) ) {
return true;
}
retur
属性 大小 日期 时间 名称
----------- --------- ---------- ----- ----
目录 0 2018-04-11 14:24 wanzhengpingtuan\
目录 0 2018-04-11 16:57 wanzhengpingtuan\client\
文件 8196 2017-07-13 23:43 wanzhengpingtuan\client\.DS_Store
文件 3646 2018-04-11 18:58 wanzhengpingtuan\client\app.js
文件 1592 2017-07-13 23:43 wanzhengpingtuan\client\app.json
文件 3153 2017-07-13 23:43 wanzhengpingtuan\client\app.wxss
文件 1007 2018-04-11 18:59 wanzhengpingtuan\client\config.js
目录 0 2018-04-11 16:57 wanzhengpingtuan\client\Doc\
文件 42079 2017-07-13 23:43 wanzhengpingtuan\client\Doc\new image - 6ddym.jpg
文件 86494 2017-07-13 23:43 wanzhengpingtuan\client\Doc\new image - h0vte.jpg
文件 70382 2017-07-13 23:43 wanzhengpingtuan\client\Doc\new image - kfw1h.jpg
文件 44355 2017-07-13 23:43 wanzhengpingtuan\client\Doc\new image - kiegr.jpg
文件 56396 2017-07-13 23:43 wanzhengpingtuan\client\Doc\new image - r2qkk.jpg
文件 38304 2017-07-13 23:43 wanzhengpingtuan\client\Doc\new image - w8fbv.jpg
文件 84064 2017-07-13 23:43 wanzhengpingtuan\client\Doc\new image - xv2a7.jpg
目录 0 2018-04-11 16:57 wanzhengpingtuan\client\images\
文件 36777 2017-07-13 23:43 wanzhengpingtuan\client\images\33.png
文件 41135 2017-07-13 23:43 wanzhengpingtuan\client\images\44.png
文件 7378 2017-07-13 23:43 wanzhengpingtuan\client\images\baoming.png
文件 475 2017-07-13 23:43 wanzhengpingtuan\client\images\car.png
文件 2693 2017-07-13 23:43 wanzhengpingtuan\client\images\cart.jpg
文件 468 2017-07-13 23:43 wanzhengpingtuan\client\images\dfh.png
文件 482 2017-07-13 23:43 wanzhengpingtuan\client\images\dfk.png
文件 359 2017-07-13 23:43 wanzhengpingtuan\client\images\dleicon.png
文件 426 2017-07-13 23:43 wanzhengpingtuan\client\images\dpl.png
文件 660 2017-07-13 23:43 wanzhengpingtuan\client\images\dsh.png
文件 915 2017-07-13 23:43 wanzhengpingtuan\client\images\fei.png
文件 1020 2017-07-13 23:43 wanzhengpingtuan\client\images\feii.png
文件 1316 2017-07-13 23:43 wanzhengpingtuan\client\images\ggg.png
文件 1416 2017-07-13 23:43 wanzhengpingtuan\client\images\gi.png
文件 1198 2017-07-13 23:43 wanzhengpingtuan\client\images\hui.png
............此处省略3711个文件信息
- 上一篇:W3school离线手册
- 下一篇:TP数字货币交易所.zip
评论
共有 条评论