/** * Reads configuration & set Lobby according to it */ public static function config($db = false) { if (file_exists(L_DIR . "/config.php")) { $config = (include L_DIR . "/config.php"); if (is_array($config) && count($config) != 0) { self::$config = array_merge(self::$config, $config); $config = self::$config; if ($db === true) { return $config['db']; } else { if ($config['debug'] === true) { ini_set("display_errors", "on"); self::$debug = true; } self::$lid = $config['lobbyID']; // The Global Lobby installation ID } } else { return false; } } else { return false; } }