#!/usr/local/bin/php "") { if($status == true) { $savemsg = "{$carp_counter} ip's have been disabled."; $carp_counter=find_number_of_created_carp_interfaces(); for($x=0; $x<$carp_counter; $x++) mwexec("/sbin/ifconfig carp{$x} delete"); mwexec("/sbin/sysctl net.inet.carp.allow=0"); } else { $savemsg = "Carp has been enabled."; mwexec("/sbin/sysctl net.inet.carp.allow=1"); mwexec("/usr/local/pkg/pf/carp.sh"); } } $status = get_carp_status(); ?>
=$title?>