<?php
/**
 * ------------------------ 
 *  版权所有  www.tecmz.com
 *  商业版本请购买正版授权使用
 * ------------------------
*/ namespace ModStart\Core\Env; class EnvUtil { public static function parse($ypGny) { goto faSRL; kzbjX: return $u_vzo; goto l51IC; AUk5O: if (file_exists($ypGny)) { foreach (explode('
', file_get_contents($ypGny)) as $PWzv9) { if ($PWzv9 = trim($PWzv9)) { goto HCy_c; ZVmrF: array_shift($q26cr); goto r01GJ; SQUpY: $B34tD = trim($q26cr[0]); goto ZVmrF; HCy_c: if (substr($PWzv9, 0, 1) === '#') { continue; } goto Y1_kF; uymHH: $u_vzo[$B34tD] = $Xz28r; goto cQeQy; r01GJ: $Xz28r = trim(join('=', $q26cr)); goto McM3Y; McM3Y: switch (strtolower($Xz28r)) { case 'true': case '(true)': $Xz28r = true; break; case 'false': case '(false)': $Xz28r = false; break; case 'empty': case '(empty)': $Xz28r = ''; break; case 'null': case '(null)': $Xz28r = null; break; } goto uymHH; Y1_kF: $q26cr = explode('=', $PWzv9); goto SQUpY; cQeQy: } } } goto kzbjX; faSRL: $u_vzo = array(); goto AUk5O; l51IC: } public static function all($ypGny = null) { goto t_534; t_534: global $aXjEi; goto GfRtQ; GfRtQ: if (!empty($aXjEi)) { return $aXjEi; } goto MPwzm; MPwzm: if (null === $ypGny) { $ypGny = base_path('.env'); } goto BlVJe; BlVJe: return self::parse($ypGny); goto Bub0y; Bub0y: } }