$val) { if (isset($val)) { LOG_INFO($db_link, "Remove rule id: $val ".dump_record($db_link,'auth_rules','id='.$val)); delete_record($db_link, "auth_rules", "id=" . $val); } } header("Location: " . $_SERVER["REQUEST_URI"]); exit; } if (isset($_POST['s_save'])) { $len = is_array($_POST['s_save']) ? count($_POST['s_save']) : 0; for ($i = 0; $i < $len; $i ++) { $save_id = intval($_POST['s_save'][$i]); $len_all = is_array($_POST['n_id']) ? count($_POST['n_id']) : 0; for ($j = 0; $j < $len_all; $j ++) { if (intval($_POST['n_id'][$j]) != $save_id) { continue; } $new['type'] = $_POST['s_type'][$j]*1; $new['rule'] = trim($_POST['s_rule'][$j]); $new['comment'] = trim($_POST['s_comment'][$j]); if ($new['type'] ==2) { $new['rule'] = mac_dotted($new['rule']); } update_auth_rule($db_link,$new,$save_id); } } header("Location: " . $_SERVER["REQUEST_URI"]); exit; } if (isset($_POST["s_create"])) { $new_rule = $_POST["s_new_rule"]; if (isset($new_rule)) { add_auth_rule($db_link,$new_rule,$_POST["s_new_type"],$id); } header("Location: " . $_SERVER["REQUEST_URI"]); exit; } unset($_POST); fix_auth_rules($db_link); require_once ($_SERVER['DOCUMENT_ROOT']."/inc/header.php"); ?>


: hotspot => subnet => mac => hostname => default user

\n"; print "\n"; print "\n"; print "\n"; print "\n"; print "\n"; print "\n"; print "\n"; } ?>
id
{$row['id']}"; print_qa_rule_select("s_type[]","{$row['type']}"); print "
"; ?>