#!/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, %gconfig, %text, $current_theme, $config_directory, $remote_user, $title, %theme_config, %theme_text, $get_user_level, $has_virtualmin, $has_usermin, $has_usermin_version, $has_usermin_conf_dir, $theme_webprefix, $trust_unknown_referers); $trust_unknown_referers = 1; do($ENV{'THEME_ROOT'} . "/authentic-lib.pl"); header($title, 'stripped'); print '<div class="container-fluid col-lg-10 col-lg-offset-1" data-dcontainer="1">' . "\n"; # Get system info to show my @info = theme_list_combined_system_info(); my ($cpu_percent, $mem_percent, $virt_percent, $disk_percent, $host, $os, $webmin_version, $virtualmin_version, $cloudmin_version, $authentic_theme_version, $local_time, $kernel_arch, $cpu_type, $cpu_temperature, $cpu_fans, $hdd_temperature, $uptime, $running_proc, $load, $real_memory, $virtual_memory, $disk_space, $package_message, $csf_title, $csf_data, $csf_remote_version, $authentic_remote_version ) = get_sysinfo_vars(\@info); if ($get_user_level ne '3') { print_sysstats_panel_start(\@info); # Easypie charts if ($theme_config{'settings_sysinfo_easypie_charts'} ne 'false') { print_easypie_charts($cpu_percent, $mem_percent, $virt_percent, $disk_percent); } print '<table class="table table-hover margined-top-25"><tbody>' . "\n"; my @table_data; # Hostname if ($host) { push @table_data, [theme_text('body_host'), $host, 'sysinfo_host']; } # Operating system if ($os) { push @table_data, [theme_text('body_os'), $os, 'sysinfo_os']; } # Webmin and Usermin versions if ($webmin_version) { push @table_data, [theme_text('body_webmin'), $webmin_version, 'sysinfo_webmin_version']; # Usermin version if ($has_usermin) { push @table_data, [theme_text('body_usermin'), product_version_update($has_usermin_version, 'u'), 'sysinfo_usermin_version']; } } # Virtualmin version if ($virtualmin_version) { push @table_data, [$theme_text{'right_virtualmin'}, $virtualmin_version, 'sysinfo_virtualmin_version']; } # Cloudmin version if ($cloudmin_version) { push @table_data, [$theme_text{'right_vm2'}, $cloudmin_version, 'sysinfo_cloudmin_version']; } # Theme version if ($authentic_theme_version) { push @table_data, [$theme_text{'theme_version'}, $authentic_theme_version, 'sysinfo_authentic_theme_version']; } # ConfigServer Security & Firewall version if ($csf_title && $csf_data) { push @table_data, [$csf_title, $csf_data, 'sysinfo_csf_data']; } #System time if ($local_time) { push @table_data, [theme_text('body_time'), $local_time, 'sysinfo_local_time']; } # Kernel and arch if ($kernel_arch) { push @table_data, [theme_text('body_kernel'), $kernel_arch, 'sysinfo_kernel_arch']; } # CPU Type and cores if ($cpu_type) { push @table_data, [$theme_text{'body_cpuinfo'}, $cpu_type, 'sysinfo_cpu_type']; } # Temperatures if ($cpu_temperature) { my $cores = () = $cpu_temperature =~ /°/g; my $label = $cores > 1 ? $theme_text{'body_cputemps'} : $theme_text{'body_cputemp'}; push @table_data, [$label, $cpu_temperature, 'sysinfo_cpu_temperature']; if ($cpu_fans) { my $fans = () = $cpu_fans =~ /$theme_text{'body_cpufan_rpm'}/g; $label = $fans > 1 ? $theme_text{'body_cpufans'} : $theme_text{'body_cpufan'}; push @table_data, [$label, $cpu_fans, 'sysinfo_cpu_fans']; } } if ($hdd_temperature) { push @table_data, [$theme_text{'body_drivetemps'}, $hdd_temperature, 'sysinfo_hdd_temperature']; } # System uptime if ($uptime) { push @table_data, [$theme_text{'body_uptime'}, $uptime, 'sysinfo_uptime']; } # Running processes if ($running_proc) { push @table_data, [$theme_text{'body_procs'}, $running_proc, 'sysinfo_proc']; } # Load averages if ($load) { push @table_data, [$theme_text{'body_cpu'}, $load, 'sysinfo_cpu']; } # Real memory details if ($real_memory) { push @table_data, [$theme_text{'body_real'}, $real_memory, 'sysinfo_mem']; } # Virtual memory details if ($virtual_memory) { push @table_data, [$theme_text{'body_virt'}, $virtual_memory, 'sysinfo_virt']; } # Local disk space if ($disk_space) { push @table_data, [$theme_text{'body_disk'}, $disk_space, 'sysinfo_disk']; } # Package updates if ($package_message) { push @table_data, [$theme_text{'body_updates'}, $package_message, 'sysinfo_package_message']; } while (scalar(@table_data) > 0) { my $left = shift(@table_data); my $right = shift(@table_data); print_table_row_responsive(@$left, @$right); } print '</tbody></table>' . "\n"; # Print System Warning print get_sysinfo_warning(\@info); print_sysstats_panel_end(); print get_extended_sysinfo(\@info, '-1'); } else { my @mailbox = grep {$_->{'module'} eq 'mailbox'} @info; my @quota = grep {$_->{'module'} eq 'quota'} @info; my $prod = &get_product_name(); print_sysstats_panel_start(); print_sysstats_table(\@mailbox, \@quota, $prod); print_sysstats_panel_end(); # Common modules my @commonmods = grep {&foreign_available($_)} ("filter", "changepass", "gnupg", "filemin", "mysql", "postgresql", "datastore"); my $commonmods_data = ui_table_start(undef, "data-class=\"no-inner-formatting\"", 2); if (@commonmods) { foreach my $mod (@commonmods) { my %minfo = &get_module_info($mod); $commonmods_data .= ui_table_row($minfo{'desc'}, "<a href='$theme_webprefix/$mod/'>" . ($text{ 'common_' . $mod } || $minfo{'longdesc'}) . "</a>"); } } $commonmods_data .= ui_table_end(); print_panel(1, 'account_functions', $theme_text{'theme_left_mail_account_functions'}, ($commonmods_data)); } print '</div>' . "\n"; footer('stripped');
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 |
|