diff options
author | Dries Buytaert <dries@buytaert.net> | 2001-04-12 20:28:43 +0000 |
---|---|---|
committer | Dries Buytaert <dries@buytaert.net> | 2001-04-12 20:28:43 +0000 |
commit | 2926060f6a59fb8baf1045730349ca4911d97393 (patch) | |
tree | c459e63d9dc6c105404bb3453f4c71b125531c58 /modules/account.module | |
parent | 02e28d29a899caad8f2a5966046abd8afd778528 (diff) | |
download | brdo-2926060f6a59fb8baf1045730349ca4911d97393.tar.gz brdo-2926060f6a59fb8baf1045730349ca4911d97393.tar.bz2 |
- fixed small glitch in account listings
Diffstat (limited to 'modules/account.module')
-rw-r--r-- | modules/account.module | 13 |
1 files changed, 3 insertions, 10 deletions
diff --git a/modules/account.module b/modules/account.module index 88c75b494..b5b19ef3f 100644 --- a/modules/account.module +++ b/modules/account.module @@ -221,23 +221,16 @@ function account_view($name) { } function account_query($type = "") { - $queries = array(0 => array("users recently visiting", "ORDER BY last_access DESC"), 1 => array("users recently joining", "ORDER BY id DESC"), 2 => array("users with access rights", "WHERE access != '' ORDER BY last_access DESC"), 3 => array("users with pending accounts", "WHERE status = 1 ORDER BY last_access DESC"), 4 => array("users with blocked accounts", "WHERE status = 0 ORDER BY last_access DESC")); + $queries = array(array("users recently visiting", "ORDER BY last_access DESC"), array("users recently joining", "ORDER BY id DESC"), array("users with access rights", "WHERE access != '' ORDER BY last_access DESC"), array("users with pending accounts", "WHERE status = 1 ORDER BY last_access DESC"), array("users with blocked accounts", "WHERE status = 0 ORDER BY last_access DESC")); return ($queries[$type] ? $queries[$type] : $queries); } -function account_listing() { - foreach (account_query() as $key=>$array) { - $output .= "<LI><A HREF=\"admin.php?mod=account&type=$key\">$array[0]</A></LI>\n"; - } - return "<OL>$output</OL>\n"; -} - function account_admin() { global $op, $edit, $id, $mod, $keys, $order, $name, $type; print "<SMALL><A HREF=\"admin.php?mod=account&op=access\">access control</A> | <A HREF=\"admin.php?mod=account&op=listing\">account listings</A> | <A HREF=\"admin.php?mod=account&op=search\">search account</A> | <A HREF=\"admin.php?mod=account\">overview</A> | <A HREF=\"admin.php?mod=account&op=help\">help</A></SMALL><HR>"; - $type = ($type ? $type : 1); + $type = ($type ? $type : 0); switch ($op) { case "access": @@ -268,7 +261,7 @@ function account_admin() { print account_help(); break; case "listing": - print account_listing(); + print node_listing(account_query()); break; case "search": print search_form($keys); |