mirror of
https://github.com/webmin/webmin.git
synced 2026-05-04 22:30:33 +01:00
Add CGI args parser
This commit is contained in:
15
pam/cgi_args.pl
Normal file
15
pam/cgi_args.pl
Normal file
@@ -0,0 +1,15 @@
|
||||
|
||||
do 'pam-lib.pl';
|
||||
|
||||
sub cgi_args
|
||||
{
|
||||
my ($cgi) = @_;
|
||||
my @pams = &get_pam_config();
|
||||
if ($cgi eq 'edit_pam.cgi') {
|
||||
return @pams ? 'idx='.$pams[0]->{'index'} : 'new=1';
|
||||
}
|
||||
elsif ($cgi eq 'edit_mod.cgi') {
|
||||
return @pams ? 'idx='.$pams[0]->{'index'}.'&midx=0' : 'new=1';
|
||||
}
|
||||
return undef;
|
||||
}
|
||||
Reference in New Issue
Block a user