#!/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 "
\n"; print "\n"; print "\n"; print "\n"; print "
\n"; print "\n"; print "
$text{'range_header'}
\n"; &range_input($b); print "
\n"; print "\n"; if ($in{'new'}) { print "\n"; print "\n"; } else { print "\n" unless $always_apply_ifcs; if (defined(&apply_interface)) { print "\n"; } if (defined(&unapply_interface)) { print "\n"; } print "\n" unless $noos_support_delete_ifcs; } print "
\n"; &ui_print_footer("list_ifcs.cgi?mode=boot", $text{'ifcs_return'});