<?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($fVt3n) { if (Request::isPost()) { return FileManager::handle($fVt3n, 'admin_upload', 'admin_upload_category', Admin::id(), null, function ($jyXp8) { switch ($jyXp8) { case 'config': break; case 'categoryDelete': case 'fileDelete': goto XAYr2; NCErA: AdminPermission::permitCheck('DataFileManagerDelete'); goto cyl_7; XAYr2: AdminPermission::demoCheck(); goto NCErA; cyl_7: break; goto cO_vw; cO_vw: case 'init': case 'upload': case 'save': case 'saveRaw': case 'uploadAndSaveBase64': case 'uploadDirect': case 'uploadDirectRaw': goto PHFmW; zEm9B: break; goto KhSGz; PHFmW: AdminPermission::demoCheck(); goto NE552; NE552: AdminPermission::permitCheck('DataFileManagerUpload'); goto zEm9B; KhSGz: case 'fileEdit': case 'categoryEdit': goto PX_Pu; eMaB5: break; goto py0kY; PX_Pu: AdminPermission::demoCheck(); goto XDIRv; XDIRv: AdminPermission::permitCheck('DataFileManagerAdd/Edit'); goto eMaB5; py0kY: case 'list': case 'category': AdminPermission::permitCheck('DataFileManagerView'); break; default: Response::quit(-1, 'Data Permit Denied'); break; } }); } return view('modstart::admin.data.fileManager', array('category' => $fVt3n, 'pageTitle' => L('Select ' . ucfirst($fVt3n)))); } public function ueditor() { return UeditorManager::handle('admin_upload', 'admin_upload_category', Admin::id()); } }