mirror of
https://github.com/webmin/webmin.git
synced 2026-03-20 16:50:24 +00:00
Added cgi args parser
This commit is contained in:
13
logrotate/cgi_args.pl
Normal file
13
logrotate/cgi_args.pl
Normal file
@@ -0,0 +1,13 @@
|
||||
|
||||
do 'logrotate-lib.pl';
|
||||
|
||||
sub cgi_args
|
||||
{
|
||||
my ($cgi) = @_;
|
||||
if ($cgi eq 'edit_log.cgi') {
|
||||
my $conf = &get_config();
|
||||
my ($l) = grep { $_->{'members'} } @$conf;
|
||||
return $l ? 'idx='.$l->{'index'} : 'new=1';
|
||||
}
|
||||
return undef;
|
||||
}
|
||||
Reference in New Issue
Block a user