diff options
author | Dries Buytaert <dries@buytaert.net> | 2001-04-07 20:00:21 +0000 |
---|---|---|
committer | Dries Buytaert <dries@buytaert.net> | 2001-04-07 20:00:21 +0000 |
commit | dae5c2208c936c82b07eea35ce95f0aba03f5413 (patch) | |
tree | ccd754c192de8699baff32966ebd704b3c8d2de4 /modules/watchdog.module | |
parent | d7e9ad10279746ca6ca36ce7bda2f293e7474b8d (diff) | |
download | brdo-dae5c2208c936c82b07eea35ce95f0aba03f5413.tar.gz brdo-dae5c2208c936c82b07eea35ce95f0aba03f5413.tar.bz2 |
- improved rating module: it now shows some basic statistics :-)
- updated database files
- removed affialiate-site and drupal-site module: maintain them
by hand through a box for now will you.
Diffstat (limited to 'modules/watchdog.module')
-rw-r--r-- | modules/watchdog.module | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/modules/watchdog.module b/modules/watchdog.module index 18279db1b..23e803e62 100644 --- a/modules/watchdog.module +++ b/modules/watchdog.module @@ -15,10 +15,10 @@ function watchdog_cron() { db_query("DELETE FROM watchdog WHERE ". time() ." - timestamp > ". variable_get(watchdog_clear, "302400")); } -function watchdog_overview($order = "date") { +function watchdog_overview() { $colors = array(message => "#FFFFFF", special => "#836FFF", warning => "#FFAA22", error => "#EE2C2C"); - $result = db_query("SELECT w.*, u.userid FROM watchdog w LEFT JOIN users u ON w.user = u.id"); + $result = db_query("SELECT w.*, u.userid FROM watchdog w LEFT JOIN users u ON w.user = u.id ORDER BY timestamp DESC LIMIT 1000"); $output .= "<TABLE BORDER=\"1\" CELLPADDING=\"2\" CELLSPACING=\"2\">\n"; $output .= " <TR><TH>date</TH><TH>type</TH><TH>message</TH><TH>user</TH><TH>operations</TH></TR>\n"; |