From bde164393aa3b8c59ee15c0ae80c4268b236fb47 Mon Sep 17 00:00:00 2001 From: neoraider Date: Sun, 16 Apr 2006 20:21:01 +0000 Subject: Rechteverwaltung ?berarbeitet. --- code/user.inc.php | 12 ++++++++++++ 1 file changed, 12 insertions(+) (limited to 'code/user.inc.php') diff --git a/code/user.inc.php b/code/user.inc.php index b9cab2d..4912bcc 100644 --- a/code/user.inc.php +++ b/code/user.inc.php @@ -136,6 +136,18 @@ return ($GLOBALS['db']->Affected_Rows() > 0); } + + function ListUsers() { + $res = $GLOBALS['db']->Execute('SELECT id, name FROM users ORDER BY id'); + + return $res->GetArray(); + } + + function ListGroups() { + $res = $GLOBALS['db']->Execute('SELECT id, name FROM groups ORDER BY id'); + + return $res->GetArray(); + } } $GLOBALS['user'] = new User; -- cgit v1.2.3