<?php
/**
 * ------------------------ 
 *  版权所有  www.tecmz.com
 *  商业版本请购买正版授权使用
 * ------------------------
*/ namespace ModStart\Core\Env; class EnvUtil { public static function all($qsQD8 = null) { goto zVxgn; zVxgn: global $af7De; goto xMnDx; SMm5V: if (null === $qsQD8) { $qsQD8 = base_path('.env'); } goto VjcVn; VjcVn: $qmSWW = array(); goto cZvec; cZvec: if (file_exists($qsQD8)) { foreach (explode('
', file_get_contents($qsQD8)) as $oYaTJ) { if ($oYaTJ = trim($oYaTJ)) { goto C9LKd; EhqvS: switch (strtolower($tHq0l)) { case 'true': case '(true)': $tHq0l = true; break; case 'false': case '(false)': $tHq0l = false; break; case 'empty': case '(empty)': $tHq0l = ''; break; case 'null': case '(null)': $tHq0l = null; break; } goto WWM7m; Aahxt: array_shift($jT5GX); goto MKhKK; C9LKd: if (substr($oYaTJ, 0, 1) === '#') { continue; } goto dxWgM; kBcyw: $kh68j = trim($jT5GX[0]); goto Aahxt; WWM7m: $qmSWW[$kh68j] = $tHq0l; goto ZzB3d; dxWgM: $jT5GX = explode('=', $oYaTJ); goto kBcyw; MKhKK: $tHq0l = trim(join('=', $jT5GX)); goto EhqvS; ZzB3d: } } } goto Cthy7; Cthy7: return $qmSWW; goto lD7Yh; xMnDx: if (!empty($af7De)) { return $af7De; } goto SMm5V; lD7Yh: } }