]> git.mxchange.org Git - mailer.git/blobdiff - inc/footer.php
bigintval() made to much trouble, uberwach wont be displayed in frames anymore
[mailer.git] / inc / footer.php
index 68432f83c4475df9b7e30d05261abf8cf4ff5229..7d6a2f81720e5f98529c9933ef412d8f8d2c986c 100644 (file)
@@ -45,15 +45,16 @@ 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');
        } // END - if
 
        // Shall we display the copyright notice?
-       if ((!REQUEST_ISSET_GET('frame')) && (basename($_SERVER['PHP_SELF']) != 'mailid_top.php') && (getConfig('WRITE_FOOTER') == 'Y') && ($GLOBALS['header_sent'] == '2')) {
+       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! :-)
@@ -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');