From 2246c8d6002660488914015a46cab8898f9a3943 Mon Sep 17 00:00:00 2001 From: Graham Eames Date: Mon, 6 Mar 2006 17:30:29 +0000 Subject: [PATCH] Broken images begone! Who wants to go next? git-svn-id: file:///svn/phpbb/trunk@5606 89ea8834-ac86-4346-8a33-228a782c2dd0 --- phpBB/includes/db/dbal.php | 60 ++++++++++++++++++++++++-------------- 1 file changed, 38 insertions(+), 22 deletions(-) diff --git a/phpBB/includes/db/dbal.php b/phpBB/includes/db/dbal.php index 737872dd8f..4de7f2d5ee 100644 --- a/phpBB/includes/db/dbal.php +++ b/phpBB/includes/db/dbal.php @@ -254,7 +254,7 @@ class dbal */ function sql_report($mode, $query = '') { - global $cache, $starttime, $phpbb_root_path; + global $cache, $starttime, $phpbb_root_path, $user; if (empty($_GET['explain'])) { @@ -278,27 +278,43 @@ class dbal $mtime = explode(' ', microtime()); $totaltime = $mtime[0] + $mtime[1] - $starttime; - echo ' - - - Explain - - - -
phpBB LogoSQL Report      
-
- - - - -
Page generated in ' . round($totaltime, 4) . " seconds with {$this->num_queries} queries" . (($this->cache_num_queries) ? " + {$this->cache_num_queries} " . (($this->cache_num_queries == 1) ? 'query' : 'queries') . ' returning data from cache' : '') . '
Time spent on MySQL queries: ' . round($this->sql_time, 5) . 's | Time spent on PHP: ' . round($totaltime - $this->sql_time, 5) . 's
- - -
- ' . $this->sql_report . '
-
- - '; + echo ''; + echo ''; + echo ''; + echo ''; + echo 'SQL Report'; + echo ''; + echo ''; + echo ''; + echo ''; + echo '
'; + echo ' '; + echo '
'; + echo '
'; + echo ' '; + echo '
'; + echo '

SQL Report

'; + echo ' + + + +
Page generated in ' . round($totaltime, 4) . " seconds with {$this->num_queries} queries" . (($this->cache_num_queries) ? " + {$this->cache_num_queries} " . (($this->cache_num_queries == 1) ? 'query' : 'queries') . ' returning data from cache' : '') . '
Time spent on MySQL queries: ' . round($this->sql_time, 5) . 's | Time spent on PHP: ' . round($totaltime - $this->sql_time, 5) . 's
+ + +
' . $this->sql_report . '
'; + echo '
'; + echo ' '; + echo '
'; + echo '
'; + echo ' '; + echo '
'; + echo ''; + echo ''; + exit; break;