diff --git a/logrotate/cgi_args.pl b/logrotate/cgi_args.pl new file mode 100644 index 000000000..6e0ae9fa2 --- /dev/null +++ b/logrotate/cgi_args.pl @@ -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; +}