Removing the SVN constant option and the ISSO_MT_START (thanks to $_SERVER['REQUEST_T...
authorRobert Sesek <rsesek@bluestatic.org>
Thu, 16 Aug 2007 20:44:53 +0000 (20:44 +0000)
committerRobert Sesek <rsesek@bluestatic.org>
Thu, 16 Aug 2007 20:44:53 +0000 (20:44 +0000)
* 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
Template.php

diff --git a/App.php b/App.php
index b4c3c9bbd3fedc878abd06cd23b1f6ad8633eb82..778be638caebf4a456f10cdf56e992a6eb86debf 100644 (file)
--- a/App.php
+++ b/App.php
 /**
 * 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
 */
 
index 90561324d6420711bc0dba734f3adfeb9fc5271c..70d8f5a2e9939b90c75e423d5a79ff95fa6e673e 100644 (file)
@@ -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<br />\n" . '<div align="center"><strong>\1</strong> &mdash; r\2</div>', constant('SVN'));
-                       }
-                       
-                       if (defined('ISSO_MT_START'))
-                       {
-                               $debugBlock .= "\n<div align=\"center\">Executed in " . round(BSFunctions::FetchMicrotimeDiff(ISSO_MT_START), 10) . ' seconds</div>';
-                       }
-                       
+               {                       
+                       $debugBlock .= "\n<div align=\"center\">Executed in " . round(BSFunctions::FetchMicrotimeDiff($_SERVER['REQUEST_TIME']), 10) . ' seconds</div>';                        
                        $debugBlock .= "\n<br /><div align=\"center\">" . BSApp::GetDebugList() . "</div>";
                        
                        $optlist = array();