mirror of
https://github.com/webmin/webmin.git
synced 2025-07-20 16:48:46 +00:00
15 lines
404 B
Perl
Executable File
15 lines
404 B
Perl
Executable File
#!/usr/local/bin/perl
|
|
# up.cgi
|
|
# Move a row in a table up
|
|
|
|
require './shorewall6-lib.pl';
|
|
&ReadParse();
|
|
&can_access($in{'table'}) || &error($text{'list_ecannot'});
|
|
$pfunc = &get_parser_func(\%in);
|
|
&lock_table($in{'table'});
|
|
&swap_table_rows($in{'table'}, $pfunc, $in{'idx'}, $in{'idx'}-1);
|
|
&unlock_table($in{'table'});
|
|
&webmin_log('up', 'table', $in{'table'});
|
|
&redirect("list.cgi?table=$in{'table'}");
|
|
|