From 82f4266e56e76c214504537bdba284963a3c7d75 Mon Sep 17 00:00:00 2001 From: Robert Sesek Date: Thu, 16 Aug 2007 20:44:53 +0000 Subject: [PATCH] Removing the SVN constant option and the ISSO_MT_START (thanks to $_SERVER['REQUEST_TIME']) * Template.php: (BSTemplate::flush): No longer display SVN information and we can use $_SERVER[REQUEST_TIME] so we don't need to define ISSO_MT_START * App.php: Remove documentation about constants --- App.php | 6 ------ Template.php | 13 ++----------- 2 files changed, 2 insertions(+), 17 deletions(-) diff --git a/App.php b/App.php index b4c3c9b..778be63 100644 --- a/App.php +++ b/App.php @@ -22,12 +22,6 @@ /** * ISSO Application Root (App.php) * -* Constants: -* ISSO_MT_START - Define the microtime() value at the top of your -* script and this will calculate the total execution -* time -* SVN - Place SVN $Id keyword to get SVN revision information on output -* * @package ISSO */ diff --git a/Template.php b/Template.php index 9056132..70d8f5a 100644 --- a/Template.php +++ b/Template.php @@ -264,17 +264,8 @@ class BSTemplate $debugBlock = ''; if (BSApp::GetDebug()) - { - if (defined('SVN') AND preg_match('#^\$Id:?#', constant('SVN'))) - { - $debugBlock .= preg_replace('#\$' . 'Id: (.+?) ([0-9].+?) [0-9]{4}-[0-9]{2}-[0-9]{2} [0-9]{2}:[0-9]{2}:[0-9]{2}(.+?) (.+?) \$#', "\n
\n" . '
\1 — r\2
', constant('SVN')); - } - - if (defined('ISSO_MT_START')) - { - $debugBlock .= "\n
Executed in " . round(BSFunctions::FetchMicrotimeDiff(ISSO_MT_START), 10) . ' seconds
'; - } - + { + $debugBlock .= "\n
Executed in " . round(BSFunctions::FetchMicrotimeDiff($_SERVER['REQUEST_TIME']), 10) . ' seconds
'; $debugBlock .= "\n
" . BSApp::GetDebugList() . "
"; $optlist = array(); -- 2.43.5