[Openfirst-cvscommit] base/includes/functions debug.php,1.1,1.2
Brought to you by:
xtimg
From: Astronouth7303 <ast...@us...> - 2005-05-26 21:00:44
|
Update of /cvsroot/openfirst/base/includes/functions In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv25684/includes/functions Modified Files: debug.php Log Message: radical changes, with more to come Index: debug.php =================================================================== RCS file: /cvsroot/openfirst/base/includes/functions/debug.php,v retrieving revision 1.1 retrieving revision 1.2 diff -C2 -d -r1.1 -r1.2 *** debug.php 25 May 2005 21:44:29 -0000 1.1 --- debug.php 26 May 2005 21:00:03 -0000 1.2 *************** *** 35,40 **** // Handles errors by displaying a message and contacting openFIRST // developers for assistance. ! function ofirst_error_handler($errno,$error,$file,$line) { ! global $dbasetype, $ostype, $sqlserver, $currentmodule, $user, $mailnotify, $mailfrom, $lastquery; global $NO_ADD_BUG; $dberrno = ofirst_dberrno(); --- 35,43 ---- // Handles errors by displaying a message and contacting openFIRST // developers for assistance. ! function ofirst_error_handler($errno,$error,$file,$line,$context) { ! global $DBaseType, $Encryption, $Title, $Version, $sqlServer, $sqlUser, $sqlPassword, $sqlDatabase, ! $sqlConnection, $PassSaveDisabled, $regEnabled, $Server, $BasePath, $fBasePath, $Home, ! $StylePath, $fStylePath, $Header, $Footer, $MailNotify, $MailFrom; ! global $osType, $currentmodule, $user, $lastquery; global $NO_ADD_BUG; $dberrno = ofirst_dberrno(); *************** *** 42,63 **** if(! function_exists("md5_file")) { ! $checksum = "md5_file not supported by PHP version."; } else { ! $checksum = md5_file($_SERVER["PATH_TRANSLATED"]); } $details = "MD5: $checksum ! Database Type: $dbasetype ! Operating System: $ostype ! SQL Server: $sqlserver Current Module: $currentmodule Error Number: $errno"; $specifics = "PHP_SELF: {$_SERVER['PHP_SELF']} ! HTTP Host: {$_SERVER['HTTP_HOST']} ! HTTP Referer: {$_SERVER['HTTP_REFERER']} ! Translated Path: {$_SERVER['PATH_TRANSLATED']} ! User (if exists): {$user->user} ! User Access Level: {$user->membertype} Error Description: {$error} in {$file} on line {$line}"; if ($dberrno != 0) { --- 45,77 ---- if(! function_exists("md5_file")) { ! $checksum = "na"; } else { ! if (isset($_SERVER['SCRIPT_FILENAME'])) { ! $checksum = md5_file($_SERVER['SCRIPT_FILENAME']); ! } } $details = "MD5: $checksum ! Database Type: $DBaseType ! Operating System: $osType ! SQL Server: $sqlServer Current Module: $currentmodule Error Number: $errno"; $specifics = "PHP_SELF: {$_SERVER['PHP_SELF']} ! HTTP Host: {$_SERVER['HTTP_HOST']}"; ! ! if (isset($_SERVER['HTTP_REFERER'])) { ! $specifics .= " ! HTTP Referer: {$_SERVER['HTTP_REFERER']}"; ! } ! $specifics .= " ! Translated Path: {$_SERVER['SCRIPT_FILENAME']}"; ! if (isset($user) ) { ! $specifics .= " ! User: {$user->user} ! User Access Level: {$user->membertype}"; ! } ! $specifics .= " Error Description: {$error} in {$file} on line {$line}"; if ($dberrno != 0) { *************** *** 70,74 **** if ($NO_ADD_BUG) { - // if ($errno == 2) return; echo "<br /><div class=\"error\"><h2>Error:</h2><dl>"; echo "<dt>Details:</dt><dd><pre>"; --- 84,87 ---- |