]> andersk Git - sql-web.git/blobdiff - lib/joe/errors.lib.php
git-svn-id: svn://presbrey.mit.edu/php/php@100 a142d4bd-2cfb-0310-9673-cb33a7e74f58
[sql-web.git] / lib / joe / errors.lib.php
index 6f760fc69da6b08d7996ba9593ca62cc02f4d339..3fe1ca770e621ee1a96191c34f7c4dd662b5dee9 100644 (file)
@@ -4,8 +4,8 @@ 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_from = 'sql@sql.mit.edu';
+       $email_to = 'USER@localhost';
+       $email_from = 'USER@localhost';
        switch($errno) {
                case E_USER_NOTICE:
                case E_NOTICE:
@@ -34,19 +34,13 @@ 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);
-       } else {
                $error_msg .= print_r(get_included_files(),1)."\n";
                $error_msg .= print_r($errcontext,1);
                error_log($error_msg, 1, $email_to);
                if ($error_halt) {
                        while(ob_get_level()) { ob_end_clean(); }
-                       require_once('security.lib.php');
-                       redirect('error');
                        exit -1;
                }
-       }
 }
 
 function ErrorBacktrace($debug_backtrace) {
This page took 0.025327 seconds and 4 git commands to generate.