<?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($FVUIh) { if (Request::isPost()) { return FileManager::handle($FVUIh, 'admin_upload', 'admin_upload_category', Admin::id(), null, function ($FXT7G) { switch ($FXT7G) { case 'config': break; case 'categoryDelete': case 'fileDelete': goto HuZtZ; KYDL3: break; goto YfUYJ; hinNa: AdminPermission::permitCheck('DataFileManagerDelete'); goto KYDL3; HuZtZ: AdminPermission::demoCheck(); goto hinNa; YfUYJ: case 'init': case 'upload': case 'save': case 'saveRaw': case 'uploadAndSaveBase64': case 'uploadDirect': case 'uploadDirectRaw': goto kXAyx; kXAyx: AdminPermission::demoCheck(); goto owZCW; n3wfI: break; goto qGKF3; owZCW: AdminPermission::permitCheck('DataFileManagerUpload'); goto n3wfI; qGKF3: case 'fileEdit': case 'categoryEdit': goto pnN7s; QCnfn: break; goto gx9KI; pnN7s: AdminPermission::demoCheck(); goto JcSXc; JcSXc: AdminPermission::permitCheck('DataFileManagerAdd/Edit'); goto QCnfn; gx9KI: case 'list': case 'category': AdminPermission::permitCheck('DataFileManagerView'); break; default: Response::quit(-1, 'Data Permit Denied'); break; } }); } return view('modstart::admin.data.fileManager', array('category' => $FVUIh, 'pageTitle' => L('Select ' . ucfirst($FVUIh)))); } public function ueditor() { return UeditorManager::handle('admin_upload', 'admin_upload_category', Admin::id()); } }