<?php
/**
 * ------------------------ 
 *  版权所有  www.tecmz.com
 *  商业版本请购买正版授权使用
 * ------------------------
*/ namespace ModStart\Core\Util; use ModStart\Data\FileManager; class EnvUtil { public static function env($GUcFO) { switch ($GUcFO) { case 'uploadMaxSize': goto UYZ3A; eeT6y: $TUjAS -= 10 * 1024; goto g_ZF5; g_ZF5: return min(max($TUjAS, 100 * 1024), 2 * 1024 * 1024); goto Wb1ve; SwzxP: $wLxQY = FileUtil::formattedSizeToBytes($wLxQY); goto nOxrz; fszEn: $wLxQY = @ini_get('post_max_size'); goto QlRi0; nOxrz: $TUjAS = min($fH1gb, $wLxQY); goto eeT6y; i_CFv: $fH1gb = @ini_get('upload_max_filesize'); goto jG2IN; CksG0: $fH1gb = FileUtil::formattedSizeToBytes($fH1gb); goto SwzxP; QlRi0: if (empty($wLxQY)) { return 0; } goto CksG0; jG2IN: if (empty($fH1gb)) { return 0; } goto fszEn; UYZ3A: if (FileManager::$slowDebug) { return 100; } goto i_CFv; Wb1ve: } return null; } public static function iniFileConfig($GUcFO) { return @ini_get($GUcFO); } public static function securityKey() { goto HhL2D; gHeLv: if (null === $GUcFO) { $GUcFO = md5(json_encode(config('env'))); } goto F57Tz; HhL2D: static $GUcFO = null; goto gHeLv; F57Tz: return $GUcFO; goto YNCBU; YNCBU: } }