X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;f=inc%2Fheader.php;h=2f5f4a1527d4f337041dd42ab66fd1b707f1da39;hb=e3f273938e4e3b8045853ab4bd746d01fa8ade04;hp=8fa1486a728132568023dcc1b5a7b632fee2337d;hpb=b38e97d5419a80763653dc2cd61f0c418f2a8177;p=mailer.git diff --git a/inc/header.php b/inc/header.php index 8fa1486a72..2f5f4a1527 100644 --- a/inc/header.php +++ b/inc/header.php @@ -20,6 +20,7 @@ * svn:keywords Date Revision" (autoprobset!) at least!!!!!! * * -------------------------------------------------------------------- * * Copyright (c) 2003 - 2009 by Roland Haeder * + * Copyright (c) 2009, 2010 by Mailer Developer Team * * For more information visit: http://www.mxchange.org * * * * This program is free software; you can redistribute it and/or modify * @@ -48,8 +49,11 @@ $GLOBALS['page_header'] = ''; // Is the header already sent? 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 (getOutputMode() != 1) { + if (!isCssOutputMode()) { // Prepare the header for HTML output loadHtmlHeader(); } // END - if @@ -59,7 +63,7 @@ if (($GLOBALS['header_sent'] != 1) && ($GLOBALS['header_sent'] != 2)) { } // END - if // Add BODY tag or not? -if ((getOutputMode() != 1) && (getOutputMode() != -1) && ($GLOBALS['header_sent'] == 1) && ((getModule() != 'frametester') || (isGetRequestParameterSet('frame')))) { +if ((!isCssOutputMode()) && (!isRawOutputMode()) && ($GLOBALS['header_sent'] == 1) && ((getModule() != 'frametester') || (isGetRequestParameterSet('frame')))) { loadTemplate('page_body'); $GLOBALS['header_sent'] = 2; } // END - if