--- drupal-4.6.2\modules\watchdog.module Thu Jan 27 00:02:44 2005
+++ watchdog.module Wed Jul 27 22:35:31 2005
@@ -141,6 +141,7 @@
$output .= '
'. t('Date') .' | '. format_date($watchdog->timestamp, 'large') .' |
';
$output .= ' '. t('User') .' | '. format_name($watchdog) .' |
';
$output .= ' '. t('Location') ." | ". l($watchdog->location, $watchdog->location) ." |
";
+ $output .= ' '. t('Referrer') ." | ". l($watchdog->referer, $watchdog->referer) ." |
";
$output .= ' '. t('Message') ." | $watchdog->message |
";
$output .= ' '. t('Severity') .' | '. $severity[$watchdog->severity] .' |
';
$output .= ' '. t('Hostname') ." | $watchdog->hostname |
";
--- drupal-4.6.2\includes\bootstrap.inc Tue Apr 05 21:00:24 2005
+++ bootstrap.inc Wed Jul 27 22:31:07 2005
@@ -597,7 +597,7 @@
*/
function watchdog($type, $message, $severity = WATCHDOG_NOTICE, $link = NULL) {
global $user;
- db_query("INSERT INTO {watchdog} (uid, type, message, severity, link, location, hostname, timestamp) VALUES (%d, '%s', '%s', %d, '%s', '%s', '%s', %d)", $user->uid, $type, $message, $severity, $link, request_uri(), $_SERVER['REMOTE_ADDR'], time());
+ db_query("INSERT INTO {watchdog} (uid, type, message, severity, link, location, referer, hostname, timestamp) VALUES (%d, '%s', '%s', %d, '%s', '%s', '%s', '%s', %d)", $user->uid, $type, $message, $severity, $link, request_uri(), referer_uri(), $_SERVER['REMOTE_ADDR'], time());
}
/**