From e237e1eebd66b30a1bb6734826ed5e3cd2ea1fd7 Mon Sep 17 00:00:00 2001 From: Robert Sesek Date: Tue, 2 Aug 2005 04:36:22 +0000 Subject: [PATCH] Back-porting the trunk back onto branch --- functions.php | 9 ++- kernel.php | 4 +- template.php | 11 ++- xml.php | 213 +++++++++++++++++++++++--------------------------- 4 files changed, 117 insertions(+), 120 deletions(-) diff --git a/functions.php b/functions.php index a3919bd..2ce67ae 100644 --- a/functions.php +++ b/functions.php @@ -112,8 +112,9 @@ class Functions * * @param str The text of the file to be streamed * @param str File name of the new file + * @param bool Whether or not to die after streaming the file */ - function download_file($file, $name) + function download_file($file, $name, $exit = true) { if ($this->is_browser('ie') OR $this->is_browser('opera') OR $this->is_browser('safari')) { @@ -132,7 +133,11 @@ class Functions header('Pragma: public'); print($file); - exit; + + if ($exit) + { + exit; + } } /** diff --git a/kernel.php b/kernel.php index 3b6ddac..d2df2d4 100644 --- a/kernel.php +++ b/kernel.php @@ -328,8 +328,8 @@ class Shared_Object_Framework } $output = "\n
\n"; - $output .= "\n\n\t\n"; - $output .= "\n\n\t\n\n
$prefix: $title
$message
\n
\n"; + $output .= "\n\n\t$prefix: $title\n"; + $output .= "\n\n\t$message\n\n\n
\n"; if ($return) { diff --git a/template.php b/template.php index 03341ad..2a5a371 100644 --- a/template.php +++ b/template.php @@ -292,8 +292,15 @@ class DB_Template $debug .= "\n\t
  • Source Control: $scinfo
  • "; // query information - $debug .= "\n\t
  • Total Queries: " . sizeof($_isso->db->history) . " (sanitize($_SERVER['REQUEST_URI']) . ((strpos($_SERVER['REQUEST_URI'], '?') !== false) ? '&query=1' : '?query=1') . "\">?)
  • "; - + $debug .= "\n\t
  • Total Queries: " . sizeof($_isso->db->history) . " (sanitize($_SERVER['REQUEST_URI']) . ((strpos($_SERVER['REQUEST_URI'], '?') !== false) ? '&query=1' : '?query=1') . "\">?)
  • "; + + // total execution time + if (defined('ISSO_MT_START')) + { + $_isso->load('functions'); + $debug .= "\n\t
  • Total Execution Time: " . round($_isso->funct->fetch_microtime_diff(ISSO_MT_START), 10) . "
  • "; + } + // debug notices $debug .= "\n\t
  • \n\t\t