All, except security block, include()/require() rewritten to own LOAD_INC()/LOAD_INC_...
[mailer.git] / inc / header.php
index 6c85f0bfaf70fb095a381cc5dabc69d53aa65c4a..b04464c288b41d04cecd8a1d69f84c2685bae5d1 100644 (file)
@@ -80,10 +80,10 @@ if (($header != "1") && ($header != "2")) {
                                define('__PAGE_TITLE', html_entity_decode($TITLE));
                        } elseif ((!isBooleanConstantAndTrue('mxchange_installed')) || (!isBooleanConstantAndTrue('admin_registered'))) {
                                // Load language file because it was missing in installation finalizer step... *sigh*
-                               require_once(sprintf("%sinc/language/install_%s.php",
-                                       PATH,
+                               $FQFN = sprintf("inc/language/install_%s.php",
                                        GET_LANGUAGE()
-                               ));
+                               );
+                               LOAD_INC_ONCE($FQFN);
 
                                // Installation mode
                                define('__PAGE_TITLE', getMessage('INSTALLATION_OF_MXCHANGE'));
@@ -118,7 +118,7 @@ if (($header != "1") && ($header != "2")) {
                LOAD_TEMPLATE("header");
 
                // Include stylesheet
-               require_once(PATH."inc/stylesheet.php");
+               LOAD_INC_ONCE("inc/stylesheet.php");
        } // END - if
 
        // Closing HEAD tag