diff --git a/modules/watchdog.module b/modules/watchdog.module index f968df964fa..5bcc38f9ba7 100644 --- a/modules/watchdog.module +++ b/modules/watchdog.module @@ -36,14 +36,14 @@ function watchdog_overview($type) { $result = db_query("SELECT w.*, u.name, u.uid FROM watchdog w LEFT JOIN users u ON w.uid = u.uid ". ($type ? $query[$type] : "") ." ORDER BY timestamp DESC LIMIT 1000"); - $output .= "\n"; - $output .= " \n"; + $output .= "
datemessageuseroperations
"; + $output .= " "; while ($watchdog = db_fetch_object($result)) { if ($background = $color[$watchdog->type]) { - $output .= " \n"; + $output .= " "; } } - $output .= "
datemessageuseroperations
". format_date($watchdog->timestamp, "small") ."". substr(check_output($watchdog->message), 0, 64) ."". format_name($watchdog) ."wid\">details
". format_date($watchdog->timestamp, "small") ."". substr(check_output($watchdog->message), 0, 64) ."". format_name($watchdog) ."wid\">details
\n"; + $output .= ""; return $output; } @@ -52,14 +52,14 @@ function watchdog_view($id) { $result = db_query("SELECT w.*, u.name, u.uid FROM watchdog w LEFT JOIN users u ON w.uid = u.uid WHERE w.wid = '$id'"); if ($watchdog = db_fetch_object($result)) { - $output .= "\n"; - $output .= " \n"; - $output .= " \n"; - $output .= " \n"; - $output .= " \n"; - $output .= " \n"; - $output .= " \n"; - $output .= "
Type:". check_output($watchdog->type) ."
Date:". format_date($watchdog->timestamp, "large") ."
User:". format_name($watchdog) ."
Location:". check_output($watchdog->location). "
Message:". check_output($watchdog->message) ."
Hostname:". check_output($watchdog->hostname) ."
\n"; + $output .= ""; + $output .= " "; + $output .= " "; + $output .= " "; + $output .= " "; + $output .= " "; + $output .= " "; + $output .= "
Type:". check_output($watchdog->type) ."
Date:". format_date($watchdog->timestamp, "large") ."
User:". format_name($watchdog) ."
Location:". check_output($watchdog->location) ."
Message:". check_output($watchdog->message) ."
Hostname:". check_output($watchdog->hostname) ."
"; return $output; } @@ -70,7 +70,7 @@ function watchdog_admin() { if (user_access("administer watchdog")) { - print "user messages | regular messages | special messages | warning messages | error messages | httpd messages | overview | help
\n"; + print "user messages | regular messages | special messages | warning messages | error messages | httpd messages | overview | help
"; switch ($op) { case "help": diff --git a/modules/watchdog/watchdog.module b/modules/watchdog/watchdog.module index f968df964fa..5bcc38f9ba7 100644 --- a/modules/watchdog/watchdog.module +++ b/modules/watchdog/watchdog.module @@ -36,14 +36,14 @@ function watchdog_overview($type) { $result = db_query("SELECT w.*, u.name, u.uid FROM watchdog w LEFT JOIN users u ON w.uid = u.uid ". ($type ? $query[$type] : "") ." ORDER BY timestamp DESC LIMIT 1000"); - $output .= "\n"; - $output .= " \n"; + $output .= "
datemessageuseroperations
"; + $output .= " "; while ($watchdog = db_fetch_object($result)) { if ($background = $color[$watchdog->type]) { - $output .= " \n"; + $output .= " "; } } - $output .= "
datemessageuseroperations
". format_date($watchdog->timestamp, "small") ."". substr(check_output($watchdog->message), 0, 64) ."". format_name($watchdog) ."wid\">details
". format_date($watchdog->timestamp, "small") ."". substr(check_output($watchdog->message), 0, 64) ."". format_name($watchdog) ."wid\">details
\n"; + $output .= ""; return $output; } @@ -52,14 +52,14 @@ function watchdog_view($id) { $result = db_query("SELECT w.*, u.name, u.uid FROM watchdog w LEFT JOIN users u ON w.uid = u.uid WHERE w.wid = '$id'"); if ($watchdog = db_fetch_object($result)) { - $output .= "\n"; - $output .= " \n"; - $output .= " \n"; - $output .= " \n"; - $output .= " \n"; - $output .= " \n"; - $output .= " \n"; - $output .= "
Type:". check_output($watchdog->type) ."
Date:". format_date($watchdog->timestamp, "large") ."
User:". format_name($watchdog) ."
Location:". check_output($watchdog->location). "
Message:". check_output($watchdog->message) ."
Hostname:". check_output($watchdog->hostname) ."
\n"; + $output .= ""; + $output .= " "; + $output .= " "; + $output .= " "; + $output .= " "; + $output .= " "; + $output .= " "; + $output .= "
Type:". check_output($watchdog->type) ."
Date:". format_date($watchdog->timestamp, "large") ."
User:". format_name($watchdog) ."
Location:". check_output($watchdog->location) ."
Message:". check_output($watchdog->message) ."
Hostname:". check_output($watchdog->hostname) ."
"; return $output; } @@ -70,7 +70,7 @@ function watchdog_admin() { if (user_access("administer watchdog")) { - print "user messages | regular messages | special messages | warning messages | error messages | httpd messages | overview | help
\n"; + print "user messages | regular messages | special messages | warning messages | error messages | httpd messages | overview | help
"; switch ($op) { case "help":