function LoadConfig() { $config_path = "/usr/local/opensauce/config.ini"; if (empty($config_path)) { die("ERROR: config.ini path not yet set in config.php<br/>"); } $config_file = parse_ini_file($config_path, true); if ($config_file == FALSE) { die("ERROR: failed to load config.ini from the defined path. (" . $config_path . ")<br/>"); } $config = new ServerConfig(); $config->ReadBlock($config_file); return $config; }