Subversion Repositories ALCASAR

Compare Revisions

Ignore whitespace Rev 1294 → Rev 1295

/web/index.php
277,10 → 277,16
<div id="contenu_acces">
<div id="box_url">
<?php
if (! $direct_access){
//search in the blacklist categories
if ((! $direct_access) && (! $network_pb)){
$pattern = preg_replace('/www./','',$_SERVER['HTTP_HOST']);
$domain_bl = exec("grep -Re ^$pattern /etc/dansguardian/lists/blacklists/*/domains|cut -d'/' -f6");
echo "$l_required_domain : $_SERVER[HTTP_HOST]<BR>$l_category $domain_bl";
exec("grep -Re ^$pattern /etc/dansguardian/lists/blacklists/*/domains|cut -d'/' -f6", $output);
unset ($line);
foreach ($output as $row) {
$line=$line.(trim($row)).", ";
}
echo "$l_required_domain : $_SERVER[HTTP_HOST]";
if ($line != "") { echo "<BR>".rtrim ("$l_category $line", ", ");}
}
?>
</div>