]> git.mxchange.org Git - mailer.git/blobdiff - install.php
More improved SQL queries
[mailer.git] / install.php
index 9f954414b405236f7eb011848b0f9f89832793b3..b6f2416d36315c62db112e7984b0c574303ea633 100644 (file)
@@ -45,7 +45,7 @@
 define('mxchange_installing', true);
 
 // Load security system
-require("inc/libs/security_functions.php");
+require_once("inc/libs/security_functions.php");
 
 // Init "action" and "what"
 global $what, $action;
@@ -59,10 +59,10 @@ $CSS = 0;
 $GLOBALS['module'] = "install";
 
 // Load config file
-require("inc/config.php");
+require_once("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'])) {
@@ -72,23 +72,23 @@ if (!isset($_GET['page'])) {
 // Already installed?
 if ((isBooleanConstantAndTrue('mxchange_installed')) && (isBooleanConstantAndTrue('admin_registered'))) {
        // Add fatal message
-       ADD_FATAL(ALREADY_INSTALLED);
+       addFatalMessage(ALREADY_INSTALLED);
 } // END - if
 
 // Does something goes wrong?
-if ((sizeof($FATAL == 0)) && (empty($FATAL[0]))) {
+if (getTotalFatalErrors() == 0) {
        // Add main installation table
        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");
 
 //
 ?>