summaryrefslogtreecommitdiff
path: root/src/controllers/Users.class.php
diff options
context:
space:
mode:
Diffstat (limited to 'src/controllers/Users.class.php')
-rw-r--r--src/controllers/Users.class.php15
1 files changed, 9 insertions, 6 deletions
diff --git a/src/controllers/Users.class.php b/src/controllers/Users.class.php
index 9978ef8..b75848f 100644
--- a/src/controllers/Users.class.php
+++ b/src/controllers/Users.class.php
@@ -87,17 +87,20 @@ class Users extends Controller {
$db = Database::getInstance();
$pm = PluginManager::getInstance();
- $username = implode('/', $remainder);
- if ($username == 'all') {
+ $usernames = implode('/', $remainder);
+ $uids = array();
+ if ($usernames == 'all') {
$uids = $db->listUsers();
} else {
- $uids = array($db->getUID($username));
+ foreach (explode('!', $usernames) as $username) {
+ $uids[] = $db->getUID($username);
+ }
}
-
+
$vars = array();
if (count($uids)<2) {
- $user = Auth::getInstance($uid);
+ $user = Auth::getInstance($uids[0]);
if ($user->isGroup()) $uid = false; // ignore groups.
@@ -129,7 +132,7 @@ class Users extends Controller {
foreach ($uids as $uid) {
$vars['users'][] = Auth::getInstance($uid);
}
- $vars['username'] = $username;
+ $vars['usernames'] = $usernames;
$vars['config_options'] = $config_options;
$vars['groups'] = $db->listGroupNames();
require_once('ContactMethod.class.php');