''); $errors = array(); $options = array('enableban', 'usercanchangename'); loadsettings(); $params = array(); foreach($options as $opt) { $params[$opt] = $settings[$opt]; } if (isset($_POST['sent'])) { $params['enableban'] = verifyparam("enableban","/^on$/", "") == "on" ? "1" : "0"; $params['usercanchangename'] = verifyparam("usercanchangename", "/^on$/", "") == "on" ? "1" : "0"; foreach($options as $opt) { $settings[$opt] = $params[$opt]; } update_settings(); header("Location: $webimroot/operator/features.php?stored"); exit; } $page['operator'] = topage(get_operator_name($operator)); $page['formenableban'] = $params['enableban'] == "1"; $page['formusercanchangename'] = $params['usercanchangename'] == "1"; $page['stored'] = isset($_GET['stored']); setup_settings_tabs(1); start_html_output(); require('../view/features.php'); ?>