| Server IP : 167.99.254.82 / Your IP : 216.73.216.188 Web Server : Apache System : Linux host.techisquad.com 5.15.0-190-generic #200-Ubuntu SMP Fri Aug 7 15:06:04 UTC 2026 x86_64 User : pawluxera ( 1011) PHP Version : 8.1.34 Disable Function : NONE MySQL : OFF | cURL : ON | WGET : ON | Perl : ON | Python : OFF | Sudo : ON | Pkexec : ON Directory : /usr/share/webmin/virtual-server/ |
Upload File : |
#!/usr/bin/perl
# Delete several proxy balancers
require './virtual-server-lib.pl';
&ReadParse();
&licence_status();
$d = &get_domain($in{'dom'});
&can_edit_domain($d) && &can_edit_forward() ||
&error($text{'balancers_ecannot'});
&has_proxy_balancer($d) || &error($text{'balancers_esupport'});
&error_setup($text{'balancers_derr'});
# Find them and delete them
@d = split(/\0/, $in{'d'});
@d || &error($text{'balancers_denone'});
&obtain_lock_web($d);
@balancers = &list_proxy_balancers($d);
foreach $path (@d) {
($b) = grep { $_->{'path'} eq $path } @balancers;
if ($b) {
$err = &delete_proxy_balancer($d, $b);
&error($err) if ($err);
}
}
# Log and return
&release_lock_web($d);
&set_all_null_print();
&run_post_actions();
&webmin_log("delete", "balancers", scalar(@d), { 'dom' => $d->{'dom'} });
&redirect("list_balancers.cgi?dom=$in{'dom'}");