/web/acc/admin/filter_exceptions.php |
---|
59,26 → 59,7 |
{ |
exec ("sudo service dansguardian restart"); |
} |
// test si filtrage réseau activé |
$pointeur = fopen("/usr/local/bin/alcasar-iptables.sh", "r"); |
$result = False ; |
if ($pointeur) |
{ |
while (!feof($pointeur)) |
{ |
$ligne = fgets($pointeur); |
if (preg_match('/^FILTERING="yes"/', $ligne, $r)) |
{ |
$result = True ; |
break; |
} |
} |
} |
fclose($pointeur); |
if ($result) |
{ |
exec ("sudo /usr/local/sbin/alcasar-nf.sh -on"); |
} |
break; |
} |
} |