%PDF-1.5 %���� ºaâÚÎΞ-ÌE1ÍØÄ÷{òò2ÿ ÛÖ^ÔÀá TÎ{¦?§®¥kuµùÕ5sLOšuY
Server IP : 49.231.201.246 / Your IP : 216.73.216.248 Web Server : Apache/2.4.18 (Ubuntu) System : Linux 246 4.4.0-210-generic #242-Ubuntu SMP Fri Apr 16 09:57:56 UTC 2021 x86_64 User : root ( 0) PHP Version : 7.0.33-0ubuntu0.16.04.16 Disable Function : 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_dispatch,pcntl_get_last_error,pcntl_strerror,pcntl_sigprocmask,pcntl_sigwaitinfo,pcntl_sigtimedwait,pcntl_exec,pcntl_getpriority,pcntl_setpriority, MySQL : OFF | cURL : ON | WGET : ON | Perl : ON | Python : ON | Sudo : ON | Pkexec : ON Directory : /usr/share/webmin/authentic-theme/ |
Upload File : |
#!/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>';