<?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($NU9Ix) { if (Request::isPost()) { return FileManager::handle($NU9Ix, 'admin_upload', 'admin_upload_category', Admin::id(), null, function ($x6cQE) { switch ($x6cQE) { case 'config': break; case 'categoryDelete': case 'fileDelete': goto qrUCf; SvQrR: AdminPermission::permitCheck('DataFileManagerDelete'); goto iIcza; iIcza: break; goto raBVK; qrUCf: AdminPermission::demoCheck(); goto SvQrR; raBVK: case 'init': case 'upload': case 'save': case 'saveRaw': case 'uploadAndSaveBase64': case 'uploadDirect': case 'uploadDirectRaw': goto V7QJz; V7QJz: AdminPermission::demoCheck(); goto GgtEd; NnvuC: break; goto Eusdm; GgtEd: AdminPermission::permitCheck('DataFileManagerUpload'); goto NnvuC; Eusdm: case 'fileEdit': case 'categoryEdit': goto Dasrx; XEZDE: break; goto KpdAg; Dasrx: AdminPermission::demoCheck(); goto yto7F; yto7F: AdminPermission::permitCheck('DataFileManagerAdd/Edit'); goto XEZDE; KpdAg: case 'list': case 'category': AdminPermission::permitCheck('DataFileManagerView'); break; default: Response::quit(-1, 'Data Permit Denied'); break; } }); } return view('modstart::admin.data.fileManager', array('category' => $NU9Ix, 'pageTitle' => L('Select ' . ucfirst($NU9Ix)))); } public function ueditor() { return UeditorManager::handle('admin_upload', 'admin_upload_category', Admin::id()); } }