HEX
Server: Apache
System: Linux vmi2872685.contaboserver.net 6.8.0-71-generic #71-Ubuntu SMP PREEMPT_DYNAMIC Tue Jul 22 16:52:38 UTC 2025 x86_64
User: computingcore (1007)
PHP: 8.3.28
Disabled: NONE
Upload Files
File: //usr/share/webmin/pam/cgi_args.pl
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;
}