/web/acc/admin/net_filter.php |
---|
204,7 → 204,7 |
while (!feof($pointeur)) |
{ |
$ligne = fgets($pointeur); |
if (preg_match('/^FILTERING="yes"/', $ligne, $r)) |
if (preg_match('/^PROTO_FILTERING="yes"/', $ligne, $r)) |
{ |
$result = True ; |
break; |
/web/acc/admin/auth_exceptions.php |
---|
27,6 → 27,7 |
$l_trusted_mac_info = "Information équipement"; |
$l_trusted_mac_del = "Supprimer de la liste"; |
$l_submit = "Enregistrer"; |
$l_submit2 = "Appliquer"; |
$l_add_to_list = "Ajouter"; |
} |
else { |
43,6 → 44,7 |
$l_trusted_mac_info = "Equipment information"; |
$l_trusted_mac_del = "Delete from list"; |
$l_submit = "Submit"; |
$l_submit2 = "Apply"; |
$l_add_to_list = "Add"; |
} |
if (isset($_POST['choix'])){ |
261,7 → 263,7 |
if ($display_form) |
{ |
echo "<input type='hidden' name='choix' value='del_mac'>"; |
echo "<input type='submit' value='$l_submit'>"; |
echo "<input type='submit' value='$l_submit2'>"; |
} |
echo "</form></td><td valign='middle' align='center'>"; |
echo "<FORM action='$_SERVER[PHP_SELF]' method='POST'>"; |
/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"); |
} |
exec ("sudo /usr/local/sbin/alcasar-nf.sh -on"); |
break; |
} |
} |