<?php
/**
 * ------------------------ 
 *  版权所有  www.tecmz.com
 *  商业版本请购买正版授权使用
 * ------------------------
*/ namespace ModStart\Core\Env; class EnvUtil { public static function parse($yHf3t) { goto Vbkld; uEpMc: if (file_exists($yHf3t)) { foreach (explode('
', file_get_contents($yHf3t)) as $enNSz) { if ($enNSz = trim($enNSz)) { goto bXO5q; bkh8g: $plrwN = trim($yQ4Wg[0]); goto SjSqJ; bWi3Y: switch (strtolower($uTz0e)) { case 'true': case '(true)': $uTz0e = true; break; case 'false': case '(false)': $uTz0e = false; break; case 'empty': case '(empty)': $uTz0e = ''; break; case 'null': case '(null)': $uTz0e = null; break; } goto FHUcF; FHUcF: $hvPWm[$plrwN] = $uTz0e; goto VnsJl; t1gRC: $yQ4Wg = explode('=', $enNSz); goto bkh8g; bXO5q: if (substr($enNSz, 0, 1) === '#') { continue; } goto t1gRC; kGikJ: $uTz0e = trim(join('=', $yQ4Wg)); goto bWi3Y; SjSqJ: array_shift($yQ4Wg); goto kGikJ; VnsJl: } } } goto DzcuW; Vbkld: $hvPWm = array(); goto uEpMc; DzcuW: return $hvPWm; goto Nyj58; Nyj58: } public static function all($yHf3t = null) { goto WQ_XP; HLz4I: if (null === $yHf3t) { $yHf3t = base_path('.env'); } goto fILMh; fILMh: return self::parse($yHf3t); goto Xdzku; WQ_XP: global $BMqEr; goto r8gAF; r8gAF: if (!empty($BMqEr)) { return $BMqEr; } goto HLz4I; Xdzku: } }