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