<?php
/**
 * ------------------------ 
 *  版权所有  www.tecmz.com
 *  商业版本请购买正版授权使用
 * ------------------------
*/ namespace ModStart\Core\Env; class EnvUtil { public static function all($oU8qf = null) { goto zb5ts; zb5ts: if (null === $oU8qf) { $oU8qf = base_path('.env'); } goto PGlLK; it_2e: return $nWxZB; goto dvuLZ; f70ph: if (file_exists($oU8qf)) { foreach (explode('
', file_get_contents($oU8qf)) as $jAgZg) { if ($jAgZg = trim($jAgZg)) { goto m6iVN; ciqXj: $nWxZB[$U9AsU] = $ohYVl; goto Rj1zr; EFSyn: $U9AsU = trim($U9AsU); goto PXpIl; BPK7x: switch (strtolower($ohYVl)) { case 'true': case '(true)': $ohYVl = true; break; case 'false': case '(false)': $ohYVl = false; break; case 'empty': case '(empty)': $ohYVl = ''; break; case 'null': case '(null)': $ohYVl = null; break; } goto ciqXj; PXpIl: $ohYVl = trim($ohYVl); goto BPK7x; m6iVN: if (substr($jAgZg, 0, 1) === '#') { continue; } goto kU_x7; kU_x7: list($U9AsU, $ohYVl) = explode('=', $jAgZg); goto EFSyn; Rj1zr: } } } goto it_2e; PGlLK: $nWxZB = array(); goto f70ph; dvuLZ: } }