X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;f=inc%2Fheader.php;h=ce68e543888a0d9fd59473b1f0740b7dc5891420;hb=93cd46744c402fa7b140e5f1d6b07281fc5558bf;hp=cd22a87054acce3f2e7d37ab4998be2f7ca7bbe5;hpb=64c8349613addc3da2242c5cd6b99d64e3fb5f8e;p=mailer.git diff --git a/inc/header.php b/inc/header.php index cd22a87054..ce68e54388 100644 --- a/inc/header.php +++ b/inc/header.php @@ -44,14 +44,14 @@ if (!defined('__SECURITY')) { } // Is the header already sent? -if (($GLOBALS['header_sent'] != '1') && ($GLOBALS['header_sent'] != '2')) { +if (($GLOBALS['header_sent'] != 1) && ($GLOBALS['header_sent'] != 2)) { // If not in CSS mode generate the header - if ((getOutputMode() != '1')) { - // Generate header - $TITLE = ''; - + if (getOutputMode() != 1) { // Config and database connection valid? if ((isConfigLocalLoaded()) && (isConfigLoaded()) && (SQL_IS_LINK_UP()) && (isExtensionActive('sql_patches'))) { + // Init title + $TITLE = ''; + // Title decoration enabled? if ((getConfig('enable_title_deco') == 'Y') && (getConfig('title_left') != '')) $TITLE .= trim(getConfig('title_left'))." "; @@ -123,12 +123,12 @@ if (($GLOBALS['header_sent'] != '1') && ($GLOBALS['header_sent'] != '2')) { } // END - if // Closing HEAD tag - if (getOutputMode() != '1') outputHtml(''); + if (getOutputMode() != 1) outputHtml(''); if ($GLOBALS['header_sent'] == 0) $GLOBALS['header_sent'] = 1; } // END - if // Add BODY tag or not? -if ((getOutputMode() != '1') && ($GLOBALS['header_sent'] == 1)) { +if ((getOutputMode() != 1) && (getOutputMode() != -1) && ($GLOBALS['header_sent'] == 1) && ((getModule() != 'frametester') || (isGetRequestElementSet('frame')))) { loadTemplate('page_body'); $GLOBALS['header_sent'] = 2; } // END - if