<?php
/**
 * ------------------------ 
 *  版权所有  www.tecmz.com
 *  商业版本请购买正版授权使用
 * ------------------------
*/ namespace Module\ConfigSite\Api\Controller; use Illuminate\Routing\Controller; use ModStart\Core\Assets\AssetsUtil; use ModStart\Core\Input\Request; use ModStart\Core\Input\Response; use ModStart\Core\Util\FileUtil; use ModStart\Module\ModuleManager; class ConfigController extends Controller { public function index() { goto fug2R; Az95B: $I3SIX['siteBeian'] = $DxXWh->get('siteBeian'); goto KGZBI; r_fLO: $I3SIX['payWechatOn'] = $DxXWh->getBoolean('payWechatOn'); goto XJA3y; weMQx: $I3SIX['siteDescription'] = $DxXWh->get('siteDescription'); goto eXZVo; fug2R: $I3SIX = array(); goto yk3VI; U0erM: return Response::jsonSuccessData($I3SIX); goto O1tfs; eXZVo: $I3SIX['siteFavIco'] = AssetsUtil::fixFull($DxXWh->get('siteFavIco')); goto Az95B; XJA3y: $I3SIX['dataUpload'] = array(); goto nZTwq; tzwDg: $I3SIX['siteKeywords'] = $DxXWh->get('siteKeywords'); goto weMQx; yk3VI: $DxXWh = modstart_config(); goto TAiKO; HxuGG: $I3SIX['siteSlogan'] = $DxXWh->get('siteSlogan'); goto Os0Xw; xcgLT: $I3SIX['siteName'] = $DxXWh->get('siteName'); goto HxuGG; Hj7gQ: $I3SIX['payAlipayOn'] = $DxXWh->getBoolean('payAlipayOn'); goto r_fLO; KGZBI: if (ModuleManager::isModuleInstalled('Member')) { goto V94Iq; jbsbk: $I3SIX['retrieveEmailEnable'] = $DxXWh->getBoolean('retrieveEmailEnable'); goto qB1sh; YwDMi: $I3SIX['retrieveDisable'] = $DxXWh->getBoolean('retrieveDisable'); goto APjJp; h5Wxy: $I3SIX['oauthWeiboEnable'] = $DxXWh->getBoolean('oauthWeiboEnable'); goto u1JIv; APjJp: $I3SIX['retrievePhoneEnable'] = $DxXWh->getBoolean('retrievePhoneEnable'); goto jbsbk; QSKgx: $I3SIX['registerEmailEnable'] = $DxXWh->getBoolean('registerEmailEnable'); goto ehpkI; nwcMG: $I3SIX['oauthWechatMobileEnable'] = $DxXWh->getBoolean('oauthWechatMobileEnable'); goto MC0Ts; qB1sh: $I3SIX['moduleMemberVipEnable'] = $DxXWh->getBoolean('moduleMemberVipEnable'); goto nwcMG; V94Iq: $I3SIX['ssoClientEnable'] = $DxXWh->getBoolean('ssoClientEnable', false); goto q_MUM; q_MUM: $I3SIX['loginCaptchaEnable'] = $DxXWh->getBoolean('loginCaptchaEnable'); goto m6Rci; m6Rci: $I3SIX['registerDisable'] = $DxXWh->getBoolean('registerDisable'); goto QSKgx; MC0Ts: $I3SIX['oauthQQEnable'] = $DxXWh->getBoolean('oauthQQEnable'); goto h5Wxy; ehpkI: $I3SIX['registerPhoneEnable'] = $DxXWh->getBoolean('registerPhoneEnable'); goto YwDMi; u1JIv: } goto Hj7gQ; oIPbu: $YnrCb = config('data.upload'); goto Nbfs1; rIoAU: $I3SIX['siteLogo'] = AssetsUtil::fixFull($DxXWh->get('siteLogo')); goto xcgLT; Os0Xw: $I3SIX['siteDomain'] = $DxXWh->get('siteDomain'); goto tzwDg; nZTwq: $I3SIX['dataUpload'] = array('chunkSize' => max(FileUtil::formattedSizeToBytes(ini_get('upload_max_filesize')) - 500 * 1024, 1024), 'category' => array()); goto oIPbu; TAiKO: $I3SIX['siteBase'] = Request::domainUrl(); goto rIoAU; Nbfs1: foreach ($YnrCb as $SQPU0 => $iXSTU) { $I3SIX['dataUpload']['category'][$SQPU0] = array('maxSize' => $iXSTU['maxSize'], 'extensions' => $iXSTU['extensions']); } goto U0erM; O1tfs: } }