]> git.mxchange.org Git - mailer.git/blobdiff - inc/header.php
Introduced new image output mode #2
[mailer.git] / inc / header.php
index 48b35d40df7b0cfa3533598647563da490839392..ec433d059814d7d44eb8db719e265e58dce48b3e 100644 (file)
@@ -19,7 +19,7 @@
  * -------------------------------------------------------------------- *
  * Copyright (c) 2003 - 2009 by Roland Haeder                           *
  * Copyright (c) 2009 - 2011 by Mailer Developer Team                   *
- * For more information visit: http://www.mxchange.org                  *
+ * For more information visit: http://mxchange.org                      *
  *                                                                      *
  * This program is free software; you can redistribute it and/or modify *
  * it under the terms of the GNU General Public License as published by *
@@ -51,17 +51,19 @@ if (($GLOBALS['header_sent'] != 1) && ($GLOBALS['header_sent'] != 2)) {
        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') || (isGetRequestParameterSet('frame')))) {
+if ((!isCssOutputMode()) && (!isRawOutputMode()) && ($GLOBALS['header_sent'] == 1) && ((getModule() != 'frametester') || (isGetRequestElementSet('frame')))) {
        loadTemplate('page_body');
        $GLOBALS['header_sent'] = 2;
 } // END - if