X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;f=inc%2Flibs%2Fother_functions.php;h=46a5aa6199ff5312f45edfe19ad3a16d5045df15;hb=c4823d28fd0bd22250b16d73f2034f36fc54abda;hp=811ff5fa2788a6cf5d5329f6aefd09adf2084fda;hpb=222b9cab2b3fb3c8fb01ff524f5d1d7cfbcb61e7;p=mailer.git diff --git a/inc/libs/other_functions.php b/inc/libs/other_functions.php index 811ff5fa27..46a5aa6199 100644 --- a/inc/libs/other_functions.php +++ b/inc/libs/other_functions.php @@ -14,11 +14,9 @@ * $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 * - * Copyright (c) 2009, 2010 by Mailer Developer Team * + * Copyright (c) 2009 - 2011 by Mailer Developer Team * * For more information visit: http://www.mxchange.org * * * * This program is free software; you can redistribute it and/or modify * @@ -45,18 +43,17 @@ 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['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 @@ -66,7 +63,7 @@ function displayDebugSqls () { // 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)) { + if ((isAdmin()) && (isDisplayDebugSqlEnabled()) && (!isGetRequestParameterSet('frame')) && ($GLOBALS['header_sent'] == 2)) { // Then display it here displayDebugSqls(); } // END - if