Subversion Repositories ALCASAR

Compare Revisions

Ignore whitespace Rev 1297 → Rev 1298

/web/index.php
42,7 → 42,7
exit("Error opening the file ".CONF_FILE);
}
fclose($ouvre);
$hostname = alcasar.$conf["DOMAIN"];
$hostname = alcasar.".".$conf["DOMAIN"];
$network_pb = False;
$cert_add = "http://$hostname/certs";
$direct_access = False;
280,7 → 280,7
//search in the blacklist categories
if ((! $direct_access) && (! $network_pb)){
$pattern = preg_replace('/www./','',$_SERVER['HTTP_HOST']);
exec("grep -Re ^$pattern /etc/dansguardian/lists/blacklists/*/domains|cut -d'/' -f6", $output);
exec("grep -Re ^$pattern$ /etc/dansguardian/lists/blacklists/*/domains|cut -d'/' -f6", $output);
unset ($line);
foreach ($output as $row) {
$line=$line.(trim($row)).", ";