$groupid); $page['operators'] = get_operators(); $errors = array(); $group = group_by_id($groupid); if (!$group) { $errors[] = getlocal("page.group.no_such"); } else if (isset($_POST['gid'])) { $new_members = array(); foreach ($page['operators'] as $op) { if (verifyparam("op" . $op['operatorid'], "/^on$/", "") == "on") { $new_members[] = $op['operatorid']; } } update_group_members($groupid, $new_members); header("Location: $webimroot/operator/groupmembers.php?gid=$groupid&stored"); exit; } $page['formop'] = array(); $page['currentgroup'] = $group ? topage(htmlspecialchars($group['vclocalname'])) : ""; foreach (get_group_members($groupid) as $rel) { $page['formop'][] = $rel['operatorid']; } $page['stored'] = isset($_GET['stored']); prepare_menu($operator); setup_group_settings_tabs($groupid, 1); start_html_output(); require('../view/groupmembers.php'); ?>