All, except security block, include()/require() rewritten to own LOAD_INC()/LOAD_INC_...
[mailer.git] / beg.php
diff --git a/beg.php b/beg.php
index 077e3cdcc55bc2d7d689fc2d0b5a87c137b071b0..e1e41d1e34cb93a2f866a05a7f87899b77e91c9e 100644 (file)
--- a/beg.php
+++ b/beg.php
@@ -46,7 +46,7 @@ $CSS = -1;
 $msg = null;
 
 // Load the required file(s)
-require("inc/config.php");
+require_once("inc/config.php");
 
 // Is the "beg" extension active?
 if (!EXT_IS_ACTIVE("beg")) {
@@ -186,7 +186,7 @@ if (isBooleanConstantAndTrue('mxchange_installed')) {
                        SQL_FREERESULT($result);
 
                        // Include header
-                       require_once(PATH."inc/header.php");
+                       LOAD_INC_ONCE("inc/header.php");
 
                        // Load final template
                        LOAD_TEMPLATE("beg_link");
@@ -205,7 +205,7 @@ if (isBooleanConstantAndTrue('mxchange_installed')) {
                        }
 
                        // Include footer
-                       require_once(PATH."inc/footer.php");
+                       LOAD_INC_ONCE("inc/footer.php");
                } elseif (($status != "CONFIRMED") && ($status != "failed")) {
                        // Maybe locked/unconfirmed account?
                        $msg = GEN_ERROR_CODE_FROM_ACCOUNT_STATUS($status);