Below is a scroll-box filled with categories you can select to be added to your blacklist.
Each category has a list of known domains/sites that will be denied access by users of this network.
(Note: Using all categories at once will require 300Mb of free memory. The adult and porn categories are rather memory intensive, requiring 200Mb together.)
function ListFiles($dir) {
if($dh = opendir($dir)) {
$files = Array();
$inner_files = Array();
while($file = readdir($dh)) {
if($file != "." && $file != ".." && $file[0] != '.') {
if(is_dir($dir . "/" . $file)) {
array_push($files, $dir);
//$inner_files = ListFiles($dir . "/" . $file);
//if(is_array($inner_files)) $files = array_merge($files, $inner_files);
} else {
//array_push($files, $dir . "/" . $file);
}
}
}
closedir($dh);
return $files;
}
}
foreach (ListFiles('/usr/local/www/packages/dnsblacklist/') as $key=>$file){
echo $file ." \n";
}
\n";
foreach($category as $key => $value) {
$domain_count = line_number("blacklists/$key/domains");
//echo "name: ".$key." ";
echo " |
\n";
if ($config['installedpackages']['dnsblacklist']['config'][0][$key] == 1) {
// echo " | $key | $value | ($domain_count domains) | \n";
}
else {
// echo " | $key | $value | ($domain_count domains) | \n";
}
echo "
\n";
$x++;
}
echo "