<?php
/**
 * ------------------------ 
 *  版权所有  www.tecmz.com
 *  商业版本请购买正版授权使用
 * ------------------------
*/ namespace ModStart\Core\Env; class EnvUtil { public static function parse($fWBvH) { goto MC3gD; xu6sj: return $QN_5p; goto zjaqe; evI5u: if (file_exists($fWBvH)) { foreach (explode('
', file_get_contents($fWBvH)) as $xGjQl) { if ($xGjQl = trim($xGjQl)) { goto CQrlz; ayxRi: switch (strtolower($JiRHR)) { case 'true': case '(true)': $JiRHR = true; break; case 'false': case '(false)': $JiRHR = false; break; case 'empty': case '(empty)': $JiRHR = ''; break; case 'null': case '(null)': $JiRHR = null; break; } goto eRYH_; W75nZ: $JiRHR = trim(join('=', $FSrde)); goto ayxRi; V8pu3: array_shift($FSrde); goto W75nZ; eRYH_: $QN_5p[$F_a6B] = $JiRHR; goto l_scd; WE97n: $FSrde = explode('=', $xGjQl); goto TyvFz; CQrlz: if (substr($xGjQl, 0, 1) === '#') { continue; } goto WE97n; TyvFz: $F_a6B = trim($FSrde[0]); goto V8pu3; l_scd: } } } goto xu6sj; MC3gD: $QN_5p = array(); goto evI5u; zjaqe: } public static function all($fWBvH = null) { goto jNyZt; dDxSc: if (null === $fWBvH) { $fWBvH = base_path('.env'); } goto k9Auj; k9Auj: return self::parse($fWBvH); goto wY90B; jNyZt: global $FI1Et; goto XE2Oa; XE2Oa: if (!empty($FI1Et)) { return $FI1Et; } goto dDxSc; wY90B: } }