<?php
/**
 * ------------------------ 
 *  版权所有  www.tecmz.com
 *  商业版本请购买正版授权使用
 * ------------------------
*/ namespace ModStart\Core\Env; class EnvUtil { public static function parse($WF06r) { goto oeU_s; kpQ9W: return $wdPwZ; goto AGEFL; FoFSW: if (file_exists($WF06r)) { foreach (explode('
', file_get_contents($WF06r)) as $BGbF6) { if ($BGbF6 = trim($BGbF6)) { goto rbcbO; sEBxI: array_shift($TsqdX); goto Ax3eo; jwAet: $lxIPA = trim($TsqdX[0]); goto sEBxI; Ax3eo: $knQyJ = trim(join('=', $TsqdX)); goto Dz87k; d01x1: $TsqdX = explode('=', $BGbF6); goto jwAet; hOYnJ: $wdPwZ[$lxIPA] = $knQyJ; goto N6u1y; rbcbO: if (substr($BGbF6, 0, 1) === '#') { continue; } goto d01x1; Dz87k: switch (strtolower($knQyJ)) { case 'true': case '(true)': $knQyJ = true; break; case 'false': case '(false)': $knQyJ = false; break; case 'empty': case '(empty)': $knQyJ = ''; break; case 'null': case '(null)': $knQyJ = null; break; } goto hOYnJ; N6u1y: } } } goto kpQ9W; oeU_s: $wdPwZ = array(); goto FoFSW; AGEFL: } public static function all($WF06r = null) { goto zp5me; jWjwU: if (null === $WF06r) { $WF06r = base_path('.env'); } goto lo58L; lq1PU: if (!empty($ZPjLh)) { return $ZPjLh; } goto jWjwU; lo58L: return self::parse($WF06r); goto TaoGt; zp5me: global $ZPjLh; goto lq1PU; TaoGt: } }