]> git.mxchange.org Git - mailer.git/blobdiff - inc/libs/other_functions.php
Extension ext-network continued:
[mailer.git] / inc / libs / other_functions.php
index eefb919622133f6d86a4e1d0d3ba352b6ba58cea..2d49e5802d7817f76d87a4db0ee7a267a60fea5c 100644 (file)
  * $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 - 2009 by Roland Haeder                           *
- * For more information visit: http://www.mxchange.org                  *
+ * Copyright (c) 2009 - 2011 by Mailer Developer Team                   *
+ * For more information visit: http://mxchange.org                      *
  *                                                                      *
  * This program is free software; you can redistribute it and/or modify *
  * it under the terms of the GNU General Public License as published by *
@@ -44,34 +43,21 @@ if (!defined('__SECURITY')) {
 // Displays all SQL queries with num rows, affected rows and timings
 function displayDebugSqls () {
        // Walk through all SQLs
-       $OUT = ''; $SW = 2; $i = 1;
+       $OUT = ''; $i = 1;
        foreach ($GLOBALS['debug_sqls'] as $content) {
                // Translate/add some data
-               $content['sw']       = $SW;
                $content['i']        = $i;
-               $content['num_rows'] = translateComma($content['num_rows']);
-               $content['affected'] = translateComma($content['affected']);
-               $content['sql_str']  = secureString($content['sql_str']);
                $content['timing']   = translateComma($content['timing'] * 1000);
 
                // Load row template
                $OUT .= loadTemplate('admin_other_sqls_row', true, $content);
 
-               // Switch color
-               $SW = 3 - $SW; $i++;
+               // Count one up
+               $i++;
        } // END - foreach
 
        // Load main template
-       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
+       $GLOBALS['page_footer'] .= loadTemplate('admin_other_sqls', true, $OUT);
 }
 
 // [EOF]