X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;f=inc%2Ffooter.php;h=058eb4f6ae43ab30cc504c3c7492e61fe41028e4;hb=f3f0f9f9f64ad5816acc84270524f3b48e020087;hp=e2d31c6e6d9d3f2c32375c71ea804043cf53b0c1;hpb=397eb5dee2611cfaa1ff494d73e6785b88109cd6;p=mailer.git diff --git a/inc/footer.php b/inc/footer.php index e2d31c6e6d..058eb4f6ae 100644 --- a/inc/footer.php +++ b/inc/footer.php @@ -1,7 +1,7 @@ 0) { - // Output fatal error messages - LOAD_INC_ONCE("inc/fatal_errors.php"); - } // END - if - - // Shall we display the copyright notice? - if ((empty($frame)) && (empty($_GET['frame'])) && (basename($_SERVER['PHP_SELF']) != "mailid_top.php") && (isBooleanConstantAndTrue('WRITE_FOOTER')) && ($header == "2")) { - // Backlink enabled? - if (isBooleanConstantAndTrue('ENABLE_BACKLINK')) { - // Copyright with backlink, thanks! :-) - LOAD_TEMPLATE("copyright_backlink"); - } else { - // No backlink in Copyright note - LOAD_TEMPLATE("copyright"); - } - } // END - if +// Init page footer +$GLOBALS['page_footer'] = ''; - // Shall we display the parsing time and number of queries? - if ((getConfig('show_timings') == "Y") && (empty($_GET['frame'])) && ($header == "2")) { - // Then display it here - DISPLAY_PARSING_TIME_FOOTER(); - } // END - if +// Footer disabled or already sent? +// 1234 5 54 45 5 5 543 3 321 +if ((((!isset($GLOBALS['footer_sent'])) || (($GLOBALS['footer_sent'] != 1) && ($GLOBALS['footer_sent'] != 2))) && (getOutputMode() != 1))) { + // Run the filter, sweet huh? + runFilterChain('page_footer'); // Load page footer - LOAD_TEMPLATE("page_footer"); - - // And the last closing HTML tag - OUTPUT_HTML(""); + $GLOBALS['page_footer'] .= loadTemplate('page_footer', true); } // END - if // Footer has been reached -$footer = 1; +$GLOBALS['footer_sent'] = 1; -// Output HTML code -OUTPUT_HTML(""); +// Shutdown +shutdown(); -// +// [EOF] ?>