<?php
/**
 * ------------------------ 
 *  版权所有  www.tecmz.com
 *  商业版本请购买正版授权使用
 * ------------------------
*/ namespace ModStart\Core\Util; use ModStart\Data\FileManager; class EnvUtil { public static function env($dwwIV) { switch ($dwwIV) { case 'uploadMaxSize': goto f67yH; f67yH: if (FileManager::$slowDebug) { return 100; } goto ejnJs; LXjS5: $hhcxf = FileUtil::formattedSizeToBytes($hhcxf); goto pvcyM; ho6rO: $yNOaD -= 10 * 1024; goto XBLQE; XBLQE: return min(max($yNOaD, 100 * 1024), 2 * 1024 * 1024); goto W_LSH; xx1Jw: if (empty($hhcxf)) { return 0; } goto gizxG; gizxG: $RSUfm = @ini_get('post_max_size'); goto QZw1c; QZw1c: if (empty($RSUfm)) { return 0; } goto LXjS5; ejnJs: $hhcxf = @ini_get('upload_max_filesize'); goto xx1Jw; pvcyM: $RSUfm = FileUtil::formattedSizeToBytes($RSUfm); goto jd_eP; jd_eP: $yNOaD = min($hhcxf, $RSUfm); goto ho6rO; W_LSH: } return null; } public static function iniFileConfig($dwwIV) { return @ini_get($dwwIV); } public static function securityKey() { goto EKNIJ; SeOa5: return $dwwIV; goto fhSYd; U_z6f: if (null === $dwwIV) { $dwwIV = md5(json_encode(config('env'))); } goto SeOa5; EKNIJ: static $dwwIV = null; goto U_z6f; fhSYd: } }