| Server IP : 37.9.174.138 / Your IP : 216.73.216.117 Web Server : Apache System : Linux vps6.backend.sk 6.12.100+deb13-amd64 #1 SMP PREEMPT_DYNAMIC Debian 6.12.100-1 (2026-07-30) x86_64 User : ftpuser ( 1001) PHP Version : 8.4.24 Disable Function : NONE MySQL : OFF | cURL : ON | WGET : ON | Perl : ON | Python : OFF | Sudo : ON | Pkexec : ON Directory : /usr/share/webmin/heartbeat/ |
Upload File : |
#!/usr/bin/perl
# save_auth.cgi
# Save authentication settings
require './heartbeat-lib.pl';
&ReadParse();
&error_setup($text{'auth_err'});
$conf = &get_auth_config();
$conf->{'auth'} = [ $in{'auth'} ];
$i = 1;
foreach $k ('crc', 'sha1', 'md5') {
if ($k eq 'crc') {
$conf->{$i} = [ $k ];
}
else {
$in{'auth'} != $i || $in{$k} =~ /^\S+$/ ||
&error($text{"auth_e$k"});
$conf->{$i} = [ $k, $in{$k} ];
}
$i++;
}
&save_auth_config($conf);
&redirect("");