}
// Init configuration arrays
- $CONFIG = array(
+ $_CONFIG = array(
'code_length' => 0
);
$EXT_CSS_FILES = array();
}
// Load the configuration
- $CONFIG = array_merge($CONFIG, SQL_FETCHARRAY($result));
+ $_CONFIG = array_merge($_CONFIG, SQL_FETCHARRAY($result));
// Initialize include-file-pool
$INC_POOL = array();
require_once(PATH."inc/mysql-manager.php"); // Functions which interact with the database
// Run daily reset
- if ((date("d", $CONFIG['last_update']) != date("d", time()) || (DEBUG_MODE == true)) && (!mxchange_installing) && (mxchange_installed) && (admin_registered) && (!isset($_GET['register'])) && ($CSS != 1)) {
+ if ((date("d", $_CONFIG['last_update']) != date("d", time()) || (DEBUG_MODE == true)) && (!mxchange_installing) && (mxchange_installed) && (admin_registered) && (!isset($_GET['register'])) && ($CSS != 1)) {
// Do daily things in external PHP file but only when script is completely setup
$INC_POOL[] = PATH."inc/reset/reset_daily.php";
} elseif (($GLOBALS['module'] == "index") || ($GLOBALS['module'] == "login")) {
// Set 'what' value to 'welcome' in guest and member menu
$GLOBALS['what'] = "welcome";
- if (!empty($CONFIG['index_home'])) $GLOBALS['what'] = $CONFIG['index_home'];
+ if (!empty($_CONFIG['index_home'])) $GLOBALS['what'] = $_CONFIG['index_home'];
} else {
// Anything else like begging link
$GLOBALS['what'] = "";
$dummy = CHECK_MODULE($GLOBALS['module']);
if ($dummy == "done") COUNT_MODULE($GLOBALS['module']);
unset($dummy);
- if ($CONFIG['activate_xchange'] > 0) activateExchange();
+ if ($_CONFIG['activate_xchange'] > 0) activateExchange();
} else {
// If you will read following error message you probably need to contact me (webmaster@mxchange.org)
// and download the sql-upgrades extension from my server. Please ask me which SQL file(s) you need to
///////////////////////////////////////////////////
// Set CONFIG array
- $CONFIG = array(
+ $_CONFIG = array(
'code_length' => 0
);
$installPhp = basename($_SERVER['PHP_SELF']);
if (($installPhp != "install.php") && ($CSS != "1") && ($CSS != -1)) {
// Redirect to the installation system
- LOAD_URL(URL."/install.php");
+ LOAD_URL("install.php");
}
// Double-check installation mode