<?php
/**
 * ------------------------ 
 *  版权所有  www.tecmz.com
 *  商业版本请购买正版授权使用
 * ------------------------
*/ namespace ModStart\Core\Util; use ModStart\Data\FileManager; class EnvUtil { public static function env($jPfeB) { switch ($jPfeB) { case 'uploadMaxSize': goto eV2Lt; LC_4Q: $NVUsK = min($beK30, $TJo3A); goto DrCy3; W8G5z: $TJo3A = @ini_get('post_max_size'); goto DFYjr; zRhHz: $beK30 = @ini_get('upload_max_filesize'); goto VfNNi; IR49E: $beK30 = FileUtil::formattedSizeToBytes($beK30); goto w6u4h; VfNNi: if (empty($beK30)) { return 0; } goto W8G5z; w6u4h: $TJo3A = FileUtil::formattedSizeToBytes($TJo3A); goto LC_4Q; PCNP7: return min(max($NVUsK, 100 * 1024), 2 * 1024 * 1024); goto XtRYU; DFYjr: if (empty($TJo3A)) { return 0; } goto IR49E; eV2Lt: if (FileManager::$slowDebug) { return 100; } goto zRhHz; DrCy3: $NVUsK -= 10 * 1024; goto PCNP7; XtRYU: } return null; } public static function iniFileConfig($jPfeB) { return @ini_get($jPfeB); } }