]> git.mxchange.org Git - mailer.git/blobdiff - inc/footer.php
Fix for displayed timings if sql_patches is removed
[mailer.git] / inc / footer.php
index 496ea5cf98fec297e7f1f3a42c92f2da0d970b33..3e945565b563eb051675d2279940429084c61120 100644 (file)
  * -------------------------------------------------------------------- *
  * Kurzbeschreibung  : Den Fuss des HTML-Codes hinzufuegen              *
  * -------------------------------------------------------------------- *
- *                                                                      *
+ * $Revision::                                                        $ *
+ * $Date::                                                            $ *
+ * $Tag:: 0.2.1-FINAL                                                 $ *
+ * $Author::                                                          $ *
+ * Needs to be in all Files and every File needs "svn propset           *
+ * svn:keywords Date Revision" (autoprobset!) at least!!!!!!            *
  * -------------------------------------------------------------------- *
  * Copyright (c) 2003 - 2008 by Roland Haeder                           *
  * For more information visit: http://www.mxchange.org                  *
@@ -39,8 +44,8 @@ if (!defined('__SECURITY')) {
 } // END - if
 
 // Footer disabled or already sent?
-// 1234                              43    34                              4    4                              432    2                              21
-if ((((!isset($GLOBALS['footer_sent'])) || (($GLOBALS['footer_sent'] != "1") && ($GLOBALS['footer_sent'] != "2"))) && ($GLOBALS['output_mode'] != "1")) {
+// 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"))) {
        // Output the generated HTML code or do nothing in direct-mode
        if (getTotalFatalErrors() > 0) {
                // Output fatal error messages
@@ -60,7 +65,7 @@ if ((((!isset($GLOBALS['footer_sent'])) || (($GLOBALS['footer_sent'] != "1") &&
        } // END - if
 
        // Shall we display the parsing time and number of queries?
-       if ((getConfig('show_timings') == "Y") && (!REQUEST_ISSET_GET(('frame'))) && ($GLOBALS['header_sent'] == "2")) {
+       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
                DISPLAY_PARSING_TIME_FOOTER();
        } // END - if
@@ -78,5 +83,8 @@ $GLOBALS['footer_sent'] = 1;
 // Output HTML code
 OUTPUT_HTML("");
 
+// Shutdown
+shutdown();
+
 //
 ?>