2 # Delete several IPv6 host file entries
4 require './net-lib.pl';
5 &error_setup($text{'idelete_err'});
6 $access{'ipnodes'} == 2 || &error($text{'hosts_ecannot'});
8 @d = split(/\0/, $in{'d'});
9 @d || &error($text{'hdelete_enone'});
12 &lock_file($config{'ipnodes_file'});
13 @hosts = &list_ipnodes();
14 foreach $d (sort { $b <=> $a } @d) {
16 &delete_ipnode($host);
19 &unlock_file($config{'ipnodes_file'});
20 &webmin_log("delete", "ipnodes", scalar(@d));
21 &redirect("list_ipnodes.cgi");