15,11 → 15,16 |
$Language = strtolower(substr(chop($Langue[0]),0,2)); } |
if($Language == 'fr'){ |
$l_title_antivir = "Antivirus de flux WEB"; |
$l_title_proto = "Filtrage de protocoles réseau"; |
$l_antivir_on="L'antivirus de flux WEB est actuellement activé"; |
$l_antivir_off="L'antivirus de flux WEB est actuellement désactivé"; |
$l_switch_antivir_on="Activer l'antivirus"; |
$l_switch_antivir_off="Désactiver l'antivirus"; |
$l_title_lan_ext = "Filtrage de l'accès au LAN extérieur"; |
$l_lan_ext_on="L'accès au réseau situé entre ALCASAR et le routeur Internet (box) est actuellement autorisé"; |
$l_lan_ext_off="L'accès au réseau situé entre ALCASAR et le routeur Internet (box) est actuellement interdit"; |
$l_switch_lan_ext_on="Autoriser l'accès"; |
$l_switch_lan_ext_off="Interdire l'accès"; |
$l_title_proto = "Filtrage de protocoles réseau"; |
$l_netfilter_on="Le filtrage de protocoles réseau est actuellement activé"; |
$l_netfilter_off="Le filtrage de protocoles réseau est actuellement désactivé"; |
$l_switch_on="Activer le filtrage"; |
36,11 → 41,16 |
} |
else { |
$l_title_antivir = "WEB antivirus"; |
$l_title_proto = "Network protocols filter"; |
$l_antivir_on="Actually, the WEB antivirus is on"; |
$l_antivir_off="Actually, the WEB antivirus is off"; |
$l_switch_antivir_on="Switch the antivirus on"; |
$l_switch_antivir_off="Switch the antivirus off"; |
$l_title_lan_ext = "External LAN access filtering"; |
$l_lan_ext_on="The access to the LAN located between ALCASAR and the Internet Gateway (box) is allowed"; |
$l_lan_ext_off="The access to the LAN located between ALCASAR and the Internet Gateway (box) is forbidden"; |
$l_switch_lan_ext_on="Allow access"; |
$l_switch_lan_ext_off="Deny access"; |
$l_title_proto = "Network protocols filter"; |
$l_netfilter_on="Actually, the network protocols filter is enable"; |
$l_netfilter_off="Actually, the network protocols filter is disable"; |
$l_switch_on="Switch the Filter on"; |
66,6 → 76,12 |
case 'AV_Off' : |
exec ("sudo /usr/local/sbin/alcasar-havp.sh -off"); |
break; |
case 'Lan_Ext_Filter_Off' : |
exec ("sudo /usr/local/sbin/alcasar-nf.sh -lan_ext_filter_off"); |
break; |
case 'Lan_Ext_Filter_On' : |
exec ("sudo /usr/local/sbin/alcasar-nf.sh -lan_ext_filter_on"); |
break; |
case 'NF_On' : |
exec ("sudo /usr/local/sbin/alcasar-nf.sh -on"); |
break; |
187,7 → 203,7 |
</td></tr> |
</table> |
<TABLE width="100%" border=0 cellspacing=0 cellpadding=0> |
<tr><th><?echo "$l_title_proto";?></th></tr> |
<tr><th><?echo "$l_title_lan_ext";?></th></tr> |
<tr bgcolor="#FFCC66"><td><img src="/images/pix.gif" width="1" height="2"></td></tr> |
</table> |
<TABLE width="100%" border=1 cellspacing=0 cellpadding=0> |
195,17 → 211,17 |
<?php |
if ($EXT_LAN_FILTERING == "on") |
{ |
echo "<CENTER><H3>$l_antivir_on</H3></CENTER>"; |
echo "<CENTER><H3>$l_lan_ext_off</H3></CENTER>"; |
echo "<FORM action='$_SERVER[PHP_SELF]' method=POST>"; |
echo "<input type=hidden name='choix' value=\"AV_Off\">"; |
echo "<input type=submit value=\"$l_switch_antivir_off\">"; |
echo "<input type=hidden name='choix' value=\"Lan_Ext_Filter_Off\">"; |
echo "<input type=submit value=\"$l_switch_lan_ext_on\">"; |
} |
else |
{ |
echo "<CENTER><H3>$l_antivir_off</H3></CENTER>"; |
echo "<CENTER><H3>$l_lan_ext_on</H3></CENTER>"; |
echo "<FORM action='$_SERVER[PHP_SELF]' method=POST>"; |
echo "<input type=hidden name='choix' value=\"AV_On\">"; |
echo "<input type=submit value=\"$l_switch_antivir_on\">"; |
echo "<input type=hidden name='choix' value=\"Lan_Ext_Filter_On\">"; |
echo "<input type=submit value=\"$l_switch_lan_ext_off\">"; |
} |
?> |
</FORM> |