Commit ed88b39c authored by Eric - kg6wxc's avatar Eric - kg6wxc
Browse files

load the default user-settings.ini file

Load the '-default' file 1st, subsequent user-settings and customs will override the defaults.
Should allow for some easier future changes.
parent 881e1ac8
......@@ -43,9 +43,14 @@ ini_set('memory_limit', '128M');
$INCLUDE_DIR = "..";
//check for users user-settings.ini file and use it if it exists
//inform the user and exit if the file does not exist
global $USER_SETTINGS;
//load the default ini file 1st, later user-settings and custom settings will override these.
if (file_exists($INCLUDE_DIR . "/scripts/user-settings.ini-default")) {
$USER_SETTINGS = parse_ini_file($INCLUDE_DIR . "/scripts/user-settings.ini-default");
}
//check for users user-settings.ini file and use it if it exists
//inform the user and exit if the file does not exist.
if (file_exists($INCLUDE_DIR . "/scripts/user-settings.ini")) {
$USER_SETTINGS = parse_ini_file($INCLUDE_DIR . "/scripts/user-settings.ini");
}else {
......
......@@ -50,6 +50,11 @@ header("Expires: 0");
$INCLUDE_DIR = "..";
//load the default ini file 1st, later user-settings and custom settings will override these.
if (file_exists($INCLUDE_DIR . "/scripts/user-settings.ini-default")) {
$USER_SETTINGS = parse_ini_file($INCLUDE_DIR . "/scripts/user-settings.ini-default");
}
//check for users user-settings.ini file and use it if it exists
//use the default one if it does not
global $USER_SETTINGS;
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment