#!/usr/local/bin/perl # edit_range.cgi # Edit or create an IP range bootup interface require './net-lib.pl'; $access{'ifcs'} == 2 || $access{'ifcs'} == 3 || &error($text{'ifcs_ecannot'}); &ReadParse(); if ($in{'new'}) { &ui_print_header(undef, $text{'range_create'}, ""); } else { @boot = &boot_interfaces(); $b = $boot[$in{'idx'}]; if ($access{'ifcs'} == 3) { map { $can_interfaces{$_}++ } split(/\s+/, $access{'interfaces'}); if (! $can_interfaces{$b->{'fullname'}}) { &error($text{'ifcs_ecannot_this'}); } } &ui_print_header(undef, $text{'range_edit'}, ""); } print "