<?php
/**
 * ------------------------ 
 *  版权所有  www.tecmz.com
 *  商业版本请购买正版授权使用
 * ------------------------
*/ namespace ModStart\Core\Util; use ModStart\Data\FileManager; class EnvUtil { public static function env($HQKqq) { switch ($HQKqq) { case 'uploadMaxSize': goto Kqhn4; zOe3r: if (empty($S10hC)) { return 0; } goto uoCOO; ZrM6V: $S10hC = @ini_get('upload_max_filesize'); goto zOe3r; uoCOO: $TkCjB = @ini_get('post_max_size'); goto tDTQw; LipxN: $xR91w = min($S10hC, $TkCjB); goto XpSgk; tDTQw: if (empty($TkCjB)) { return 0; } goto Ub641; Kqhn4: if (FileManager::$slowDebug) { return 100; } goto ZrM6V; zRK4g: $TkCjB = FileUtil::formattedSizeToBytes($TkCjB); goto LipxN; XpSgk: $xR91w -= 10 * 1024; goto r8dLX; Ub641: $S10hC = FileUtil::formattedSizeToBytes($S10hC); goto zRK4g; r8dLX: return min(max($xR91w, 100 * 1024), 2 * 1024 * 1024); goto pl9Ux; pl9Ux: } return null; } public static function iniFileConfig($HQKqq) { return @ini_get($HQKqq); } }