<?php
/**
 * ------------------------ 
 *  版权所有  www.tecmz.com
 *  商业版本请购买正版授权使用
 * ------------------------
*/ namespace ModStart\Admin\Controller; use Illuminate\Routing\Controller; use ModStart\Admin\Auth\Admin; use ModStart\Admin\Auth\AdminPermission; use ModStart\Core\Input\Request; use ModStart\Core\Input\Response; use ModStart\Data\FileManager; use ModStart\Data\UeditorManager; class DataController extends Controller { public function fileManager($ZRqAm) { if (Request::isPost()) { return FileManager::handle($ZRqAm, 'admin_upload', 'admin_upload_category', Admin::id(), null, function ($fOKL5) { switch ($fOKL5) { case 'config': break; case 'categoryDelete': case 'fileDelete': goto gVdVK; gVdVK: AdminPermission::demoCheck(); goto q3sFP; UXyZh: break; goto g0Ll4; q3sFP: AdminPermission::permitCheck('DataFileManagerDelete'); goto UXyZh; g0Ll4: case 'init': case 'upload': case 'save': case 'saveRaw': case 'uploadAndSaveBase64': case 'uploadDirect': case 'uploadDirectRaw': goto ur6hu; pXFqO: break; goto OJW0o; ur6hu: AdminPermission::demoCheck(); goto rQqYl; rQqYl: AdminPermission::permitCheck('DataFileManagerUpload'); goto pXFqO; OJW0o: case 'fileEdit': case 'categoryEdit': goto ZTWal; NbIHm: break; goto qZ91H; ZTWal: AdminPermission::demoCheck(); goto VBBIH; VBBIH: AdminPermission::permitCheck('DataFileManagerAdd/Edit'); goto NbIHm; qZ91H: case 'list': case 'category': AdminPermission::permitCheck('DataFileManagerView'); break; default: Response::quit(-1, 'Data Permit Denied'); break; } }); } return view('modstart::admin.data.fileManager', array('category' => $ZRqAm, 'pageTitle' => L('Select ' . ucfirst($ZRqAm)))); } public function ueditor() { return UeditorManager::handle('admin_upload', 'admin_upload_category', Admin::id()); } }