"") { if($status == true) { $carp_ints = get_all_carp_interfaces(); mwexec("/sbin/sysctl net.inet.carp.allow=0"); $carp_counter = find_number_of_created_carp_interfaces(); if (is_array($carp_ints)) { foreach($carp_ints as $int) { mwexec("/sbin/ifconfig $int down"); mwexec("/sbin/ifconfig $int destroy"); } } $savemsg = sprintf(gettext("%s IPs have been disabled."), $carp_counter); } else { $savemsg = gettext("CARP has been enabled."); mwexec("/sbin/sysctl net.inet.carp.allow=1"); interfaces_carp_setup(); } } $status = get_carp_status(); $pgtitle = array(gettext("Status"),gettext("CARP")); include("head.inc"); ?>
0) { if($status == false) { $carp_enabled = false; echo ""; } else { $carp_enabled = true; echo ""; } } ?>


" . gettext("Could not locate any defined CARP interfaces") . "."; echo "
"; include("fend.inc"); echo ""; exit; } if(is_array($config['virtualip']['vip'])) { foreach($config['virtualip']['vip'] as $carp) { if ($carp['mode'] != "carp") continue; $ipaddress = $carp['subnet']; $password = $carp['password']; $netmask = $carp['subnet_bits']; $vhid = $carp['vhid']; $advskew = $carp['advskew']; $carp_int = find_carp_interface($ipaddress); $status = get_carp_interface_status($carp_int); echo ""; $align = "valign='middle'"; if($carp_enabled == false) { $icon = ""; $status = "DISABLED"; } else { if($status == "MASTER") { $icon = ""; } else if($status == "BACKUP") { $icon = ""; } else if($status == "INIT") { $icon = ""; } } echo "
" . $carp_int . " "; echo "
" . $ipaddress . " "; echo "
{$icon}  " . $status . " "; echo ""; } } ?>

:
.

" . gettext("pfSync nodes") . ":
"; echo "

";
	system("/sbin/pfctl -vvss | /usr/bin/grep creator | /usr/bin/cut -d\" \" -f7 | /usr/bin/sort -u");
	echo "
"; ?>