X-Git-Url: https://git.mxchange.org/?p=mailer.git;a=blobdiff_plain;f=install.php;h=35fc2cc270193969aa0403e07cadb3771763b1a2;hp=8cab9a1ce16915349606996ecd227006aa5da2d1;hb=d26e8ed6303691be6c5a0eff216494bdd6cfbe8d;hpb=59bd8a9805c51c895a92cc12825f4cbdfd792597 diff --git a/install.php b/install.php index 8cab9a1ce1..35fc2cc270 100644 --- a/install.php +++ b/install.php @@ -42,13 +42,12 @@ ************************************************************************/ // Tell every module / include file we are installing -define('mxchange_installing', true); +$GLOBALS['mxchange_installing'] = true; // Load security system require("inc/libs/security_functions.php"); // Init "action" and "what" -global $what, $action; $GLOBALS['what'] = ""; $GLOBALS['action'] = ""; @@ -65,14 +64,14 @@ require("inc/config.php"); LOAD_INC("inc/header.php"); // Reload page to page=welcome when it is not specified -if (!isset($_GET['page'])) { +if (!REQUEST_ISSET_GET('page')) { LOAD_URL("install.php?page=welcome"); } // END - if // Already installed? -if ((isBooleanConstantAndTrue('mxchange_installed')) && (isBooleanConstantAndTrue('admin_registered'))) { +if ((isInstalled()) && (isAdminRegistered())) { // Add fatal message - addFatalMessage(getMessage('ALREADY_INSTALLED')); + addFatalMessage(__FILE__, __LINE__, getMessage('ALREADY_INSTALLED')); } // END - if // Does something goes wrong?