X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;ds=sidebyside;f=inc%2Fheader.php;h=6b265c89d399883ee7ebcb5eecbc98406f7971aa;hb=d897dae9f3b01f17fb59f2b96ba067b1a0f417b0;hp=1cd75b12c390618e3aecb4a26ef8a799867294f9;hpb=414570c5081d337bb6c28dcf521bd8bca02f69e7;p=mailer.git diff --git a/inc/header.php b/inc/header.php index 1cd75b12c3..6b265c89d3 100644 --- a/inc/header.php +++ b/inc/header.php @@ -1,7 +1,7 @@ "); - $GLOBALS['header_sent'] = 1; + if (getOutputMode() != 1) outputHtml(''); + if ($GLOBALS['header_sent'] == '0') $GLOBALS['header_sent'] = 1; } // END - if -// Load body or not -if (($GLOBALS['module'] != "frametester") || (($GLOBALS['module'] == "frametester") && (REQUEST_ISSET_GET(('frame')))) || (($GLOBALS['header_sent'] == "1") && (REQUEST_ISSET_GET(('frame')))) && ($GLOBALS['output_mode'] != "1")) { - // Is the header sent and the script is not the mail confirmation script and not a CSS? - if (($GLOBALS['header_sent'] == "1") && (basename($_SERVER['PHP_SELF']) != "mailid.php") && ($GLOBALS['output_mode'] != "1")) { - // Add BODY tag - LOAD_TEMPLATE("page_body"); - $GLOBALS['header_sent'] = 2; - } // END - if +// 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 -// +// [EOF] ?>