Platon Technologies
not logged in Login Registration
EnglishSlovak
open source software development celebrating 10 years of open source development! Thursday, March 28, 2024

Diff for phpWebLogAnalyzer/test.php between version 1.10 and 1.11

version 1.10, 2002/03/28 21:49:57 version 1.11, 2002/04/03 20:33:26
Line 26  function php_error_handler($errno, $errs
Line 26  function php_error_handler($errno, $errs
                                 'message' => $errstr)                                  'message' => $errstr)
                         as $key => $val) {                          as $key => $val) {
   
                 echo "<tr><td>";                  echo "<tr><td align=left valign=top>";
                 echo "<b>".htmlspecialchars($key)."</b>";                  echo "<b>".htmlspecialchars($key)."</b>";
                 echo "</td><td>";                  echo "</td><td>";
                 echo htmlspecialchars($val);                  echo nl2br(htmlspecialchars($val));
                 echo "</td></tr>";                  echo "</td></tr>";
         }          }
   
Line 38  function php_error_handler($errno, $errs
Line 38  function php_error_handler($errno, $errs
   
 function pear_error_handler($err_obj)  function pear_error_handler($err_obj)
 {  {
         $error_string = $err_obj->getMessage() . ' | ' . $err_obj->getDebugInfo();          $error_string = $err_obj->getMessage() . "\n" . $err_obj->getDebugInfo();
         trigger_error($error_string, E_USER_ERROR);          trigger_error($error_string, E_USER_ERROR);
 }  }
   
Line 49  include("./phpWebLogAnalyzer.inc.php");
Line 49  include("./phpWebLogAnalyzer.inc.php");
 PEAR::setErrorHandling(PEAR_ERROR_CALLBACK, 'pear_error_handler');  PEAR::setErrorHandling(PEAR_ERROR_CALLBACK, 'pear_error_handler');
   
 $weblog = new Web_Log("mysql://test:test@localhost/test");  $weblog = new Web_Log("mysql://test:test@localhost/test");
   
 $weblog->enableTruncateNames();  $weblog->enableTruncateNames();
 $weblog->enableRawLog();  $weblog->enableRawLog();
 //$weblog->disableRawLog();  $weblog->disableRawLog();
   
 //$weblog->disableProperty('session_id');  //$weblog->disableProperty('session_id');
 $weblog->registerAccess(3);  $weblog->registerAccess(3);

Legend:
Removed from v.1.10  
changed lines
  Added in v.1.11

Platon Group <platon@platon.org> http://platon.org/
Copyright © 2002-2006 Platon Group
Site powered by Metafox CMS
Go to Top