#!/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_logos_title'}, undef, undef, undef, 1); my $lga = $config_directory . "/$current_theme/logo.png"; my $lgg = $config_directory . "/$current_theme/logo_welcome.png"; print '' . $theme_text{'settings_right_logos_title'} . ' <p></p>'; print &ui_form_start("settings-logos_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_logo_authenticated_users'} . '</b></td> <td class="col_value">' . ui_yesno_radio("authenticated_logo", (-r $lga ? "1" : "0"), "1", "0") . '</td> <td class="col_value"> <button class="btn btn-default chooser_button file_chooser_button_preview' . (!-r $lga && ' disabled') . '" type="button"' . (-r $lga && ' data-image-lga data-image="data:image/png;base64,' . encode_base64(read_file_contents($lga)) . '"') . '> <i class="fa fa-fw fa-eye text-muted"></i> </button> <input class="ui_upload' . (!-r $lga && ' disabled') . '" type=file name="authenticated_logo_file" accept=".png" size="40" > </td> </tr> <tr class="atshover"> <td class="col_label"><b>' . $theme_text{'settings_right_logo_unauthenticated_users'} . '</b></td> <td class="col_value" >' . ui_yesno_radio("unauthenticated_logo", (-r $lgg ? "1" : "0"), "1", "0") . '</td> <td class="col_value"> <button class="btn btn-default chooser_button file_chooser_button_preview' . (!-r $lgg && ' disabled') . '" type="button"' . (-r $lgg && ' data-image-lgg data-image="data:image/png;base64,' . encode_base64(read_file_contents($lgg)) . '"') . '> <i class="fa fa-fw fa-eye text-muted"></i> </button> <input class="ui_upload' . (!-r $lgg && ' disabled') . '" type=file name="unauthenticated_logo_file" accept=".png" 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-backgrounds.cgi"><i class="fa fa-fw fa-image"> </i> ' . $theme_text{'theme_xhred_settings_right_theme_bgs'} . ' </a> </td> </tr> </table> </form>'; &ui_print_footer("tconfig.cgi", $theme_text{'right_return_theme_options'});
Name | Type | Size | Permission | Actions |
---|---|---|---|---|
extensions | Folder | 0755 |
|
|
help | Folder | 0755 |
|
|
images | Folder | 0755 |
|
|
lang | Folder | 0755 |
|
|
modules | Folder | 0755 |
|
|
unauthenticated | Folder | 0755 |
|
|
401.cgi | File | 342 B | 0755 |
|
403.cgi | File | 342 B | 0755 |
|
404.cgi | File | 342 B | 0755 |
|
CHANGELOG.md | File | 77.62 KB | 0644 |
|
FUNDING.yml | File | 102 B | 0644 |
|
LICENSE | File | 1.04 KB | 0644 |
|
THEME.pgp | File | 3.04 KB | 0644 |
|
authentic-funcs.pl | File | 28.56 KB | 0644 |
|
authentic-init.pl | File | 64.46 KB | 0644 |
|
authentic-lib.pl | File | 99.71 KB | 0644 |
|
authentic.pl | File | 52.32 KB | 0644 |
|
config | File | 139 B | 0644 |
|
config.cgi | File | 6.52 KB | 0755 |
|
config_save.cgi | File | 2.14 KB | 0755 |
|
index.cgi | File | 309 B | 0755 |
|
File | 0 B | 0 |
|
|
File | 0 B | 0 |
|
|
manifest-webmin.json | File | 986 B | 0644 |
|
manifest.template | File | 920 B | 0644 |
|
mconfig.cgi | File | 6.57 KB | 0755 |
|
mconfig_save.cgi | File | 1.68 KB | 0755 |
|
navigation-lib.pl | File | 54.64 KB | 0644 |
|
pam_login.cgi | File | 6.71 KB | 0755 |
|
password_form.cgi | File | 4.07 KB | 0755 |
|
postinstall-usermin.pl | File | 264 B | 0755 |
|
postinstall.pl | File | 645 B | 0755 |
|
service-worker.js | File | 141 B | 0644 |
|
session_login.cgi | File | 8.55 KB | 0755 |
|
settings-backgrounds.cgi | File | 3.61 KB | 0755 |
|
settings-backgrounds_save.cgi | File | 1.16 KB | 0755 |
|
settings-editor_favorites_read.cgi | File | 897 B | 0755 |
|
settings-editor_favorites_write.cgi | File | 574 B | 0755 |
|
settings-editor_read.cgi | File | 2.4 KB | 0755 |
|
settings-editor_write.cgi | File | 973 B | 0755 |
|
settings-favorites_save.cgi | File | 632 B | 0755 |
|
settings-lib.pl | File | 651 B | 0644 |
|
settings-logos.cgi | File | 4.61 KB | 0755 |
|
settings-logos_save.cgi | File | 1.75 KB | 0755 |
|
stats.cgi | File | 8.38 KB | 0755 |
|
sysinfo.cgi | File | 6.4 KB | 0755 |
|
tconfig-lib.pl | File | 33.41 KB | 0644 |
|
tconfig.cgi | File | 6.1 KB | 0755 |
|
theme-update.sh | File | 8.08 KB | 0755 |
|
theme.info | File | 337 B | 0644 |
|
theme.info.no | File | 24 B | 0644 |
|
uconfig.cgi | File | 6.27 KB | 0755 |
|
uconfig_save.cgi | File | 1.99 KB | 0755 |
|
uninstall-usermin.pl | File | 170 B | 0755 |
|
uninstall.pl | File | 346 B | 0755 |
|
xhr-lib.pl | File | 10.22 KB | 0644 |
|
xhr.cgi | File | 355 B | 0755 |
|