<?php
/**
 * ------------------------ 
 *  版权所有  www.tecmz.com
 *  商业版本请购买正版授权使用
 * ------------------------
*/ namespace ModStart\Core\Env; class EnvUtil { public static function parse($Jtt5u) { goto ILnfS; ILnfS: $gkAzG = array(); goto oDUb3; s6NEz: return $gkAzG; goto u7_hR; oDUb3: if (file_exists($Jtt5u)) { foreach (explode('
', file_get_contents($Jtt5u)) as $Qm87n) { if ($Qm87n = trim($Qm87n)) { goto QI6jH; a9ksr: array_shift($QhMxe); goto Gm381; bdOTg: $gkAzG[$pztz4] = $Q0rz2; goto xlFnd; ZZ4bt: switch (strtolower($Q0rz2)) { case 'true': case '(true)': $Q0rz2 = true; break; case 'false': case '(false)': $Q0rz2 = false; break; case 'empty': case '(empty)': $Q0rz2 = ''; break; case 'null': case '(null)': $Q0rz2 = null; break; } goto bdOTg; WauPs: $QhMxe = explode('=', $Qm87n); goto BZFq5; QI6jH: if (substr($Qm87n, 0, 1) === '#') { continue; } goto WauPs; Gm381: $Q0rz2 = trim(join('=', $QhMxe)); goto ZZ4bt; BZFq5: $pztz4 = trim($QhMxe[0]); goto a9ksr; xlFnd: } } } goto s6NEz; u7_hR: } public static function all($Jtt5u = null) { goto TBatE; TBatE: global $rn24R; goto w5V7G; w5V7G: if (!empty($rn24R)) { return $rn24R; } goto auhQR; auhQR: if (null === $Jtt5u) { $Jtt5u = base_path('.env'); } goto s2taQ; s2taQ: return self::parse($Jtt5u); goto adoBl; adoBl: } }