#!/usr/local/bin/php "") { $status = `/sbin/sysctl net.inet.carp.allow`; $status = str_replace("\n","",$status); $status = str_replace(" ","",$status); $status = split(":", $status); if($status[1] == "1") { $savemsg = "{$carp_counter} items 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"); } } /* grab the current status of carp */ $status = `/sbin/sysctl net.inet.carp.allow`; $status = str_replace("\n","",$status); $status = str_replace(" ","",$status); $status = split(":", $status); ?>
=$title?>