X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;f=inc%2Fheader.php;h=0f592edb2bfaecb6d22ce9959f16637364e03fc4;hb=e68f2f7b0a55fa31eb7ce5baf844dca40f11abea;hp=4f3f2a4e754f7253abd633148d289deb21ff7671;hpb=8a9324b2d931f54f54f4319fd7234910af77012c;p=mailer.git diff --git a/inc/header.php b/inc/header.php index 4f3f2a4e75..0f592edb2b 100644 --- a/inc/header.php +++ b/inc/header.php @@ -1,7 +1,7 @@ "); - $header = 1; -} - -// Set unsetted variables -if (empty($_GET['frame'])) $_GET['frame'] = ""; - -// Load body or not -if ((($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; - } -} - -// + if ($GLOBALS['header_sent'] == '0') { + $GLOBALS['header_sent'] = 1; + } // END - if +} // END - if + +// Add BODY tag or not? +if ((!isCssOutputMode()) && (!isRawOutputMode()) && ($GLOBALS['header_sent'] == 1) && ((getModule() != 'frametester') || (isGetRequestParameterSet('frame')))) { + loadTemplate('page_body'); + $GLOBALS['header_sent'] = 2; +} // END - if + +// [EOF] ?>