All, except security block, include()/require() rewritten to own LOAD_INC()/LOAD_INC_...
[mailer.git] / confirm.php
index 49197dcc2b3317a8dd7aff21858ddccaf47d89ff..a86970d13f82799d535b75f573bbaf9028185890 100644 (file)
@@ -42,7 +42,7 @@ $GLOBALS['what'] = ""; $GLOBALS['action'] = "";
 $GLOBALS['module'] = "confirm"; $CSS = -1;
 
 // Load the required file(s)
 $GLOBALS['module'] = "confirm"; $CSS = -1;
 
 // Load the required file(s)
-require("inc/config.php");
+require_once("inc/config.php");
 
 // Is the script installed?
 if (defined('mxchange_installed') && (isBooleanConstantAndTrue('mxchange_installed')) && (isBooleanConstantAndTrue('admin_registered'))) {
 
 // Is the script installed?
 if (defined('mxchange_installed') && (isBooleanConstantAndTrue('mxchange_installed')) && (isBooleanConstantAndTrue('admin_registered'))) {
@@ -58,10 +58,8 @@ if (defined('mxchange_installed') && (isBooleanConstantAndTrue('mxchange_install
 
        // Load the URL
        LOAD_URL($URL);
 
        // Load the URL
        LOAD_URL($URL);
-
-       // Redirection should be done here
 } else {
 } else {
-       // You have to configure first!
+       // You have to install first!
        LOAD_URL("install.php");
 }
 
        LOAD_URL("install.php");
 }