Handle hostnames with upper-case letters
[webmin.git] / shorewall / up.cgi
1 #!/usr/bin/perl
2 # up.cgi
3 # Move a row in a table up
4
5 require './shorewall-lib.pl';
6 &ReadParse();
7 &can_access($in{'table'}) || &error($text{'list_ecannot'});
8 $pfunc = &get_parser_func(\%in);
9 &lock_table($in{'table'});
10 &swap_table_rows($in{'table'}, $pfunc, $in{'idx'}, $in{'idx'}-1);
11 &unlock_table($in{'table'});
12 &webmin_log('up', 'table', $in{'table'});
13 &redirect("list.cgi?table=$in{'table'}");
14