| Server IP : 172.67.134.114 / Your IP : 104.23.197.123 Web Server : Apache/2.4.37 System : Linux almalinux.duckdns.org 4.18.0-553.111.1.el8_10.x86_64 #1 SMP Sun Mar 8 20:06:07 EDT 2026 x86_64 User : ricodeal ( 1046) PHP Version : 7.4.33 Disable Function : NONE MySQL : OFF | cURL : ON | WGET : ON | Perl : ON | Python : ON | Sudo : ON | Pkexec : ON Directory : /usr/libexec/webmin/virtualmin-htpasswd/ |
Upload File : |
use strict;
use warnings;
our ($module_name, %gconfig);
do 'virtualmin-htpasswd-lib.pl';
sub module_install
{
# Enable virtualmin-htpasswd module once
my %vconfig = &foreign_config("virtual-server");
my @p = split(/\s+/, $vconfig{'plugins'} || '');
my @ppe = split(/\s+/, $vconfig{'plugins_postinstall_enabled'} || '');
if (&indexof('virtualmin-nginx', @p) >= 0 &&
&indexof($module_name, @p) < 0 &&
&indexof($module_name, @ppe) < 0) {
&virtual_server::lock_file($virtual_server::module_config_file);
push(@p, $module_name);
push(@ppe, $module_name);
$vconfig{'plugins'} = join(" ", @p);
$vconfig{'plugins_postinstall_enabled'} = join(" ", @ppe);
&virtual_server::save_module_config(\%vconfig, 'virtual-server');
&virtual_server::unlock_file($virtual_server::module_config_file);
}
}