Handle hostnames with upper-case letters
[webmin.git] / burner / delete_profiles.cgi
1 #!/usr/local/bin/perl
2 # Delete a bunch of profiles
3
4 require './burner-lib.pl';
5 &ReadParse();
6 &error_setup($text{'delete_err'});
7 @d = split(/\0/, $in{'d'});
8 @d || &error($text{'delete_enone'});
9
10 # Delete them
11 foreach $d (@d) {
12         $profile = &get_profile($d);
13         &can_use_profile($profile) || &error($text{'edit_ecannot'});
14         &delete_profile($profile);
15         }
16
17 &redirect("");
18