From a813a46adc7eefa9ec3835e07f3b57ab5d870d27 Mon Sep 17 00:00:00 2001 From: admin Date: Tue, 3 Oct 2006 19:17:41 +0000 Subject: --- system/libraries/Profiler.php | 27 +++++++++++++++------------ 1 file changed, 15 insertions(+), 12 deletions(-) diff --git a/system/libraries/Profiler.php b/system/libraries/Profiler.php index 6626190b1..9da73b03e 100644 --- a/system/libraries/Profiler.php +++ b/system/libraries/Profiler.php @@ -74,20 +74,20 @@ class CI_Profiler { // be modified. We also might want to make this data available to be logged $output = "\n\n"; - $output .= '
'; + $output .= '
'; $output .= "\n"; $output .= '  '.$this->obj->lang->line('profiler_benchmarks').'  '; $output .= "\n"; - $output .= "\n\n\n"; + $output .= "\n\n
\n"; foreach ($profile as $key => $val) { $key = ucwords(str_replace(array('_', '-'), ' ', $key)); - $output .= "\n"; + $output .= "\n"; } $output .= "
".$key."  ".$val."
".$key."  ".$val."
\n"; - $output .= "
\n\n"; + $output .= "
"; return $output; } @@ -98,7 +98,7 @@ class CI_Profiler { function _compile_queries() { $output = "\n\n"; - $output .= '
'; + $output .= '
'; $output .= "\n"; $output .= '  '.$this->obj->lang->line('profiler_queries').'  '; $output .= "\n"; @@ -117,14 +117,14 @@ class CI_Profiler { { foreach ($this->obj->db->queries as $val) { - $output .= '
'; + $output .= '
'; $output .= $val; $output .= "
\n"; } } } - $output .= "
\n\n"; + $output .= "
"; return $output; } @@ -132,9 +132,9 @@ class CI_Profiler { // -------------------------------------------------------------------- function _compile_post() - { + { $output = "\n\n"; - $output .= '
'; + $output .= '
'; $output .= "\n"; $output .= '  '.$this->obj->lang->line('profiler_post_data').'  '; $output .= "\n"; @@ -145,7 +145,7 @@ class CI_Profiler { } else { - $output .= "\n\n\n"; + $output .= "\n\n
\n"; foreach ($_POST as $key => $val) { @@ -154,12 +154,12 @@ class CI_Profiler { $key = "'".$key."'"; } - $output .= "\n"; + $output .= "\n"; } $output .= "
$_POST[".$key."]  ".htmlspecialchars(stripslashes($val))."
$_POST[".$key."]  ".htmlspecialchars(stripslashes($val))."
\n"; } - $output .= "
\n\n"; + $output .= "
"; return $output; } @@ -177,11 +177,14 @@ class CI_Profiler { $obj =& get_instance(); $output = '
'; + $output .= "
"; $output .= $this->_compile_benchmarks(); $output .= $this->_compile_post(); $output .= $this->_compile_queries(); + $output .= '
'; + return $output; } -- cgit v1.2.3-24-g4f1b