PhyrePanel-mirror/web/app/PhyreConfig.php
2024-05-10 19:12:23 +03:00

21 lines
425 B
PHP

<?php
namespace App;
class PhyreConfig
{
public static function get($key, $default = null)
{
// Parse without sections
$configIni = base_path() . "/phyre-config.ini";
if (file_exists($configIni)) {
$iniArray = parse_ini_file($configIni);
if (isset($iniArray[$key])) {
return $iniArray[$key];
}
}
return $default;
}
}