]> git.mxchange.org Git - mailer.git/blobdiff - inc/header.php
Previous fix fixed, a lot constants rewritten (unfinished)
[mailer.git] / inc / header.php
index 40a3a80863329727550f8a8dc56402082baa9a66..6c85f0bfaf70fb095a381cc5dabc69d53aa65c4a 100644 (file)
@@ -39,9 +39,9 @@ if (!defined('__SECURITY')) {
        require($INC);
 }
 
-// Initialize variables
-if (!isset($header)) $header = 0;
+global $header;
 
+// Is the header already sent?
 if (($header != "1") && ($header != "2")) {
        // If not in CSS mode generate the header
        if (($CSS != "1")) {
@@ -86,13 +86,13 @@ if (($header != "1") && ($header != "2")) {
                                ));
 
                                // Installation mode
-                               define('__PAGE_TITLE', INSTALLATION_OF_MXCHANGE);
+                               define('__PAGE_TITLE', getMessage('INSTALLATION_OF_MXCHANGE'));
                        } else {
                                // Configuration not found!
-                               define('__PAGE_TITLE', NO_CONFIG_FOUND_TITLE);
+                               define('__PAGE_TITLE', getMessage('NO_CONFIG_FOUND_TITLE'));
 
                                // Do not add the fatal message in installation mode
-                               if (basename($_SERVER['PHP_SELF']) != "install.php") addFatalMessage(NO_CONFIG_FOUND);
+                               if (basename($_SERVER['PHP_SELF']) != "install.php") addFatalMessage(getMessage('NO_CONFIG_FOUND'));
                        }
                } // END - if
 
@@ -118,7 +118,7 @@ if (($header != "1") && ($header != "2")) {
                LOAD_TEMPLATE("header");
 
                // Include stylesheet
-               include (PATH."inc/stylesheet.php");
+               require_once(PATH."inc/stylesheet.php");
        } // END - if
 
        // Closing HEAD tag