]> git.mxchange.org Git - mailer.git/blobdiff - inc/libs/other_functions.php
Filter support added to template engine, functions renamed
[mailer.git] / inc / libs / other_functions.php
index 4cc7b7cf03d4c07f0fda3c540288e59dc7a969c1..eefb919622133f6d86a4e1d0d3ba352b6ba58cea 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                              *
@@ -65,5 +65,14 @@ function displayDebugSqls () {
        loadTemplate('admin_other_sqls', false, $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') && (!isGetRequestElementSet('frame')) && ($GLOBALS['header_sent'] == 2)) {
+               // Then display it here
+               displayDebugSqls();
+       } // END - if
+}
+
 // [EOF]
 ?>