<?php
/**
 * ------------------------ 
 *  版权所有  www.tecmz.com
 *  商业版本请购买正版授权使用
 * ------------------------
*/ namespace ModStart\Core\Env; class EnvUtil { public static function parse($aYJAK) { goto sGvPY; sGvPY: $PR68h = array(); goto Sc87V; Sc87V: if (file_exists($aYJAK)) { foreach (explode('
', file_get_contents($aYJAK)) as $B9ZnB) { if ($B9ZnB = trim($B9ZnB)) { goto rriVX; QoPOF: switch (strtolower($F6Fus)) { case 'true': case '(true)': $F6Fus = true; break; case 'false': case '(false)': $F6Fus = false; break; case 'empty': case '(empty)': $F6Fus = ''; break; case 'null': case '(null)': $F6Fus = null; break; } goto RuZJZ; rriVX: if (substr($B9ZnB, 0, 1) === '#') { continue; } goto aXdUf; omJeN: array_shift($TDAzu); goto Bc7Vh; RuZJZ: $PR68h[$RTHJ6] = $F6Fus; goto IIB3i; SPVJv: $RTHJ6 = trim($TDAzu[0]); goto omJeN; aXdUf: $TDAzu = explode('=', $B9ZnB); goto SPVJv; Bc7Vh: $F6Fus = trim(join('=', $TDAzu)); goto QoPOF; IIB3i: } } } goto n7Q99; n7Q99: return $PR68h; goto wZI8k; wZI8k: } public static function all($aYJAK = null) { goto WVy_z; Y0f1a: if (!empty($K2v99)) { return $K2v99; } goto DVm8Q; DVm8Q: if (null === $aYJAK) { $aYJAK = base_path('.env'); } goto GIfz4; GIfz4: return self::parse($aYJAK); goto Tn3XX; WVy_z: global $K2v99; goto Y0f1a; Tn3XX: } }