Added cgi args parser

This commit is contained in:
Jamie Cameron
2009-06-05 19:51:11 +00:00
parent 1d65723888
commit d187079468

13
lilo/cgi_args.pl Normal file
View File

@@ -0,0 +1,13 @@
do 'lilo-lib.pl';
sub cgi_args
{
my ($cgi) = @_;
if ($cgi eq 'edit_image.cgi') {
my $conf = &get_lilo_conf();
my @images = ( &find("image", $conf), &find("other", $conf) );
return @images ? 'idx='.$images[0]->{'index'} : 'new=1';
}
return undef;
}