HEX
Server: Apache/2.4.65 (Debian)
System: Linux kubikelcreative 5.10.0-35-amd64 #1 SMP Debian 5.10.237-1 (2025-05-19) x86_64
User: www-data (33)
PHP: 8.4.13
Disabled: NONE
Upload Files
File: //usr/share/webmin/useradmin/cgi_args.pl
do 'user-lib.pl';

sub cgi_args
{
my ($cgi) = @_;
if ($cgi eq 'edit_user.cgi') {
	# Link to first available user
	my @allulist = &list_users();
	my @ulist = &list_allowed_users(\%access, \@allulist);
	return @ulist ? "user=".&urlize($ulist[0]->{'user'}) : "none";
	}
elsif ($cgi eq 'edit_group.cgi') {
	my @allglist = &list_groups();
	my @glist = &list_allowed_groups(\%access, \@allglist);
	return @glist ? "group=".&urlize($glist[0]->{'group'}) : "none";
	}
return undef;
}