All, except security block, include()/require() rewritten to own LOAD_INC()/LOAD_INC_...
[mailer.git] / mailid_top.php
index 1c9405aa35e33954a29f2f39ba1002091c8cabf8..513b898ab6c9d7540d0ac2d2047cb7f36cf70d54 100644 (file)
@@ -42,7 +42,7 @@ $GLOBALS['what'] = ""; $GLOBALS['action'] = "";
 $GLOBALS['module'] = "mailid";  $CSS = 0;
 
 // Load the required file(s)
-require("inc/config.php");
+require_once("inc/config.php");
 
 if (isBooleanConstantAndTrue('mxchange_installed')) {
        // Is the extension active
@@ -62,7 +62,7 @@ if (isBooleanConstantAndTrue('mxchange_installed')) {
        // 01        1        12            2    2            21    1                   22     10
        if (($url_uid) > 0 && (($url_mid > 0) || ($url_bid > 0)) && (getTotalFatalErrors() == 0)) {
                // No image? Then output header
-               if ($mode != "img") require_once(PATH."inc/header.php");
+               if ($mode != "img") LOAD_INC_ONCE("inc/header.php");
 
                // Maybe he wants to confirm an email?
                if ($url_mid > 0) {
@@ -348,7 +348,7 @@ if (isBooleanConstantAndTrue('mxchange_installed')) {
                // Insert footer if no image
                if ($mode != "img") {
                        // Write footer
-                       require_once(PATH."inc/footer.php");
+                       LOAD_INC_ONCE("inc/footer.php");
                } // END - if
        }
 } elseif ($mode != "img") {