#!/usr/bin/perl # Show a form for editing or creating a rule list section separator require './itsecur-lib.pl'; &can_use_error("rules"); &ReadParse(); @rules = &list_rules(); if ($in{'new'}) { &header(defined($in{'insert'}) ? $text{'sep_title3'} : $text{'sep_title1'}, "", undef, undef, undef, undef, &apply_button()); $rule = { 'index' => scalar(@rules) }; } else { &header($text{'sep_title2'}, "", undef, undef, undef, undef, &apply_button()); $rule = $rules[$in{'idx'}]; } print "