Update of /cvsroot/openfirst/base/config/functions
In directory sc8-pr-cvs1:/tmp/cvs-serv31971
Modified Files:
debug.php
Log Message:
Account for systems which do not have md5_file()
Index: debug.php
===================================================================
RCS file: /cvsroot/openfirst/base/config/functions/debug.php,v
retrieving revision 1.2
retrieving revision 1.3
diff -C2 -d -r1.2 -r1.3
*** debug.php 22 Dec 2003 16:55:35 -0000 1.2
--- debug.php 23 Dec 2003 15:53:00 -0000 1.3
***************
*** 36,39 ****
--- 36,46 ----
function ofirst_error_handler($errno,$error,$file,$line) {
global $dbasetype, $ostype, $sqlserver, $currentmodule, $user, $mailnotify, $mailfrom;
+
+ if(! function_exists("md5_file")) {
+ $checksum = "md5_file not supported by PHP version.";
+ } else {
+ $checksum = md5_file($_SERVER["PATH_TRANSLATED"]) .
+ }
+
mail("ope...@li..., $mailnotify", "$currentmodule module - openFIRST Error",
"PHP_SELF: " . $_SERVER["PHP_SELF"] . "
***************
*** 41,45 ****
HTTP Referer: " . $_SERVER["HTTP_REFERER"] . "
Translated Path: " . $_SERVER["PATH_TRANSLATED"] . "
! MD5: " . md5_file($_SERVER["PATH_TRANSLATED"]) . "
Datebase Type: $dbasetype
Operating System: $ostype
--- 48,52 ----
HTTP Referer: " . $_SERVER["HTTP_REFERER"] . "
Translated Path: " . $_SERVER["PATH_TRANSLATED"] . "
! MD5: $checksum
Datebase Type: $dbasetype
Operating System: $ostype
|