summaryrefslogtreecommitdiffstats
path: root/code/user.inc.php
diff options
context:
space:
mode:
Diffstat (limited to 'code/user.inc.php')
-rw-r--r--code/user.inc.php12
1 files changed, 12 insertions, 0 deletions
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;