2 <& /elements/errorpage-popup.html, $error &>
4 <& /elements/header-popup.html, "Address range deleted" &>
5 <SCRIPT TYPE="text/javascript">
6 window.top.location.reload();
14 unless $FS::CurrentUser::CurrentUser->access_right('Broadband global configuration');
16 my ($rangenum) = $cgi->keywords;
17 $rangenum =~ /^\d+$/ or die "bad rangenum '$rangenum'";
18 my $addr_range = FS::addr_range->by_key($rangenum);
19 die "unknown rangenum $rangenum" unless $addr_range;
20 my $error = $addr_range->delete;