Subversion Repositories ALCASAR

Compare Revisions

Ignore whitespace Rev 2214 → Rev 2215

/web/index.php
497,9 → 497,22
</div>
<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)){}
?>
<?php
// 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
# Check if the SMS service is enable