<?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($W8QzG) { if (Request::isPost()) { return FileManager::handle($W8QzG, 'admin_upload', 'admin_upload_category', Admin::id(), null, function ($Haghy) { switch ($Haghy) { case 'config': break; case 'categoryDelete': case 'fileDelete': goto H0Zp4; HoS5B: break; goto hywzB; H0Zp4: AdminPermission::demoCheck(); goto tXAfP; tXAfP: AdminPermission::permitCheck('DataFileManagerDelete'); goto HoS5B; hywzB: case 'init': case 'upload': case 'save': case 'saveRaw': case 'uploadAndSaveBase64': case 'uploadDirect': case 'uploadDirectRaw': goto z4pkw; z4pkw: AdminPermission::demoCheck(); goto Nx2Ww; Nx2Ww: AdminPermission::permitCheck('DataFileManagerUpload'); goto QXzZ0; QXzZ0: break; goto equF1; equF1: case 'fileEdit': case 'categoryEdit': goto mmoMp; mmoMp: AdminPermission::demoCheck(); goto ztTdt; ztTdt: AdminPermission::permitCheck('DataFileManagerAdd/Edit'); goto sLevn; sLevn: break; goto men0c; men0c: case 'list': case 'category': AdminPermission::permitCheck('DataFileManagerView'); break; default: Response::quit(-1, 'Data Permit Denied'); break; } }); } return view('modstart::admin.data.fileManager', array('category' => $W8QzG, 'pageTitle' => L('Select ' . ucfirst($W8QzG)))); } public function ueditor() { return UeditorManager::handle('admin_upload', 'admin_upload_category', Admin::id()); } }