%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 (%in, $theme_webprefix, $current_theme, $config_directory, $get_user_level, %theme_text); do($ENV{'THEME_ROOT'} . "/authentic-lib.pl"); &webmin_user_is_admin() || &error($theme_text{'theme_error_access_not_root_user'}); &ui_print_header(undef, $theme_text{'theme_xhred_settings_right_theme_bgs_title'}, undef, undef, undef, 1); my $bg_content = $config_directory . "/$current_theme/background_content.png"; print '' . $theme_text{'settings_right_bgs_title'} . ' <p></p>'; print &ui_form_start("settings-backgrounds_save.cgi", "form-data"); print ' <div class="table-responsive"> <table class="table table-striped table-condensed table-subtable"> <thead><tr><th class="table-title"><b>' . $theme_text{'theme_xhred_config_configurable_options'} . '</b></th></tr></thead> <tbody> <tr> <td> <table class="sub_table_container table-hardcoded" width="100%"> <tbody> <tr class="atshover"> <td class="col_label"><b>' . $theme_text{'settings_right_bg_unauthenticated_users'} . '</b></td> <td class="col_value" >' . ui_yesno_radio("unauthenticated_bg", (-r $bg_content ? "1" : "0"), "1", "0") . '</td> <td class="col_value"> <button class="btn btn-default chooser_button file_chooser_button_preview' . (!-r $bg_content && ' disabled') . '" type="button"' . (-r $bg_content && ' data-image-bg_content data-image="data:image/png;base64,' . encode_base64(read_file_contents($bg_content)) . '"') . '> <i class="fa fa-fw fa-eye text-muted"></i> </button> <input class="ui_upload' . (!-r $bg_content && ' disabled') . '" type=file name="unauthenticated_bg_file" accept="image/*" size="40"> </td> </tr> </tbody> </table> </td> </tr> </tbody> </table> </div> <table class="ui_form_end_buttons" width="100%"> <tr> <td> <button class="btn btn-info file-editor-saved' . ($in{'saved'} ne 1 && ' hidden') . '" type="submit" name="save" id="saved"><i class="fa fa-fw fa-check-square-o"></i> ' . $theme_text{'settings_right_saved'} . ' </button> <button class="btn btn-success file-editor-save page_footer_ajax_submit' . ($in{'saved'} eq 1 && ' hidden') . '" type="submit" name="save" id="save"><i class="fa fa-fw fa-floppy-o"></i> ' . $theme_text{'theme_xhred_global_save'} . ' </button> </td> <td align="right"> <a class="btn btn-default page_footer_ajax_submit" href="' . $theme_webprefix . '/settings-editor_read.cgi"><i class="fa fa-fw fa-file-code-o"> </i> ' . $theme_text{'settings_right_theme_extensions'} . ' </a> <a class="btn btn-default page_footer_ajax_submit" href="' . $theme_webprefix . '/settings-logos.cgi"><i class="fa fa-fw fa-file-image-o"> </i> ' . $theme_text{'theme_xhred_settings_right_theme_logos'} . ' </a> </td> </tr> </table> </form>'; &ui_print_footer("tconfig.cgi", $theme_text{'right_return_theme_options'});