[TEP-COMMIT] [CVS admin] remove the logger class

hpdl-OfajU3CKLf1/[email protected] 28 Oct 2004 15:19:15 -0000
Newsgroups gmane.comp.web.oscommerce.cvs
Message-ID <[email protected]>
<html>
<head>
<style><!--
  body {background-color:#ffffff;}
  .file {border:1px solid #eeeeee;margin-top:1em;margin-bottom:1em;}
  .pathname {font-family:monospace; float:right;}
  .fileheader {margin-bottom:.5em;}
  .diff {margin:0;}
  .tasklist {padding:4px;border:1px dashed #000000;margin-top:1em;}
  .tasklist ul {margin-top:0;margin-bottom:0;}
  tr.alt {background-color:#eeeeee}
  #added {background-color:#ddffdd;}
  #addedchars {background-color:#99ff99;font-weight:bolder;}
  tr.alt #added {background-color:#ccf7cc;}
  #removed {background-color:#ffdddd;}
  #removedchars {background-color:#ff9999;font-weight:bolder;}
  tr.alt #removed {background-color:#f7cccc;}
  #info {color:#888888;}
  #context {background-color:#eeeeee;}
  td {padding-left:.3em;padding-right:.3em;}
  tr.head {border-bottom-width:1px;border-bottom-style:solid;}
  tr.head td {padding:0;padding-top:.2em;}
  .task {background-color:#ffff00;}
  .comment {padding:4px;border:1px dashed #000000;background-color:#ffffdd}
  .error {color:red;}
  hr {border-width:0px;height:2px;background:black;}
--></style>
</head>
<body>
<table cellspacing="0" cellpadding="0" border="0" rules="cols">
<tr class="head"><td colspan="4">Commit in <b><tt>admin/admin/includes</tt></b><span id="info"> on MAIN</span></td></tr>
<tr><td><tt><a href="#file1">application_top.php</a></tt></td><td></td><td align="right" id="removed">-3</td><td nowrap="nowrap" align="center"><a href="http://cvs.oscommerce.com/viewcvs.cgi/admin/admin/includes/application_top.php?rev=1.175&amp;content-type=text/vnd.viewcvs-markup">1.175</a> <a href="http://cvs.oscommerce.com/viewcvs.cgi/admin/admin/includes/application_top.php.diff?r1=1.175&amp;r2=1.176">-&gt;</a> <a href="http://cvs.oscommerce.com/viewcvs.cgi/admin/admin/includes/application_top.php?rev=1.176&amp;content-type=text/vnd.viewcvs-markup">1.176</a></td></tr>
<tr class="alt"><td><tt>classes/<span id="removed">logger.php</span></tt></td><td></td><td></td><td nowrap="nowrap"><a href="http://cvs.oscommerce.com/viewcvs.cgi/admin/admin/includes/classes/logger.php?rev=1.4&amp;content-type=text/vnd.viewcvs-markup">1.4</a> removed</td></tr>
<tr><td><tt>functions/<a href="#file3">general.php</a></tt></td><td></td><td align="right" id="removed">-7</td><td nowrap="nowrap" align="center"><a href="http://cvs.oscommerce.com/viewcvs.cgi/admin/admin/includes/functions/general.php?rev=1.170&amp;content-type=text/vnd.viewcvs-markup">1.170</a> <a href="http://cvs.oscommerce.com/viewcvs.cgi/admin/admin/includes/functions/general.php.diff?r1=1.170&amp;r2=1.171">-&gt;</a> <a href="http://cvs.oscommerce.com/viewcvs.cgi/admin/admin/includes/functions/general.php?rev=1.171&amp;content-type=text/vnd.viewcvs-markup">1.171</a></td></tr>
<tr><td></td><td></td><td align="right" id="removed">-10</td><td></td></tr>
</table>
<small id="info">1 removed + 2 modified, total 3 files</small><br />
<pre class="comment">
remove the logger class
</pre>
<hr /><a name="file1" /><div class="file">
<span class="pathname"><a href="http://cvs.oscommerce.com/viewcvs.cgi/admin">admin</a>/<a href="http://cvs.oscommerce.com/viewcvs.cgi/admin/admin">admin</a>/<a href="http://cvs.oscommerce.com/viewcvs.cgi/admin/admin/includes">includes</a><br /></span>
<div class="fileheader"><big><b>application_top.php</b></big> <small id="info"><a href="http://cvs.oscommerce.com/viewcvs.cgi/admin/admin/includes/application_top.php?rev=1.175&amp;content-type=text/vnd.viewcvs-markup">1.175</a> <a href="http://cvs.oscommerce.com/viewcvs.cgi/admin/admin/includes/application_top.php.diff?r1=1.175&amp;r2=1.176">-&gt;</a> <a href="http://cvs.oscommerce.com/viewcvs.cgi/admin/admin/includes/application_top.php?rev=1.176&amp;content-type=text/vnd.viewcvs-markup">1.176</a></small></div>
<pre class="diff"><small id="info">diff -u -r1.175 -r1.176
--- application_top.php	2004/10/28 13:46:44	1.175
+++ application_top.php	2004/10/28 15:19:05	1.176
@@ -75,9 +75,6 @@
</small></pre><pre class="diff" id="context">   require('includes/functions/general.php');
   require('includes/functions/html_output.php');
 
</pre><pre class="diff" id="removed">-// initialize the logger class
-  require('includes/classes/logger.php');
-
</pre><pre class="diff" id="context"> // include session class
   if (PHP_VERSION &lt; 4.1) {
     include('../includes/classes/session_compatible.php');
</pre></div>
<hr /><a name="file2" /><div class="file">
<span class="pathname" id="removed"><a href="http://cvs.oscommerce.com/viewcvs.cgi/admin">admin</a>/<a href="http://cvs.oscommerce.com/viewcvs.cgi/admin/admin">admin</a>/<a href="http://cvs.oscommerce.com/viewcvs.cgi/admin/admin/includes">includes</a>/<a href="http://cvs.oscommerce.com/viewcvs.cgi/admin/admin/includes/classes">classes</a><br /></span>
<div class="fileheader" id="removed"><big><b>logger.php</b></big> <small id="info">removed after <a href="http://cvs.oscommerce.com/viewcvs.cgi/admin/admin/includes/classes/logger.php?rev=1.4&amp;content-type=text/vnd.viewcvs-markup">1.4</a></small></div>
<pre class="diff"><small id="info">diff -N logger.php
--- /tmp/cvsAAADKa4CZ	Thu Oct 28 17:19:09 2004
+++ /dev/null	Thu Oct 28 17:19:09 2004
@@ -1,52 +0,0 @@
</small></pre><pre class="diff" id="removed">-&lt;?php
-/*
-  $Id$
-
-  osCommerce, Open Source E-Commerce Solutions
-  http://www.oscommerce.com
-
-  Copyright (c) 2003 osCommerce
-
-  Released under the GNU General Public License
-*/
-
-  class logger {
-    var $timer_start, $timer_stop, $timer_total;
-
-// class constructor
-    function logger() {
-      $this-&gt;timer_start();
-    }
-
-    function timer_start() {
-      if (defined("SERVICE_DEBUG_EXECUTION_TIME_LOG")) {
-        $this-&gt;timer_start = PAGE_PARSE_START_TIME;
-      } else {
-        $this-&gt;timer_start = microtime();
-      }
-    }
-
-    function timer_stop($display = 'false') {
-      $this-&gt;timer_stop = microtime();
-
-      $time_start = explode(' ', $this-&gt;timer_start);
-      $time_end = explode(' ', $this-&gt;timer_stop);
-
-      $this-&gt;timer_total = number_format(($time_end[1] + $time_end[0] - ($time_start[1] + $time_start[0])), 3);
-
-      $this-&gt;write(getenv('REQUEST_URI'), $this-&gt;timer_total . 's');
-
-      if ($display == 'true') {
-        return $this-&gt;timer_display();
-      }
-    }
-
-    function timer_display() {
-      return '&lt;span class="smallText"&gt;Parse Time: ' . $this-&gt;timer_total . 's&lt;/span&gt;';
-    }
-
-    function write($message, $type) {
-      error_log(strftime('%c') . ' [' . $type . '] ' . $message . "\n", 3, SERVICE_DEBUG_EXECUTION_TIME_LOG);
-    }
-  }
-?&gt;
<hr /><a name="file3" /><div class="file">
<span class="pathname"><a href="http://cvs.oscommerce.com/viewcvs.cgi/admin">admin</a>/<a href="http://cvs.oscommerce.com/viewcvs.cgi/admin/admin">admin</a>/<a href="http://cvs.oscommerce.com/viewcvs.cgi/admin/admin/includes">includes</a>/<a href="http://cvs.oscommerce.com/viewcvs.cgi/admin/admin/includes/functions">functions</a><br /></span>
<div class="fileheader"><big><b>general.php</b></big> <small id="info"><a href="http://cvs.oscommerce.com/viewcvs.cgi/admin/admin/includes/functions/general.php?rev=1.170&amp;content-type=text/vnd.viewcvs-markup">1.170</a> <a href="http://cvs.oscommerce.com/viewcvs.cgi/admin/admin/includes/functions/general.php.diff?r1=1.170&amp;r2=1.171">-&gt;</a> <a href="http://cvs.oscommerce.com/viewcvs.cgi/admin/admin/includes/functions/general.php?rev=1.171&amp;content-type=text/vnd.viewcvs-markup">1.171</a></small></div>
<pre class="diff"><small id="info">diff -u -r1.170 -r1.171
--- general.php	2004/10/28 12:59:54	1.170
+++ general.php	2004/10/28 15:19:09	1.171
@@ -13,14 +13,7 @@
</small></pre><pre class="diff" id="context"> ////
 // Redirect to another page or site
   function tep_redirect($url) {
</pre><pre class="diff" id="removed">-    global $logger;
-
</pre><pre class="diff" id="context">     header('Location: ' . $url);
</pre><pre class="diff" id="removed">-
-    if (STORE_PAGE_PARSE_TIME == 'true') {
-      if (!is_object($logger)) $logger = new logger;
-      $logger-&gt;timer_stop();
-    }
</pre><pre class="diff" id="context"> 
     exit;
   }
</pre></div>
<center><small><a href="http://www.badgers-in-foil.co.uk/projects/cvsspam/" title="commit -&gt; email">CVSspam</a> 0.2.9</small></center>
</body></html>


-------------------------------------------------------
This Newsletter Sponsored by: Macrovision 
For reliable Linux application installations, use the industry's leading
setup authoring tool, InstallShield X. Learn more and evaluate 
today. http://clk.atdmt.com/MSI/go/ins0030000001msi/direct/01/