Subversion Repositories ALCASAR

Compare Revisions

Ignore whitespace Rev 2214 → Rev 2215

/CHANGELOG
14,6 → 14,7
- Add ACC access, Global traffic and Fail2Ban bans to activity report.
- On authentication, redirects to the status page and open the user's URL to a new tab (instead of the reverse).
- ALCASAR update process can be fully performed via SSH (preparing via ACC)
- Print blacklist categories of blocked domain on interception page.
BUGS
- The users can change their password
- managing uamallowed domain is operational again
/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