<?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($A1ib2) { if (Request::isPost()) { return FileManager::handle($A1ib2, 'admin_upload', 'admin_upload_category', Admin::id(), null, function ($CoQTC) { switch ($CoQTC) { case 'config': break; case 'categoryDelete': case 'fileDelete': goto Mi42S; Mmyh3: break; goto Y2VQa; Mi42S: AdminPermission::demoCheck(); goto DD3Lq; DD3Lq: AdminPermission::permitCheck('DataFileManagerDelete'); goto Mmyh3; Y2VQa: case 'init': case 'upload': case 'save': case 'saveRaw': case 'uploadAndSaveBase64': case 'uploadDirect': case 'uploadDirectRaw': goto UkA68; pci30: AdminPermission::permitCheck('DataFileManagerUpload'); goto d2HwR; UkA68: AdminPermission::demoCheck(); goto pci30; d2HwR: break; goto TCkYO; TCkYO: case 'fileEdit': case 'categoryEdit': goto ULCGY; QUj1K: break; goto z6nBG; ULCGY: AdminPermission::demoCheck(); goto WR67f; WR67f: AdminPermission::permitCheck('DataFileManagerAdd/Edit'); goto QUj1K; z6nBG: case 'list': case 'category': AdminPermission::permitCheck('DataFileManagerView'); break; default: Response::quit(-1, 'Data Permit Denied'); break; } }); } return view('modstart::admin.data.fileManager', array('category' => $A1ib2, 'pageTitle' => L('Select ' . ucfirst($A1ib2)))); } public function ueditor() { return UeditorManager::handle('admin_upload', 'admin_upload_category', Admin::id()); } }