X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;ds=sidebyside;f=inc%2Ffooter.php;h=a036830ee2aaeb15b850d1b87b53f3eadc97f12e;hb=d2c972ef5f68c2f69865aa4f392841d166a419ae;hp=7d6a2f81720e5f98529c9933ef412d8f8d2c986c;hpb=82b619d1983a0c2f7e9996112aaf9561f9e8b811;p=mailer.git diff --git a/inc/footer.php b/inc/footer.php index 7d6a2f8172..a036830ee2 100644 --- a/inc/footer.php +++ b/inc/footer.php @@ -1,7 +1,7 @@ 0) { - // Output fatal error messages - loadIncludeOnce('inc/fatal_errors.php'); - } // END - if - - // Shall we display the copyright notice? - if ((!REQUEST_ISSET_GET('frame')) && (basename($_SERVER['PHP_SELF']) != 'mailid_top.php') && ((getConfig('WRITE_FOOTER') == 'Y') || (isInstalling())) && ($GLOBALS['header_sent'] == '2')) { - // Backlink enabled? - if ((getConfig('ENABLE_BACKLINK') == 'Y') || (isInstalling())) { - // Copyright with backlink, thanks! :-) - LOAD_TEMPLATE('copyright_backlink'); - } else { - // No backlink in Copyright note - LOAD_TEMPLATE('copyright'); - } - } // END - if - - // Shall we display the parsing time and number of queries? - if ((GET_EXT_VERSION('sql_patches') >= '0.4.1') && (getConfig('show_timings') == 'Y') && (!REQUEST_ISSET_GET('frame')) && ($GLOBALS['header_sent'] == '2')) { - // Then display it here - displayParsingTime(); - } // END - if +// Init page footer +$GLOBALS['page_footer'] = ''; - // Shall we include the uberwach snippet? - if ((!REQUEST_ISSET_GET('frame')) && (EXT_IS_ACTIVE('uberwach')) && (getModule() != 'admin') && ($GLOBALS['header_sent'] == '2')) { - // Then display it here - loadUberwachSnippet(); - } // 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))) && (!isCssOutputMode()))) { + // 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 $GLOBALS['footer_sent'] = 1; -// Output HTML code -OUTPUT_HTML(''); - // Shutdown shutdown(); -// +// [EOF] ?>