'edit', 'userid' => $userid)); exit; } conf_mount_ro(); } function build_priv_list() { global $priv_list, $a_user; $list = array(); foreach($priv_list as $pname => $pdata) { if (in_array($pname, $a_user['priv'])) continue; $list[$pname] = $pdata['name']; } return($list); } /* if ajax is calling, give them an update message */ if (isAjax()) { print_info_box_np($savemsg); } include("head.inc"); if ($input_errors) print_input_errors($input_errors); if ($savemsg) print_info_box($savemsg, 'success'); $tab_array = array(); $tab_array[] = array(gettext("Users"), true, "system_usermanager.php"); $tab_array[] = array(gettext("Groups"), false, "system_groupmanager.php"); $tab_array[] = array(gettext("Settings"), false, "system_usermanager_settings.php"); $tab_array[] = array(gettext("Servers"), false, "system_authservers.php"); display_top_tabs($tab_array); require('classes/Form.class.php'); $form = new Form(); $section = new Form_Section('User privileges'); $section->addInput(new Form_Select( 'sysprivs', 'System', null, build_priv_list(), true ))->addClass('multiselect')->setHelp('Hold down CTRL (PC)/COMMAND (Mac) key to select multiple items'); if (isset($userid)) { $section->addInput(new Form_Input( 'userid', null, 'hidden', $userid )); } $form->add($section); print($form); ?>
Select a privilege from the list above for a description"