"") { 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(); foreach($carp_ints as $int) { mwexec("/sbin/ifconfig $int down"); mwexec("/sbin/ifconfig $int destroy"); } $savemsg = "{$carp_counter} IPs have been disabled."; } else { $savemsg = "CARP has been enabled."; mwexec("/sbin/sysctl net.inet.carp.allow=1"); interfaces_carp_configure(); } } $status = get_carp_status(); $pgtitle = array("Status","CARP"); include("head.inc"); ?>