} $template->assign('user_form', 0); $users = array(); // users = groups $modulename = expModules::controllerExists($loc->mod) ? expModules::getControllerClassName($loc->mod) : $loc->mod; //$modclass = $loc->mod; $modclass = $modulename; $mod = new $modclass(); $perms = $mod->permissions($loc->int); foreach (group::getAllGroups() as $g) { foreach ($perms as $perm => $name) { $var = 'perms_' . $perm; if (expPermissions::checkGroup($g, $perm, $loc, true)) { $g->{$perm} = 1; } else { if (expPermissions::checkGroup($g, $perm, $loc)) { $g->{$perm} = 2; } else { $g->{$perm} = 0; } } } $users[] = $g; } $p[gt("Group")] = 'username'; foreach ($mod->permissions() as $key => $value) { $p[gt($value)] = $key; } if (SEF_URLS == 1) { $page = new expPaginator(array('limit' => isset($_REQUEST['limit']) ? $_REQUEST['limit'] : 20, 'controller' => $router->params['controller'], 'action' => $router->params['action'], 'records' => $users, 'order' => 'name', 'dir' => 'ASC', 'columns' => $p)); } else {