]> git.mxchange.org Git - mailer.git/blobdiff - inc/libs/other_functions.php
More HTML improvements
[mailer.git] / inc / libs / other_functions.php
index 4cc7b7cf03d4c07f0fda3c540288e59dc7a969c1..42f6b03a91e36d99721e1d27557cdb7302f8a722 100644 (file)
@@ -1,7 +1,7 @@
 <?php
 /************************************************************************
- * MXChange v0.2.1                                    Start: 10/21/2009 *
- * ===============                              Last change: 10/21/2009 *
+ * Mailer v0.2.1-FINAL                                Start: 10/21/2009 *
+ * ===================                          Last change: 10/21/2009 *
  *                                                                      *
  * -------------------------------------------------------------------- *
  * File              : other_functions.php                              *
@@ -62,7 +62,16 @@ function displayDebugSqls () {
        } // END - foreach
 
        // Load main template
-       loadTemplate('admin_other_sqls', false, $OUT);
+       $GLOBALS['page_footer'] .= loadTemplate('admin_other_sqls', true, $OUT);
+}
+
+// Filter for debugging SQLs
+function FILTER_DISPLAY_DEBUG_SQL () {
+       // Shall we display SQL queries?
+       if ((isAdmin()) && (isExtensionInstalledAndNewer('other', '0.2.2')) && (getConfig('display_debug_sqls') == 'Y') && (!isGetRequestParameterSet('frame')) && ($GLOBALS['header_sent'] == 2)) {
+               // Then display it here
+               displayDebugSqls();
+       } // END - if
 }
 
 // [EOF]