* This file is licensed under the Affero General Public License version 3 or later. * See the COPYING-README file. */ $userlistParams = array(); $allGroups=array(); foreach($_["groups"] as $group) { $allGroups[] = $group['name']; } $userlistParams['subadmingroups'] = $allGroups; $userlistParams['allGroups'] = json_encode($allGroups); $items = array_flip($userlistParams['subadmingroups']); unset($items['admin']); $userlistParams['subadmingroups'] = array_flip($items); ?>