mirror of
https://github.com/webmin/webmin.git
synced 2025-07-21 23:40:34 +00:00
18 lines
284 B
Perl
Executable File
18 lines
284 B
Perl
Executable File
|
|
use strict;
|
|
use warnings;
|
|
no warnings 'redefine';
|
|
no warnings 'uninitialized';
|
|
do 'backup-config-lib.pl';
|
|
|
|
sub cgi_args
|
|
{
|
|
my ($cgi) = @_;
|
|
if ($cgi eq 'edit.cgi') {
|
|
my @backups = &list_backups();
|
|
return @backups ? 'id='.&urlize($backups[0]->{'id'})
|
|
: 'new=1';
|
|
}
|
|
return undef;
|
|
}
|