X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;f=inc%2Ffooter.php;h=7d6a2f81720e5f98529c9933ef412d8f8d2c986c;hb=e0eb0432f1049f2b645a84d964d7d40adc8a11bb;hp=e691b2ce62b86154637b764460063d9ab70c1f9f;hpb=53a6857b021b42835709b11e2287d11986d8b2c1;p=mailer.git diff --git a/inc/footer.php b/inc/footer.php index e691b2ce62..7d6a2f8172 100644 --- a/inc/footer.php +++ b/inc/footer.php @@ -45,8 +45,9 @@ if (!defined('__SECURITY')) { // 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'))) && ($GLOBALS['output_mode'] != '1'))) { +if ((((!isset($GLOBALS['footer_sent'])) || (($GLOBALS['footer_sent'] != '1') && ($GLOBALS['footer_sent'] != '2'))) && (getOutputMode() != '1'))) { // Output the generated HTML code or do nothing in direct-mode + // @TODO Rewrite these all into filters if (getTotalFatalErrors() > 0) { // Output fatal error messages loadIncludeOnce('inc/fatal_errors.php'); @@ -70,6 +71,12 @@ if ((((!isset($GLOBALS['footer_sent'])) || (($GLOBALS['footer_sent'] != '1') && displayParsingTime(); } // END - if + // 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 + // Load page footer LOAD_TEMPLATE('page_footer');