All, except security block, include()/require() rewritten to own LOAD_INC()/LOAD_INC_...
[mailer.git] / mailid.php
index 4778ba91301b7975b4b28e092ed4bf2b5a5c74ba..d1bae743d07eda8393ac191dcb1d2ff5581e6847 100644 (file)
@@ -42,7 +42,7 @@ $GLOBALS['what'] = ""; $GLOBALS['action'] = "";
 $GLOBALS['module'] = "mailid"; $CSS = -1;
 
 // Load the required file(s)
-require("inc/config.php");
+require_once("inc/config.php");
 
 if (isBooleanConstantAndTrue('mxchange_installed')) {
        // Is the extension active
@@ -156,7 +156,7 @@ if (isBooleanConstantAndTrue('mxchange_installed')) {
                                                }
 
                                                // Add header
-                                               require_once(PATH."inc/header.php");
+                                               LOAD_INC_ONCE("inc/header.php");
 
                                                // Was that mail a valid one?
                                                if ($VALID) {
@@ -216,7 +216,7 @@ if (isBooleanConstantAndTrue('mxchange_installed')) {
                }
        } else {
                // Include footer
-               require_once(PATH."inc/footer.php");
+               LOAD_INC_ONCE("inc/footer.php");
        }
 } else {
        // You have to install first!