#!/usr/local/bin/php "") { if($status == true) { $savemsg = "{$carp_counter} ip's have been disabled."; $carp_counter=find_number_of_created_carp_interfaces(); mwexec("/sbin/sysctl net.inet.carp.allow=0"); for($x=0; $x<$carp_counter; $x++) { mwexec("/sbin/ifconfig carp{$x} down"); mwexec("/sbin/ifconfig carp{$x} delete"); } } 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?>