]> git.mxchange.org Git - mailer.git/blobdiff - inc/mysql-connect.php
wernis extension is now alpha code (only listing in admin area is missing), naming...
[mailer.git] / inc / mysql-connect.php
index d75d6dacc86234e82eeb9cb376a3c5c14f93ad67..2ce61d8c16b78b208564ea3438b7f0657adebfc0 100644 (file)
@@ -78,7 +78,7 @@ if ((!mxchange_installing) && (mxchange_installed))
        }
 
        // Init configuration arrays
-       $CONFIG = array(
+       $_CONFIG = array(
                'code_length' => 0
        );
        $EXT_CSS_FILES = array();
@@ -111,7 +111,7 @@ if ((!mxchange_installing) && (mxchange_installed))
                                        }
 
                                        // Load the configuration
-                                       $CONFIG = array_merge($CONFIG, SQL_FETCHARRAY($result));
+                                       $_CONFIG = array_merge($_CONFIG, SQL_FETCHARRAY($result));
 
                                        // Initialize include-file-pool
                                        $INC_POOL = array();
@@ -120,7 +120,7 @@ if ((!mxchange_installing) && (mxchange_installed))
                                        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";
 
@@ -178,7 +178,7 @@ if ((!mxchange_installing) && (mxchange_installed))
                                                } 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'] = "";
@@ -193,7 +193,7 @@ if ((!mxchange_installing) && (mxchange_installed))
                                        $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
@@ -222,7 +222,7 @@ if ((!mxchange_installing) && (mxchange_installed))
        ///////////////////////////////////////////////////
 
        // Set CONFIG array
-       $CONFIG = array(
+       $_CONFIG = array(
                'code_length' => 0
        );
 
@@ -240,7 +240,7 @@ if ((!mxchange_installing) && (mxchange_installed))
        $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