]> andersk Git - sql-web.git/blobdiff - lib/errorhandler.lib.php
Update e-mail address to sql-team
[sql-web.git] / lib / errorhandler.lib.php
index 6f760fc69da6b08d7996ba9593ca62cc02f4d339..5e41979cc0d3883a56433af7074cce8f7b92e90a 100644 (file)
@@ -1,10 +1,13 @@
 <?php
+/*
+       (c) 2005 Joe Presbrey
+*/
 
 function ErrorHandler($errno, $errstr, $errfile, $errline, $errcontext) {
        $error_halt = true;
        $error_type = 'Error';
        $error_msg = " $errstr occured in $errfile on $errline at ".date("D M j G:i:s T Y");
-       $email_to = 'sql@mit.edu';
+       $email_to = 'sql-team@mit.edu';
        $email_from = 'sql@sql.mit.edu';
        switch($errno) {
                case E_USER_NOTICE:
@@ -34,8 +37,8 @@ function ErrorHandler($errno, $errstr, $errfile, $errline, $errcontext) {
        }
        $error_bt = ErrorBacktrace(debug_backtrace());
        $error_msg = $type . ':' . $error_msg . "\n" . $error_bt . "\n\n";
-       if (DEVEL && 0) {
-               echo nl2br($error_msg);
+       if (DEVEL) {
+               echo '<table width="100%" bgcolor="white"><tr><td><pre>'.$error_msg.'</pre></td></tr></table>';
        } else {
                $error_msg .= print_r(get_included_files(),1)."\n";
                $error_msg .= print_r($errcontext,1);
This page took 0.029133 seconds and 4 git commands to generate.