<?php
/**
 * ------------------------ 
 *  版权所有  www.tecmz.com
 *  商业版本请购买正版授权使用
 * ------------------------
*/ namespace ModStart\Core\Util; class EnvUtil { public static function env($ax5t3) { switch ($ax5t3) { case 'uploadMaxSize': goto SMJ9W; BR2Gz: $sg5_F -= 10 * 1024; goto d_yzy; SMJ9W: $Q7iHR = @ini_get('upload_max_filesize'); goto EHR34; PlnUo: $N5l9E = FileUtil::formattedSizeToBytes($N5l9E); goto iWvQX; bPAel: $Q7iHR = FileUtil::formattedSizeToBytes($Q7iHR); goto PlnUo; y_lRa: $N5l9E = @ini_get('post_max_size'); goto AEc7o; iWvQX: $sg5_F = min($Q7iHR, $N5l9E); goto BR2Gz; EHR34: if (empty($Q7iHR)) { return 0; } goto y_lRa; d_yzy: return min(max($sg5_F, 100 * 1024), 2 * 1024 * 1024); goto lJ3Cz; AEc7o: if (empty($N5l9E)) { return 0; } goto bPAel; lJ3Cz: } return null; } public static function iniFileConfig($ax5t3) { return @ini_get($ax5t3); } }