X-Git-Url: https://git.mxchange.org/?p=mailer.git;a=blobdiff_plain;f=inc%2Fheader.php;h=d87acc2edd4c7cec0b34a2d2d8c9132e16364fa8;hp=bd4c3e3075fe9c6bd8e311130f07cbceeb91dd36;hb=ccf34a2a92d80d01debd84b4b6e1f294d8f90cce;hpb=0437f06b273f885db05736449a952c6eb72086ca diff --git a/inc/header.php b/inc/header.php index bd4c3e3075..d87acc2edd 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 -// 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') || (isGetRequestParameterSet('frame')))) { + loadTemplate('page_body'); + $GLOBALS['header_sent'] = 2; } // END - if -// +// [EOF] ?>