X-Git-Url: https://git.mxchange.org/?p=mailer.git;a=blobdiff_plain;f=inc%2Fheader.php;h=7dbc6b3e324e7825e7828fd7c5285a4f985ab5a1;hp=740e324dd95f19e6483dd58b2ad7c3dae473c411;hb=da5c63bacddced77a951cbe7b223f314885a6c87;hpb=20741b93fd58620af677a7f1039ffd16ea6ec689 diff --git a/inc/header.php b/inc/header.php index 740e324dd9..7dbc6b3e32 100644 --- a/inc/header.php +++ b/inc/header.php @@ -18,7 +18,7 @@ * $Author:: $ * * -------------------------------------------------------------------- * * Copyright (c) 2003 - 2009 by Roland Haeder * - * Copyright (c) 2009 - 2011 by Mailer Developer Team * + * Copyright (c) 2009 - 2013 by Mailer Developer Team * * For more information visit: http://mxchange.org * * * * This program is free software; you can redistribute it and/or modify * @@ -43,29 +43,30 @@ if (!defined('__SECURITY')) { } // END - if // Init header -$GLOBALS['page_header'] = ''; +$GLOBALS['__page_header'] = ''; // Is the header already sent? -if (($GLOBALS['header_sent'] != 1) && ($GLOBALS['header_sent'] != 2)) { +if (($GLOBALS['__header_sent'] != 1) && ($GLOBALS['__header_sent'] != 2)) { // Set default HTTP status to "200 OK" setHttpStatus('200 OK'); // If not in CSS mode generate the header - if (!isCssOutputMode()) { + if ((!isCssOutputMode()) && (!isAjaxOutputMode()) && (!isImageOutputMode())) { // Prepare the header for HTML output loadHtmlHeader(); } // END - if // Closing HEAD tag - if ($GLOBALS['header_sent'] == '0') { - $GLOBALS['header_sent'] = 1; + 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') || (isGetRequestElementSet('frame')))) { +// @TODO Find a way to not use direct module comparison +if ((!isCssOutputMode()) && (!isRawOutputMode()) && ($GLOBALS['__header_sent'] == 1) && (getModule() != 'frametester') && (!isFramesetModeEnabled())) { loadTemplate('page_body'); - $GLOBALS['header_sent'] = 2; + $GLOBALS['__header_sent'] = 2; } // END - if // [EOF]