All, except security block, include()/require() rewritten to own LOAD_INC()/LOAD_INC_...
[mailer.git] / index.php
index 312719aa9317d0ee3d0ccb217c6b5e11a5becbc0..fc1220d82995f79ef09d1c2f335d9ee7e41dc342 100644 (file)
--- a/index.php
+++ b/index.php
@@ -43,12 +43,12 @@ $GLOBALS['what'] = ""; $GLOBALS['action'] = "";
 $GLOBALS['module'] = "index";
 
 // Load config.php
-require("inc/config.php");
+require_once("inc/config.php");
 
 // Is the script installed?
 if (isBooleanConstantAndTrue('mxchange_installed')) {
        // Header
-       require(PATH."inc/header.php");
+       LOAD_INC("inc/header.php");
 
        // Fix missing array elements here
        if (getConfig('index_delay') == null)  $_CONFIG['index_delay']  = 0;
@@ -81,9 +81,9 @@ if (isBooleanConstantAndTrue('mxchange_installed')) {
        }
 
        // Footer
-       require(PATH."inc/footer.php");
+       LOAD_INC("inc/footer.php");
 } else {
-       // You have to configure first!
+       // You have to install first!
        LOAD_URL("install.php");
 }