From 10d5771270ac051137bb95d1cb2eb762cfa76b58 Mon Sep 17 00:00:00 2001 From: Robert Sesek Date: Tue, 26 Dec 2006 23:16:18 +0000 Subject: [PATCH] Merging the query debug block from TRUNK back to the 2.1.x branch --- kernel.php | 15 +++++++++++++-- 1 file changed, 13 insertions(+), 2 deletions(-) diff --git a/kernel.php b/kernel.php index 6654871..9002dbe 100644 --- a/kernel.php +++ b/kernel.php @@ -1189,6 +1189,17 @@ class ISSO if (is_object($this->modules[ISSO_DB_LAYER])) { $debug .= "\n\t
  • Total Queries: " . sizeof($this->modules[ISSO_DB_LAYER]->history) . " (sanitize($_SERVER['REQUEST_URI']) . ((strpos($_SERVER['REQUEST_URI'], '?') !== false) ? '&query=1' : '?query=1') . "\">?)
  • "; + + $queries = $this->modules[ISSO_DB_LAYER]->history; + $querydebug = "
    \n" . '' . "\n\t" . ''; + foreach ($queries AS $query) + { + $querydebug .= "\n\t"; + $querydebug .= "\n\t\t\n\t"; + } + + $querydebug .= "\n
    Query Debug
    "; + $querydebug .= "\n\t\t\t$query[query]\n\n\t\t\t
    ($query[time])
    \n\n\t\t
    \n\n\n"; } // total execution time @@ -1227,8 +1238,8 @@ class ISSO } $debug .= "\n"; - - $debug = "\n\n\n
    \n\n
    \n" . $this->message('Debug Information', $debug, 1, true, false) . "\n
    \n\n\n"; + + $debug = "\n\n\n
    \n\n
    \n" . $this->message('Debug Information', $debug, 1, true, false) . "\n
    $querydebug\n\n\n"; } return $debug; -- 2.22.5