X-Git-Url: https://git.mxchange.org/?p=mailer.git;a=blobdiff_plain;f=install.php;h=35fc2cc270193969aa0403e07cadb3771763b1a2;hp=a700f22dab2d17f1202c36405d92c6c43482a112;hb=1a74df058945a82578f830daa35ac45c2f85913c;hpb=49ffe0a4fb551d0965e97db1ad4ff12f13f4b9ad diff --git a/install.php b/install.php index a700f22dab..35fc2cc270 100644 --- a/install.php +++ b/install.php @@ -42,18 +42,17 @@ ************************************************************************/ // 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'] = ""; // Set CSS variable for "normal mode" -$CSS = 0; +$GLOBALS['output_mode'] = 0; // Set module $GLOBALS['module'] = "install"; @@ -62,17 +61,17 @@ $GLOBALS['module'] = "install"; require("inc/config.php"); // Header -require(PATH."inc/header.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(ALREADY_INSTALLED); + addFatalMessage(__FILE__, __LINE__, getMessage('ALREADY_INSTALLED')); } // END - if // Does something goes wrong? @@ -81,14 +80,14 @@ if (getTotalFatalErrors() == 0) { LOAD_TEMPLATE("install_header"); // Here start's our installtion stuff - require_once(PATH."inc/install-inc.php"); + LOAD_INC_ONCE("inc/install-inc.php"); // Close main installation table LOAD_TEMPLATE("install_footer"); } // Footer -require(PATH."inc/footer.php"); +LOAD_INC("inc/footer.php"); // ?>