Subversion Repositories ALCASAR

Compare Revisions

Regard whitespace Rev 2214 → Rev 2215

/web/index.php
498,7 → 498,20
<div id="contenu_acces">
<div id="box_url">
<?php
# search here in the blacklist categories if we want to display it (if ((! $direct_access) && (! $network_pb)){}
// Search blacklist categories
if ((!$direct_access) && (!$network_pb) && (!isset($_GET['warn']))) {
$pattern = str_replace('www.', '', $_SERVER['HTTP_HOST']);
exec('grep -Re ' . escapeshellarg('^'.$pattern.'$') . " /etc/dansguardian/lists/blacklists/*/domains | cut -d'/' -f6", $output);
$lists = [];
foreach ($output as $line) {
$lists[] = $line;
}
 
echo $l_required_domain.' : '.htmlspecialchars($_SERVER['HTTP_HOST']);
if (!empty($lists)) {
echo "<br>$l_category ".implode(', ', $lists);
}
}
?>
</div>
<?php