diff options
Diffstat (limited to 'modules/watchdog.module')
-rw-r--r-- | modules/watchdog.module | 20 |
1 files changed, 10 insertions, 10 deletions
diff --git a/modules/watchdog.module b/modules/watchdog.module index ea23d1118..65d7dd6a3 100644 --- a/modules/watchdog.module +++ b/modules/watchdog.module @@ -21,14 +21,14 @@ function watchdog_link($type) { if ($type == "admin" && user_access("administer watchdog")) { $help = "The watchdog module monitors your website, captures system events in a log and records them to be reviewed by an authorized individual at a later time. The watchdog log is simply a list of events recorded during operation and contains usage data, performance data, errors, warnings and operational information. It is vital to check the watchdog report on a regular basis as it is often the only way to tell what is going on."; - menu_add("site monitoring", url("admin/watchdog"), "Monitor your site.", NULL, NULL, 2); - menu_add("watchdog", url("admin/watchdog/list/all"), "Display system events.", $help, "site monitoring", 1); - menu_add("user messages", url("admin/watchdog/list/user"), "Display system events", $help, "watchdog"); - menu_add("regular messages", url("admin/watchdog/list/regular"), "Display system events", $help, "watchdog"); - menu_add("special messages", url("admin/watchdog/list/special"), "Display system events", $help, "watchdog"); - menu_add("warning messages", url("admin/watchdog/list/warning"), "Display system events", $help, "watchdog"); - menu_add("error messages", url("admin/watchdog/list/error"), "Display system events", $help, "watchdog"); - menu_add("httpd messages", url("admin/watchdog/list/httpd"), "Display system events", $help, "watchdog"); + menu("admin/watchdog", "site monitoring", "watchdog_admin", $help, 6); + menu("admin/watchdog/user", "user messages", "watchdog_admin", $help); + menu("admin/watchdog/regular", "regular messages", "watchdog_admin", $help); + menu("admin/watchdog/special", "special messages", "watchdog_admin", $help); + menu("admin/watchdog/warning", "warning messagess", "watchdog_admin", $help); + menu("admin/watchdog/error", "error messages", "watchdog_admin", $help); + menu("admin/watchdog/httpd", "httpd messages", "watchdog_admin", $help); + menu("admin/watchdog/view", "view details", "watchdog_admin", $help, 0, 1); // hidden menu } } @@ -46,7 +46,7 @@ function watchdog_overview($type) { $color = array("user" => "#FFEEAA", "message" => "#FFFFFF", "special" => "#A49FFF", "warning" => "#FFAA22", "httpd" => "#99DD99", "error" => "#EE4C4C"); $query = array("user" => "WHERE type = 'user'", "regular" => "WHERE type = 'message'", "special" => "WHERE type = 'special'", "warning" => "WHERE type = 'warning'", "error" => "WHERE type = 'error'", "httpd" => "WHERE type = 'httpd'", "actions" => "WHERE link != ''"); - $result = pager_query("SELECT w.*, u.name, u.uid FROM watchdog w LEFT JOIN users u ON w.uid = u.uid ". ($type ? $query[$type] : "") ." ORDER BY w.timestamp DESC", 100); + $result = pager_query("SELECT w.*, u.name, u.uid FROM watchdog w LEFT JOIN users u ON w.uid = u.uid ". ($type ? $query[$type] : "") ." ORDER BY w.timestamp DESC", 75); while ($watchdog = db_fetch_object($result)) { if ($background = $color[$watchdog->type]) { @@ -92,7 +92,7 @@ function watchdog_admin() { print watchdog_view(check_input(arg(3))); break; default: - print watchdog_overview(arg(3)); + print watchdog_overview(arg(2)); } } else { |