/
usr
/
share
/
usermin
/
authentic-theme
/
/usr/share/usermin/authentic-theme
mkdir
upload
Name
Size
Mode
Actions
extensions/
-
0755
rm
help/
-
0755
rm
images/
-
0755
rm
lang/
-
0755
rm
modules/
-
0755
rm
unauthenticated/
-
0755
rm
401.cgi
342
0755
edit
dl
rm
403.cgi
342
0755
edit
dl
rm
404.cgi
342
0755
edit
dl
rm
authentic-funcs.pl
29874
0644
edit
dl
rm
authentic-init.pl
83560
0644
edit
dl
rm
authentic-lib.pl
90283
0644
edit
dl
rm
authentic.pl
61202
0644
edit
dl
rm
config
139
0644
edit
dl
rm
config.cgi
6893
0755
edit
dl
rm
config_save.cgi
2445
0755
edit
dl
rm
FUNDING.yml
102
0644
edit
dl
rm
index.cgi
309
0755
edit
dl
rm
LICENSE
1067
0644
edit
dl
rm
login-lib-funcs.pl
11759
0644
edit
dl
rm
login-lib.pl
1518
0644
edit
dl
rm
manifest-usermin.json
982
0644
edit
dl
rm
manifest.template
920
0644
edit
dl
rm
mconfig.cgi
6747
0755
edit
dl
rm
mconfig_save.cgi
1723
0755
edit
dl
rm
navigation-lib.pl
64628
0644
edit
dl
rm
pam_login.cgi
3481
0755
edit
dl
rm
password_form.cgi
4008
0755
edit
dl
rm
postinstall-usermin.pl
264
0755
edit
dl
rm
postinstall.pl
645
0755
edit
dl
rm
service-worker.js
94
0644
edit
dl
rm
session_login.cgi
4621
0755
edit
dl
rm
settings-backgrounds.cgi
3702
0755
edit
dl
rm
settings-backgrounds_save.cgi
1667
0755
edit
dl
rm
settings-editor_favorites_read.cgi
897
0755
edit
dl
rm
settings-editor_favorites_write.cgi
574
0755
edit
dl
rm
settings-editor_read.cgi
2440
0755
edit
dl
rm
settings-editor_write.cgi
973
0755
edit
dl
rm
settings-favorites_save.cgi
632
0755
edit
dl
rm
settings-lib.pl
651
0644
edit
dl
rm
settings-logos.cgi
4725
0755
edit
dl
rm
settings-logos_save.cgi
2401
0755
edit
dl
rm
stats-lib-funcs.pl
17390
0644
edit
dl
rm
stats-lib.pl
432
0644
edit
dl
rm
stats.cgi
3135
0755
edit
dl
rm
stats.pl
7721
0755
edit
dl
rm
sysinfo.cgi
7874
0755
edit
dl
rm
tconfig-lib.pl
39224
0644
edit
dl
rm
tconfig.cgi
4542
0755
edit
dl
rm
theme-update.sh
8408
0755
edit
dl
rm
theme.info
379
0644
edit
dl
rm
theme.info.no
24
0644
edit
dl
rm
THEME.pgp
3102
0644
edit
dl
rm
uconfig.cgi
6442
0755
edit
dl
rm
uconfig_save.cgi
2034
0755
edit
dl
rm
uninstall-usermin.pl
170
0755
edit
dl
rm
uninstall.pl
346
0755
edit
dl
rm
xhr-lib.pl
29310
0644
edit
dl
rm
xhr.cgi
355
0755
edit
dl
rm
Edit:
/usr/share/usermin/authentic-theme/tconfig.cgi
(4542B)
#!/usr/bin/perl # # Authentic Theme (https://github.com/authentic-theme/authentic-theme) # Copyright Ilia Rostovtsev <ilia@virtualmin.com> # Licensed under MIT (https://github.com/authentic-theme/authentic-theme/blob/master/LICENSE) # use strict; our ($remote_user, %gconfig, %text, %in, %theme_config, %theme_text, $has_usermin, $get_user_level); do($ENV{'THEME_ROOT'} . "/authentic-lib.pl"); do($ENV{'THEME_ROOT'} . "/tconfig-lib.pl"); (!&webmin_user_is_admin() && $theme_config{'settings_theme_config_admins_only_privileged'} eq 'true') && error($theme_text{'settings_theme_config_admins_only_privileged_error'}); ui_print_header(($theme_text{'settings_subtitle'} . ' <tt>' . $remote_user . '</tt>'), $theme_text{'settings_title'}, undef, undef, undef, 1); # Define all available options my $settings_data = theme_settings_data(); my @settings = @{ $settings_data->{'settings'} }; my @excluded_options = @{ $settings_data->{'excluded_options'} }; my @sections = @{ $settings_data->{'sections'} }; my @config_quick_access = @{ $settings_data->{'config_quick_access'} }; my ($section, $sid, $sname); if (@sections > 1) { print ' <script type="application/javascript">'; print 'var config_quick_access = ' . convert_to_json(\@config_quick_access); print "</script>\n"; # Work out template section to edit $in{'section'} ||= $sections[0]->[0]; my $idx = &indexof($in{'section'}, map {$_->[0]} @sections); if ($in{'nprev'}) { $idx--; $idx = @sections - 1 if ($idx < 0); } elsif ($in{'nnext'}) { $idx++; $idx = 0 if ($idx >= @sections); } $in{'section'} = $sections[$idx]->[0]; print &ui_form_start("tconfig.cgi"); print &ui_span_local($theme_text{'settings_config_configuration_category'}, 'row-block-label') . "\n"; print &ui_select("section", $in{'section'}, \@sections, 1, 0, 0, 0, "onChange='form.submit()'"); print &ui_button_group_local( ( &ui_dropdown_local([(&ui_textbox('search'))], { 'title' => $theme_text{'config_search_options_all'}, 'icon' => 'fa fa-md fa-file-find', 'container-class' => 'elm-rel-z config-search', 'button-class' => 'btn-default elm-rel-z heighter-28 pd-lr-8', 'ul-class' => 'pd-tb-0', }) . &ui_submit($theme_text{'extensions_mail_pagination_left'}, "nprev", undef, undef, "fa fa-fw fa-arrow-circle-o-left", "heighter-28 margined-left-5") . &ui_submit($theme_text{'extensions_mail_pagination_right'}, "nnext", undef, undef, "fa fa-fw fa-arrow-circle-o-right", "heighter-28") ), 'end_submits'); print &ui_form_end(); ($section) = grep {$_->[0] eq $in{'section'}} @sections; $sid = "$section->[0]"; $sname = "$section->[1]"; } print ui_form_start("tconfig.cgi", "post", undef, 'id="settings_"'); print &ui_hidden("section", $in{'section'}), "\n"; print ui_table_start($sname, undef, 2); foreach my $s (@settings) { if ($s->[0]->{'id'} eq $sid) { if ($s->[0]->{'desc'}) { print ui_table_row(undef, "<div class=\"table-cell-padded\">$s->[0]->{'desc'}</div>", 2); } for (my $i = 0; $i < scalar(@{ $s->[0]->{'data'} }); $i++) { print ui_table_row(@{ $s->[0]->{'data'} }[$i]->[0], @{ $s->[0]->{'data'} }[$i]->[1]); } } } print ui_table_end(); # Print footer with left and my @theme_controls = theme_controls($sname); print ' <table class="ui_form_end_buttons" style="width:100%"> <tbody> <tr> <td> ' . $theme_controls[0] . ' </td> <td> ' . $theme_controls[1] . ' </td> </tr> </tbody> </table>';
Save
cmd:
run