<?php
/**
 * ------------------------ 
 *  版权所有  www.tecmz.com
 *  商业版本请购买正版授权使用
 * ------------------------
*/ namespace Module\Vendor\Admin\Controller; use Illuminate\Routing\Controller; use ModStart\Core\Input\Response; class WidgetIconController extends Controller { public static $PermitMethodMap = array('*' => '*'); public function index() { goto WboSr; JxFHl: $SPf7K[] = array('title' => 'Font Awesome', 'list' => $hmq1P); goto pV9sL; FGwrN: if (file_exists($okURS = public_path('asset/vendor/iconfont/iconfont.css')) && ($V0Dls = file_get_contents($okURS))) { preg_match_all('/\\.icon-([a-z0-9\\-]+):before/', $V0Dls, $YpeHe); $hmq1P = array_map(function ($SLZ1j) { return array('title' => $SLZ1j, 'cls' => "iconfont icon-{$SLZ1j}"); }, $YpeHe[1]); } goto yrGPS; JYUff: $hmq1P = array(); goto FGwrN; TkkYA: if (file_exists($okURS = public_path('asset/font-awesome/css/font-awesome.min.css')) && ($V0Dls = file_get_contents($okURS))) { preg_match_all('/\\.fa-([a-z0-9\\-]+):before/', $V0Dls, $YpeHe); $hmq1P = array_map(function ($SLZ1j) { return array('title' => $SLZ1j, 'cls' => "fa fa-{$SLZ1j}"); }, $YpeHe[1]); } goto JxFHl; yrGPS: $SPf7K[] = array('title' => '内置图标', 'list' => $hmq1P); goto D4iLf; WboSr: $SPf7K = array(); goto JYUff; D4iLf: $hmq1P = array(); goto TkkYA; pV9sL: return Response::jsonSuccessData($SPf7K); goto etrGc; etrGc: } }