"; $in=""; $out=""; $white=""; $rules=$config['filter']['rule']; #echo "
";
foreach($rules as $rule){
	if ($rule['destination']['address'] == 'pfBlockerOutbound' && $out == ""){
		#print_r($rule);
		$out="";
	}
		
	if ($rule['source']['address']== 'pfBlockerInbound' && $in == "")
		$in="";
		
	if ($rule['source']['address']== 'pfBlockerWL' && $white == "")
		$white="";
		
	if ($rule['destination']['address']== 'pfBlockerWL' && $white == "")
		$white="";
}

$in=($in != ""?$in:"");
$out=($out != ""?$out:"");
$white=($white != ""?$white:"");

echo "    pfBlockerInbound".$in."";
echo "    pfBlockerOutbound".$out."";
echo "    pfBlockerWL".$white."";

echo"  ";
echo"  ";
if (file_exists("/usr/local/pkg/pfb_in.txt")) {
         $resultsIP = preg_match_all("/\//",file_get_contents("/usr/local/pkg/pfb_in.txt"),$matches);
         echo "    ". count($matches[0])." Networks";
}
if (file_exists("/usr/local/pkg/pfb_out.txt")) {
         $resultsIP = preg_match_all("/\//",file_get_contents("/usr/local/pkg/pfb_out.txt"),$matches);
         echo "    " . count($matches[0])." Networks";
}
if (file_exists("/usr/local/pkg/pfb_w.txt")) {
         $resultsIP = preg_match_all("/\//",file_get_contents("/usr/local/pkg/pfb_w.txt"),$matches);
         echo "    " . count($matches[0])." Networks";}

echo"  ";
echo"";
?>