X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;f=inc%2Fheader.php;h=740e324dd95f19e6483dd58b2ad7c3dae473c411;hb=44238109dbcdd05517f5f64762e9a46463f180f3;hp=5887c2944a267c748759d166e4529ffdf38618eb;hpb=03f62d0b89aa9276ac37f4d616d940fae184d850;p=mailer.git diff --git a/inc/header.php b/inc/header.php index 5887c2944a..740e324dd9 100644 --- a/inc/header.php +++ b/inc/header.php @@ -1,7 +1,7 @@ '); - $GLOBALS['header_sent'] = 1; + if ($GLOBALS['header_sent'] == '0') { + $GLOBALS['header_sent'] = 1; + } // END - if } // END - if -// Load body or not -if ((getModule() != 'frametester') || ((getModule() == 'frametester') && (REQUEST_ISSET_GET('frame'))) || (($GLOBALS['header_sent'] == '1') && (REQUEST_ISSET_GET('frame'))) && (getOutputMode() != '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') && (getOutputMode() != '1')) { - // Add BODY tag - LOAD_TEMPLATE('page_body'); - $GLOBALS['header_sent'] = 2; - } // END - if +// Add BODY tag or not? +if ((!isCssOutputMode()) && (!isRawOutputMode()) && ($GLOBALS['header_sent'] == 1) && ((getModule() != 'frametester') || (isGetRequestElementSet('frame')))) { + loadTemplate('page_body'); + $GLOBALS['header_sent'] = 2; } // END - if -// +// [EOF] ?>