*** src/err.inc.t
--- src/err.inc.t 2005-10-11 13:22:26.785174018 -0600
***************
*** 16,34 ****
$ses = (int) $GLOBALS['usr']->sid;
}
! $error_msg = '[Error] '.$title.'
';
! $error_msg .= '[Message Sent to User] '.trim($msg).'
';
! $error_msg .= '[User IP] '.get_ip().'
';
$error_msg .= '[Requested URL] http://';
! $error_msg .= isset($_SERVER['HTTP_HOST']) ? htmlspecialchars($_SERVER['HTTP_HOST']) : '';
! $error_msg .= isset($_SERVER['REQUEST_URI']) ? htmlspecialchars($_SERVER['REQUEST_URI']) : '';
! $error_msg .= !empty($_POST) ? '
[Post-Data] '.base64_encode(serialize($_POST)) : '';
! $error_msg .= '
';
if (isset($_SERVER['HTTP_REFERER'])) {
! $error_msg .= '[Referring Page] '.htmlspecialchars($_SERVER['HTTP_REFERER']).'
';
}
! error_log('['.gmdate('D M j G:i:s T Y', __request_timestamp__).'] '.base64_encode($error_msg)."\n", 3, $GLOBALS['ERROR_PATH'].'fud_errors');
/* no need to redirect, we just want to log the error */
if ($level == 'ATCH') {
--- 16,34 ----
$ses = (int) $GLOBALS['usr']->sid;
}
! $error_msg = '[Error] '.$title."\n";
! $error_msg .= '[Message Sent to User] '.trim($msg)."\n";
! $error_msg .= '[User IP] '.get_ip()."\n";
$error_msg .= '[Requested URL] http://';
! $error_msg .= isset($_SERVER['HTTP_HOST']) ? $_SERVER['HTTP_HOST'] : '';
! $error_msg .= isset($_SERVER['REQUEST_URI']) ? $_SERVER['REQUEST_URI'] : '';
! $error_msg .= !empty($_POST) ? "\n[Post-Data] ".serialize($_POST) : '';
! $error_msg .= "\n";
if (isset($_SERVER['HTTP_REFERER'])) {
! $error_msg .= '[Referring Page] '.$_SERVER['HTTP_REFERER']."\n";
}
! __error_log('fud_errors', $error_msg);
/* no need to redirect, we just want to log the error */
if ($level == 'ATCH') {