Linux ns8.secondary29.go.th 2.6.32-754.28.1.el6.x86_64 #1 SMP Wed Mar 11 18:38:45 UTC 2020 x86_64
Apache/2.2.15 (CentOS)
: 122.154.134.11 | : 122.154.134.9
Cant Read [ /etc/named.conf ]
5.6.40
apache
www.github.com/MadExploits
Terminal
AUTO ROOT
Adminer
Backdoor Destroyer
Linux Exploit
Lock Shell
Lock File
Create User
CREATE RDP
PHP Mailer
BACKCONNECT
UNLOCK SHELL
HASH IDENTIFIER
CPANEL RESET
CREATE WP USER
README
+ Create Folder
+ Create File
/
usr /
libexec /
webmin /
acl /
[ HOME SHELL ]
Name
Size
Permission
Action
help
[ DIR ]
drwxr-xr-x
images
[ DIR ]
drwxr-xr-x
lang
[ DIR ]
drwxr-xr-x
CHANGELOG
5.15
KB
-rw-r--r--
acl-lib.pl
58.88
KB
-rwxr-xr-x
acl_security.pl
2.27
KB
-rwxr-xr-x
backup_config.pl
2.59
KB
-rwxr-xr-x
cert_form.cgi
1.43
KB
-rwxr-xr-x
cert_issue.cgi
1.64
KB
-rwxr-xr-x
cert_output.cgi
392
B
-rwxr-xr-x
cgi_args.pl
714
B
-rwxr-xr-x
config
61
B
-rw-r--r--
config-ALL-linux
42
B
-rw-r--r--
config-freebsd
42
B
-rw-r--r--
config-macos
42
B
-rw-r--r--
config-netbsd
42
B
-rw-r--r--
config-openbsd
42
B
-rw-r--r--
config-solaris-10-ALL
46
B
-rw-r--r--
config-syno-linux
51
B
-rw-r--r--
config.info
240
B
-rw-r--r--
config.info.ar
385
B
-rw-r--r--
config.info.bg
247
B
-rw-r--r--
config.info.bg.UTF-8
397
B
-rw-r--r--
config.info.ca
290
B
-rw-r--r--
config.info.ca.UTF-8
295
B
-rw-r--r--
config.info.cz
252
B
-rw-r--r--
config.info.cz.UTF-8
265
B
-rw-r--r--
config.info.da
259
B
-rw-r--r--
config.info.da.UTF-8
259
B
-rw-r--r--
config.info.de
272
B
-rw-r--r--
config.info.de.UTF-8
273
B
-rw-r--r--
config.info.es
277
B
-rw-r--r--
config.info.es.UTF-8
277
B
-rw-r--r--
config.info.eu
348
B
-rw-r--r--
config.info.eu.UTF-8
298
B
-rw-r--r--
config.info.fa
402
B
-rw-r--r--
config.info.fr
316
B
-rw-r--r--
config.info.fr.UTF-8
316
B
-rw-r--r--
config.info.hr
0
B
-rw-r--r--
config.info.hu
329
B
-rw-r--r--
config.info.hu.UTF-8
353
B
-rw-r--r--
config.info.it
283
B
-rw-r--r--
config.info.it.UTF-8
283
B
-rw-r--r--
config.info.ja_JP.UTF-8
319
B
-rw-r--r--
config.info.ja_JP.euc
238
B
-rw-r--r--
config.info.ko_KR.UTF-8
233
B
-rw-r--r--
config.info.ko_KR.euc
188
B
-rw-r--r--
config.info.ms_MY
248
B
-rw-r--r--
config.info.ms_MY.UTF-8
248
B
-rw-r--r--
config.info.nl
268
B
-rw-r--r--
config.info.nl.UTF-8
268
B
-rw-r--r--
config.info.no
264
B
-rw-r--r--
config.info.no.UTF-8
264
B
-rw-r--r--
config.info.pl
260
B
-rw-r--r--
config.info.pl.UTF-8
270
B
-rw-r--r--
config.info.pt_BR
291
B
-rw-r--r--
config.info.pt_BR.UTF-8
295
B
-rw-r--r--
config.info.ru.UTF-8
439
B
-rw-r--r--
config.info.ru_RU
267
B
-rw-r--r--
config.info.ru_RU.UTF-8
439
B
-rw-r--r--
config.info.ru_SU
267
B
-rw-r--r--
config.info.sk
260
B
-rw-r--r--
config.info.sk.UTF-8
278
B
-rw-r--r--
config.info.sv
61
B
-rw-r--r--
config.info.sv.UTF-8
61
B
-rw-r--r--
config.info.tr
285
B
-rw-r--r--
config.info.uk_UA
191
B
-rw-r--r--
config.info.uk_UA.UTF-8
297
B
-rw-r--r--
config.info.zh_CN
40
B
-rw-r--r--
config.info.zh_CN.UTF-8
47
B
-rw-r--r--
config.info.zh_TW.Big5
117
B
-rw-r--r--
config.info.zh_TW.UTF-8
146
B
-rw-r--r--
convert.cgi
3.74
KB
-rwxr-xr-x
convert_form.cgi
1.54
KB
-rwxr-xr-x
defaultacl
230
B
-rw-r--r--
delete_group.cgi
1.3
KB
-rwxr-xr-x
delete_groups.cgi
1.4
KB
-rwxr-xr-x
delete_session.cgi
380
B
-rwxr-xr-x
delete_user.cgi
615
B
-rwxr-xr-x
delete_users.cgi
2.88
KB
-rwxr-xr-x
edit_acl.cgi
2.67
KB
-rwxr-xr-x
edit_group.cgi
4.33
KB
-rwxr-xr-x
edit_pass.cgi
1.77
KB
-rwxr-xr-x
edit_rbac.cgi
898
B
-rwxr-xr-x
edit_sql.cgi
3.38
KB
-rwxr-xr-x
edit_sync.cgi
1.08
KB
-rwxr-xr-x
edit_unix.cgi
2.71
KB
-rwxr-xr-x
edit_user.cgi
13.46
KB
-rwxr-xr-x
feedback_files.pl
283
B
-rwxr-xr-x
index.cgi
8.24
KB
-rwxr-xr-x
list_sessions.cgi
2.34
KB
-rwxr-xr-x
log_parser.pl
1.73
KB
-rwxr-xr-x
makedn.cgi
1.7
KB
-rwxr-xr-x
maketables.cgi
1.18
KB
-rwxr-xr-x
md5-lib.pl
6.47
KB
-rwxr-xr-x
module.info
187
B
-rw-r--r--
module.info.ar
193
B
-rw-r--r--
module.info.bg
31
B
-rw-r--r--
module.info.bg.UTF-8
52
B
-rw-r--r--
module.info.ca
126
B
-rw-r--r--
module.info.ca.UTF-8
141
B
-rw-r--r--
module.info.cz
26
B
-rw-r--r--
module.info.cz.UTF-8
34
B
-rw-r--r--
module.info.da
23
B
-rw-r--r--
module.info.da.UTF-8
29
B
-rw-r--r--
module.info.de
146
B
-rw-r--r--
module.info.de.UTF-8
158
B
-rw-r--r--
module.info.es
125
B
-rw-r--r--
module.info.es.UTF-8
137
B
-rw-r--r--
module.info.fr
28
B
-rw-r--r--
module.info.fr.UTF-8
34
B
-rw-r--r--
module.info.hu
28
B
-rw-r--r--
module.info.hu.UTF-8
36
B
-rw-r--r--
module.info.it
22
B
-rw-r--r--
module.info.it.UTF-8
28
B
-rw-r--r--
module.info.ja_JP.UTF-8
34
B
-rw-r--r--
module.info.ja_JP.euc
29
B
-rw-r--r--
module.info.ko_KR.UTF-8
34
B
-rw-r--r--
module.info.ko_KR.euc
29
B
-rw-r--r--
module.info.ms_MY
126
B
-rw-r--r--
module.info.ms_MY.UTF-8
138
B
-rw-r--r--
module.info.nl
26
B
-rw-r--r--
module.info.nl.UTF-8
32
B
-rw-r--r--
module.info.no
23
B
-rw-r--r--
module.info.no.UTF-8
29
B
-rw-r--r--
module.info.pl
125
B
-rw-r--r--
module.info.pl.UTF-8
145
B
-rw-r--r--
module.info.pt
31
B
-rw-r--r--
module.info.pt.UTF-8
37
B
-rw-r--r--
module.info.pt_BR
30
B
-rw-r--r--
module.info.pt_BR.UTF-8
37
B
-rw-r--r--
module.info.ru.UTF-8
46
B
-rw-r--r--
module.info.ru_RU
31
B
-rw-r--r--
module.info.ru_RU.UTF-8
49
B
-rw-r--r--
module.info.ru_SU
31
B
-rw-r--r--
module.info.sk
27
B
-rw-r--r--
module.info.sk.UTF-8
35
B
-rw-r--r--
module.info.sv
25
B
-rw-r--r--
module.info.sv.UTF-8
32
B
-rw-r--r--
module.info.tr
29
B
-rw-r--r--
module.info.zh_CN
27
B
-rw-r--r--
module.info.zh_TW.Big5
30
B
-rw-r--r--
negativeacl
13
B
-rw-r--r--
openssl.cnf
6.02
KB
-rw-r--r--
postinstall.pl
943
B
-rwxr-xr-x
save_acl.cgi
2.8
KB
-rwxr-xr-x
save_group.cgi
3.71
KB
-rwxr-xr-x
save_pass.cgi
1.67
KB
-rwxr-xr-x
save_sql.cgi
3.08
KB
-rwxr-xr-x
save_sync.cgi
637
B
-rwxr-xr-x
save_twofactor.cgi
2.2
KB
-rwxr-xr-x
save_unix.cgi
2.14
KB
-rwxr-xr-x
save_user.cgi
11.17
KB
-rwxr-xr-x
schema.cgi
559
B
-rwxr-xr-x
switch.cgi
673
B
-rwxr-xr-x
system_info.pl
1.56
KB
-rw-r--r--
twofactor.pl
709
B
-rwxr-xr-x
twofactor_form.cgi
1.96
KB
-rwxr-xr-x
useradmin_update.pl
2.92
KB
-rwxr-xr-x
webmin.schema
1.34
KB
-rw-r--r--
Delete
Unzip
Zip
${this.title}
Close
Code Editor : edit_user.cgi
#!/usr/bin/perl # edit_user.cgi # Edit a new or existing webmin user use strict; use warnings; require './acl-lib.pl'; our (%in, %text, %config, %access, $config_directory, $base_remote_user); &foreign_require("webmin", "webmin-lib.pl"); &ReadParse(); my ($u, %user, $safe); if ($in{'user'}) { # Editing an existing user &can_edit_user($in{'user'}) || &error($text{'edit_euser'}); &ui_print_header(undef, $text{'edit_title'}, ""); $u = &get_user($in{'user'}); $u || &error($text{'edit_egone'}); %user = %$u; my %gacl = &get_module_acl($in{'user'}, ''); $safe = $gacl{'_safe'}; } else { # Creating a new user $access{'create'} || &error($text{'edit_ecreate'}); if ($in{'clone'}) { # Initial settings come from clone $u = &get_user($in{'clone'}); %user = %$u; delete($user{'name'}); my %gacl = &get_module_acl($in{'clone'}, ''); $safe = $gacl{'_safe'}; } else { # User starts out empty %user = ( ); $safe = $in{'safe'}; } &ui_print_header(undef, $safe ? $text{'edit_title3'} : $text{'edit_title2'}, ""); } my $me = &get_user($base_remote_user); # Give up if readonly if ($user{'readonly'} && !$in{'readwrite'}) { my %minfo = &get_module_info($user{'readonly'}); print &text('edit_readonly', $minfo{'desc'}, "edit_user.cgi?user=$in{'user'}&readwrite=1"),"<p>\n"; &ui_print_footer("", $text{'index_return'}); exit; } print &ui_form_start("save_user.cgi", "post"); if ($in{'user'}) { print &ui_hidden("old", $user{'name'}); print &ui_hidden("oldpass", $user{'pass'}); } if ($in{'clone'}) { print &ui_hidden("clone", $in{'clone'}); } print &ui_hidden("safe", $safe); print &ui_hidden_table_start($text{'edit_rights'}, "width=100%", 2, "rights", 1, [ "width=30%" ]); # Username print &ui_table_row($text{'edit_user'}, $access{'rename'} || !$in{'user'} ? &ui_textbox("name", $user{'name'}, 30, 0, undef, "autocomplete=off") : $user{'name'}); # Source user for clone if ($in{'clone'}) { print &ui_table_row($text{'edit_cloneof'}, "<tt>$in{'clone'}</tt>"); } # Find and show parent group my @glist = &list_groups(); my @mcan = $access{'gassign'} eq '*' ? ( ( map { $_->{'name'} } @glist ), '_none' ) : split(/\s+/, $access{'gassign'}); my %gcan = map { $_, 1 } @mcan; my $memg; if (@glist && %gcan) { my @opts = ( ); if ($gcan{'_none'}) { push(@opts, [ undef, "<$text{'edit_none'}>" ]); } foreach my $g (@glist) { if (&indexof($user{'name'}, @{$g->{'members'}}) >= 0 || $in{'clone'} && &indexof($in{'clone'}, @{$g->{'members'}}) >= 0) { $memg = $g; } next if (!$gcan{$g->{'name'}} && $memg ne $g); push(@opts, [ $g->{'name'} ]); } print &ui_table_row($text{'edit_group'}, &ui_select("group", $memg->{'name'}, \@opts)); } # Show password type menu and current password my $passmode = !$in{'user'} ? 0 : $user{'pass'} eq 'x' ? 3 : $user{'sync'} ? 2 : $user{'pass'} eq 'e' ? 5 : $user{'pass'} eq '*LK*' ? 4 : 1; my %miniserv; &get_miniserv_config(\%miniserv); my @opts = ( [ 0, "$text{'edit_set'} .." ] ); if ($in{'user'}) { push(@opts, [ 1, $text{'edit_dont'} ]); } push(@opts, [ 3, $text{'edit_unix'} ]); if ($user{'sync'}) { push(@opts, [ 2, $text{'edit_same'} ]); } if ($miniserv{'extauth'}) { push(@opts, [ 5, $text{'edit_extauth'} ]); } push(@opts, [ 4, $text{'edit_lock'} ]); my ($lockbox, $tempbox) = ("", ""); if ($passmode == 1) { $lockbox = &ui_checkbox("lock", 1, $text{'edit_templock'}, $user{'pass'} =~ /^\!/ ? 1 : 0); } if ($passmode != 3 && $passmode != 4) { $tempbox = &ui_checkbox("temp", 1, $text{'edit_temppass'}, $user{'temppass'}); } my $expmsg = ""; if ($user{'lastchange'} && $miniserv{'pass_maxdays'}) { my $daysold = int((time() - $user{'lastchange'})/(24*60*60)); if ($miniserv{'pass_lockdays'} && $daysold > $miniserv{'pass_lockdays'}) { $expmsg = "<br>"."<font color=#ff0000>". &text('edit_passlocked', $daysold)."</font>"; } elsif ($daysold > $miniserv{'pass_maxdays'}) { $expmsg = "<br>"."<font color=#ffaa00>". &text('edit_passmax', $daysold)."</font>"; } elsif ($daysold) { $expmsg = "<br>".&text('edit_passold', $daysold); } else { $expmsg = "<br>".$text{'edit_passtoday'}; } } my $js = "onChange='form.pass.disabled = value != 0;'"; print &ui_table_row($text{'edit_pass'}, &ui_select("pass_def", $passmode, \@opts, 1, 0, 0, 0, $js)." ". &ui_password("pass", undef, 25, $passmode != 0, undef, "autocomplete=off"). ($lockbox || $tempbox ? "<br>" : "").$lockbox.$tempbox.$expmsg); # Real name print &ui_table_row($text{'edit_real'}, &ui_textbox("real", $user{'real'}, 60)); # Storage type if ($in{'user'}) { print &ui_table_row($text{'edit_proto'}, $text{'edit_proto_'.($user{'proto'} || '')}); } # Safe or not? my $smsg; if ($in{'user'} && $safe) { $smsg = &ui_radio("unsafe", 0, [ [ 0, $text{'edit_safe1'} ], [ 1, $text{'edit_safe0'} ] ]); } else { $smsg = $safe ? $text{'edit_safe1'} : $text{'edit_safe0'}; } print &ui_table_row($text{'edit_safe'}, $smsg); print &ui_hidden_table_end("rights"); # Start of UI options section my $showui = $access{'chcert'} || $access{'lang'} || $access{'cats'} || $access{'theme'}; if ($showui) { print &ui_hidden_table_start($text{'edit_ui'}, "width=100%", 2, "ui", 0, [ "width=30%" ]); } if ($access{'chcert'}) { # SSL certificate name print &ui_table_row($text{'edit_cert'}, &ui_opt_textbox("cert", $user{'cert'}, 50, $text{'edit_none'})); } if ($access{'lang'}) { # Current language print &ui_table_row($text{'edit_lang'}, &ui_radio("lang_def", $user{'lang'} ? 0 : 1, [ [ 1, $text{'default'} ], [ 0, &ui_select("lang", $user{'lang'}, [ map { [ $_->{'lang'}, $_->{'desc'}." (". uc($_->{'lang'}).")" ] } &list_languages() ]) ] ])); } if ($access{'cats'}) { # Show categorized modules? print &ui_table_row($text{'edit_notabs'}, &ui_radio("notabs", $user{'notabs'} || 0, [ [ 1, $text{'yes'} ], [ 2, $text{'no'} ], [ 0, $text{'default'} ] ])); } my @all = &webmin::list_themes(); my @themes = grep { !$_->{'overlay'} } @all; my @overlays = grep { $_->{'overlay'} } @all; if ($access{'theme'}) { # Current theme my @topts = ( ); push(@topts, [ "", $text{'edit_themedef'} ]); foreach my $t (@themes) { push(@topts, [ $t->{'dir'}, $t->{'desc'} ]); } print &ui_table_row($text{'edit_theme'}, &ui_radio("theme_def", defined($user{'theme'}) ? 0 : 1, [ [ 1, $text{'edit_themeglobal'} ], [ 0, &ui_select("theme", $user{'theme'}, \@topts) ] ])); } if ($access{'theme'} && @overlays) { # Overlay theme, if any print &ui_table_row($text{'edit_overlay'}, &ui_radio("overlay_def", defined($user{'overlay'}) ? 0 : 1, [ [ 1, $text{'edit_overlayglobal'} ], [ 0, &ui_select("overlay", $user{'overlay'}, [ map { [ $_->{'dir'}, $_->{'desc'} ] } @overlays ] ) ] ])); } if ($showui) { print &ui_hidden_table_end("ui"); } # Start of security options section my $showsecurity = $access{'logouttime'} || $access{'ips'} || $access{'minsize'} || &supports_rbac() && $access{'mode'} == 0 || $access{'times'}; if ($showsecurity) { print &ui_hidden_table_start($text{'edit_security'}, "width=100%", 2, "security", 0, [ "width=30%" ]); } if ($access{'logouttime'}) { # Show logout time print &ui_table_row($text{'edit_logout'}, &ui_opt_textbox("logouttime", $user{'logouttime'}, 5, $text{'default'})." ".$text{'edit_mins'}); } if ($access{'minsize'}) { # Show minimum password length, for just this user print &ui_table_row($text{'edit_minsize'}, &ui_opt_textbox("minsize", $user{'minsize'}, 5, $text{'default'})." ".$text{'edit_chars'}); } if ($access{'nochange'} && $miniserv{'pass_maxdays'}) { # Opt out of forced password change, for this user print &ui_table_row($text{'edit_nochange'}, &ui_radio("nochange", $user{'nochange'}, [ [ 0, $text{'yes'} ], [ 1, $text{'no'} ] ])); } if ($access{'ips'}) { # Allowed IP addresses print &ui_table_row(&hlink("<b>$text{'edit_ips'}</b>", "ips"), &ui_radio("ipmode", $user{'allow'} ? 1 : $user{'deny'} ? 2 : 0, [ [ 0, $text{'edit_all'}."<br>" ], [ 1, $text{'edit_allow'}."<br>" ], [ 2, $text{'edit_deny'}."<br>" ] ]). &ui_textarea("ips", join("\n", split(/\s+/, $user{'allow'} || $user{'deny'} || "")), 4, 30)); } if (&supports_rbac() && $access{'mode'} == 0) { # Deny access to modules not managed by RBAC? print &ui_table_row($text{'edit_rbacdeny'}, &ui_radio("rbacdeny", $user{'rbacdeny'} ? 1 : 0, [ [ 0, $text{'edit_rbacdeny0'} ], [ 1, $text{'edit_rbacdeny1'} ] ])); } if ($access{'times'}) { # Show allowed days of the week my %days = map { $_, 1 } split(/,/, $user{'days'} || ''); my $daysels = ""; for(my $i=0; $i<7; $i++) { $daysels .= &ui_checkbox("days", $i, $text{'day_'.$i}, $days{$i}); } print &ui_table_row($text{'edit_days'}, &ui_radio("days_def", !defined($user{'days'}) || $user{'days'} eq '' ? 1 : 0, [ [ 1, $text{'edit_alldays'} ], [ 0, $text{'edit_seldays'} ] ])."<br>". $daysels); # Show allow hour/minute range my ($hf, $mf) = split(/\./, $user{'hoursfrom'} || ''); my ($ht, $mt) = split(/\./, $user{'hoursto'} || ''); print &ui_table_row($text{'edit_hours'}, &ui_radio("hours_def", !defined($hf) || $hf eq '' ? 1 : 0, [ [ 1, $text{'edit_allhours'} ], [ 0, &text('edit_selhours', &ui_textbox("hours_hfrom", $hf, 2), &ui_textbox("hours_mfrom", $mf, 2), &ui_textbox("hours_hto", $ht, 2), &ui_textbox("hours_mto", $mt, 2)) ] ])); } # Two-factor details if ($user{'twofactor_provider'}) { my ($prov) = grep { $_->[0] eq $user{'twofactor_provider'} } &webmin::list_twofactor_providers(); print &ui_table_row($text{'edit_twofactor'}, &text('edit_twofactorprov', "<i>$prov->[1]</i>", "<tt>$user{'twofactor_id'}</tt>")."<br>\n". &ui_checkbox('cancel', 1, $text{'edit_twofactorcancel'}, 0)); } elsif ($miniserv{'twofactor_provider'}) { print &ui_table_row($text{'edit_twofactor'}, $text{'edit_twofactornone'}." ". &ui_submit($text{'edit_twofactoradd'}, "twofactor")); } print &ui_hidden_table_end("security"); # Work out which modules can be selected @mcan = $access{'mode'} == 1 ? @{$me->{'modules'}} : $access{'mode'} == 2 ? split(/\s+/, $access{'mods'}) : &list_modules(); my (%mcan, %has); map { $mcan{$_}++ } @mcan; map { $has{$_}++ } @{$user{'modules'}}; # Start of modules section my @groups = &list_groups(); print &ui_hidden_table_start(@groups ? $text{'edit_modsg'} : $text{'edit_mods'}, "width=100%", 2, "mods"); # Build list of modules, based on safe mode my @allmods = &list_module_infos(); if ($safe) { @allmods = grep { $has{$_->{'dir'}} || &get_safe_acl($_->{'dir'}) } @allmods; } # Show available modules, under categories my @mlist = grep { $access{'others'} || $has{$_->{'dir'}} || $mcan{$_->{'dir'}} } @allmods; my @links = ( &select_all_link("mod", 0, $text{'edit_selall'}), &select_invert_link("mod", 0, $text{'edit_invert'}) ); my @cats = &unique(map { $_->{'category'} || '' } @mlist); my %catnames; &read_file("$config_directory/webmin.catnames", \%catnames); my $grids = ""; foreach my $c (sort { $b cmp $a } @cats) { my @cmlist = grep { ($_->{'category'} || '') eq $c } @mlist; $grids .= "<b>".($catnames{$c} || $text{'category_'.$c} || '')."</b><br>\n"; my @grid = ( ); my $sw = 0; foreach my $m (@cmlist) { my $md = $m->{'dir'}; my $fromgroup = $memg && &indexof($md, @{$memg->{'modules'}}) >= 0; if ($mcan{$md} && $fromgroup) { # Module comes from group push(@grid, (sprintf "<img src=images/%s.gif> %s\n", $has{$md} ? 'tick' : 'empty', $m->{'desc'}). ($has{$md} ? &ui_hidden("mod", $md) : "")); } elsif ($mcan{$md}) { my $label; if ($access{'acl'} && $in{'user'} && !$safe) { # Show link for editing ACL $label = ui_link("edit_acl.cgi?" . "mod=" . urlize($m->{'dir'}) . "&user=". urlize($in{'user'}), $m->{'desc'}) . "\n"; } else { # No privileges to edit ACL $label = $m->{'desc'}; } push(@grid, &ui_checkbox("mod", $md, $label,$has{$md})); } else { push(@grid, (sprintf "<img src=images/%s.gif> %s\n", $has{$md} ? 'tick' : 'empty', $m->{'desc'})); } } $grids .= &ui_grid_table(\@grid, 2, 100, [ "width=50%", "width=50%" ]); } print &ui_table_row(undef, &ui_links_row(\@links). $grids. &ui_links_row(\@links), 2); print &ui_hidden_table_end("mods"); # Add global ACL section, but only if not set from the group my $groupglobal = $memg && -r "$config_directory/$memg->{'name'}.acl"; if ($access{'acl'} && !$groupglobal && $in{'user'} && !$safe) { print &ui_hidden_table_start($text{'edit_global'}, "width=100%", 2, "global", 0, [ "width=30%" ]); my %uaccess; %uaccess = &get_module_acl($in{'user'}, "", 1); print &ui_hidden("acl_security_form", 1); &foreign_require("", "acl_security.pl"); &foreign_call("", "acl_security_form", \%uaccess); print &ui_hidden_table_end("global"); } # Generate form end buttons my @buts = ( ); push(@buts, [ undef, $in{'user'} ? $text{'save'} : $text{'create'} ]); if ($in{'user'}) { if ($access{'create'}) { push(@buts, [ "but_clone", $text{'edit_clone'} ]); } if (&foreign_available("webminlog")) { push(@buts, [ "but_log", $text{'edit_log'} ]); } if ($access{'switch'} && $main::session_id) { push(@buts, [ "but_switch", $text{'edit_switch'} ]); } if ($access{'delete'}) { push(@buts, [ "but_delete", $text{'delete'} ]); } } print &ui_form_end(\@buts); &ui_print_footer("", $text{'index_return'});
Close