"; if (file_exists($ipblocklist_file)) { echo " IP-Blocklist"; ob_start(); $results = exec("/sbin/pfctl -s rules | grep -c ipblocklist"); ob_end_clean(); if ($results > '2') echo ""; else echo ""; echo ""; } if (file_exists($countryblock_file)) { echo " Countryblock"; ob_start(); $results = exec("/sbin/pfctl -s rules | grep -c countryblock"); ob_end_clean(); if ($results > '0') echo ""; else echo ""; echo ""; } echo" "; echo" "; if (file_exists($ipblocklist_file)) { echo " "; ob_start(); $resultsIP = exec("/sbin/pfctl -T show -t ipblocklist |grep -v -c Z"); ob_end_clean(); echo $resultsIP; echo " Networks"; echo ""; } if (file_exists($countryblock_file)) { echo " "; ob_start(); $resultsCB = exec("pfctl -T show -t countryblock |grep -v -c Z"); ob_end_clean(); echo $resultsCB; echo " Networks"; echo ""; } echo" "; echo" "; if (file_exists($ipblocklist_file)) { ob_start(); $resultsIP = exec("tail -r /usr/local/www/packages/ipblocklist/errorOUT.txt"); ob_end_clean(); if ($resultsIP == "") { echo " "; } else { echo " "; echo "
"; echo $resultsIP; echo ""; echo ""; } } if (file_exists($countryblock_file)) { ob_start(); $resultsCB = exec("tail -r /usr/local/www/packages/countryblock/errorOUT.txt"); ob_end_clean(); if ($resultsCB == "") { echo " "; } else { echo " "; echo "
"; echo $resultsCB; echo ""; echo ""; } } echo" "; //echo" "; //if (file_exists($ipblocklist_file)) echo "  "; //if (file_exists($countryblock_file)) echo "  "; //echo" "; echo""; ?>