X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;ds=sidebyside;f=inc%2Fheader.php;h=6b265c89d399883ee7ebcb5eecbc98406f7971aa;hb=d897dae9f3b01f17fb59f2b96ba067b1a0f417b0;hp=008032e4b5c371d0332b199c1078499844f07d8c;hpb=75ad748a68473ace540251427a74fb781b1145e9;p=mailer.git
diff --git a/inc/header.php b/inc/header.php
index 008032e4b5..6b265c89d3 100644
--- a/inc/header.php
+++ b/inc/header.php
@@ -1,7 +1,7 @@
\n");
- $header = 1;
- }
+ // Closing HEAD tag
+ if (getOutputMode() != 1) outputHtml('');
+ if ($GLOBALS['header_sent'] == '0') $GLOBALS['header_sent'] = 1;
+} // END - if
- // Set unsetted variables
- if (empty($_GET['frame'])) $_GET['frame'] = "";
+// Add BODY tag or not?
+if ((getOutputMode() != 1) && (getOutputMode() != -1) && ($GLOBALS['header_sent'] == 1) && ((getModule() != 'frametester') || (isGetRequestElementSet('frame')))) {
+ loadTemplate('page_body');
+ $GLOBALS['header_sent'] = 2;
+} // END - if
- // Load body or not
- if (((!frameset_active) && ($GLOBALS['module'] != "frametester")) || (($header == "1") && ($GLOBALS['module'] == "frametester") && (!empty($_GET['frame']))) && ($CSS != "1")) {
- // Is the header sent and the script is not the mail confirmation script and not a CSS?
- if (($header == "1") && (basename($_SERVER['PHP_SELF']) != "mailid.php") && ($CSS != "1")) {
- // Add BODY tag
- LOAD_TEMPLATE("page_body");
- $header = 2;
- }
- }
-} else {
- // Something is missing
- die ("Fatal error: You have to define frameset_active!");
-}
-//
+// [EOF]
?>