Line 13... |
Line 13... |
13 |
if(isset($_SERVER['HTTP_ACCEPT_LANGUAGE'])){
|
13 |
if(isset($_SERVER['HTTP_ACCEPT_LANGUAGE'])){
|
14 |
$Langue = explode(",",$_SERVER['HTTP_ACCEPT_LANGUAGE']);
|
14 |
$Langue = explode(",",$_SERVER['HTTP_ACCEPT_LANGUAGE']);
|
15 |
$Language = strtolower(substr(chop($Langue[0]),0,2)); }
|
15 |
$Language = strtolower(substr(chop($Langue[0]),0,2)); }
|
16 |
if($Language == 'fr'){
|
16 |
if($Language == 'fr'){
|
17 |
$l_title_antivir = "Antivirus de flux WEB";
|
17 |
$l_title_antivir = "Antivirus de flux WEB";
|
18 |
$l_title_proto = "Filtrage de protocoles réseau";
|
- |
|
19 |
$l_antivir_on="L'antivirus de flux WEB est actuellement activé";
|
18 |
$l_antivir_on="L'antivirus de flux WEB est actuellement activé";
|
20 |
$l_antivir_off="L'antivirus de flux WEB est actuellement désactivé";
|
19 |
$l_antivir_off="L'antivirus de flux WEB est actuellement désactivé";
|
21 |
$l_switch_antivir_on="Activer l'antivirus";
|
20 |
$l_switch_antivir_on="Activer l'antivirus";
|
22 |
$l_switch_antivir_off="Désactiver l'antivirus";
|
21 |
$l_switch_antivir_off="Désactiver l'antivirus";
|
- |
|
22 |
$l_title_lan_ext = "Filtrage de l'accès au LAN extérieur";
|
- |
|
23 |
$l_lan_ext_on="L'accès au réseau situé entre ALCASAR et le routeur Internet (box) est actuellement autorisé";
|
- |
|
24 |
$l_lan_ext_off="L'accès au réseau situé entre ALCASAR et le routeur Internet (box) est actuellement interdit";
|
- |
|
25 |
$l_switch_lan_ext_on="Autoriser l'accès";
|
- |
|
26 |
$l_switch_lan_ext_off="Interdire l'accès";
|
- |
|
27 |
$l_title_proto = "Filtrage de protocoles réseau";
|
23 |
$l_netfilter_on="Le filtrage de protocoles réseau est actuellement activé";
|
28 |
$l_netfilter_on="Le filtrage de protocoles réseau est actuellement activé";
|
24 |
$l_netfilter_off="Le filtrage de protocoles réseau est actuellement désactivé";
|
29 |
$l_netfilter_off="Le filtrage de protocoles réseau est actuellement désactivé";
|
25 |
$l_switch_on="Activer le filtrage";
|
30 |
$l_switch_on="Activer le filtrage";
|
26 |
$l_switch_off="Désactiver le filtrage";
|
31 |
$l_switch_off="Désactiver le filtrage";
|
27 |
$l_comment_on="À l'exclusion du WEB (port 80), les protocoles réseau sont interdits.<BR>Choisissez ci-dessous les protocoles que vous autorisez";
|
32 |
$l_comment_on="À l'exclusion du WEB (port 80), les protocoles réseau sont interdits.<BR>Choisissez ci-dessous les protocoles que vous autorisez";
|
Line 34... |
Line 39... |
34 |
$l_add_to_list="Ajouter à la liste";
|
39 |
$l_add_to_list="Ajouter à la liste";
|
35 |
$l_save_modif="Enregistrer les modifications";
|
40 |
$l_save_modif="Enregistrer les modifications";
|
36 |
}
|
41 |
}
|
37 |
else {
|
42 |
else {
|
38 |
$l_title_antivir = "WEB antivirus";
|
43 |
$l_title_antivir = "WEB antivirus";
|
39 |
$l_title_proto = "Network protocols filter";
|
- |
|
40 |
$l_antivir_on="Actually, the WEB antivirus is on";
|
44 |
$l_antivir_on="Actually, the WEB antivirus is on";
|
41 |
$l_antivir_off="Actually, the WEB antivirus is off";
|
45 |
$l_antivir_off="Actually, the WEB antivirus is off";
|
42 |
$l_switch_antivir_on="Switch the antivirus on";
|
46 |
$l_switch_antivir_on="Switch the antivirus on";
|
43 |
$l_switch_antivir_off="Switch the antivirus off";
|
47 |
$l_switch_antivir_off="Switch the antivirus off";
|
- |
|
48 |
$l_title_lan_ext = "External LAN access filtering";
|
- |
|
49 |
$l_lan_ext_on="The access to the LAN located between ALCASAR and the Internet Gateway (box) is allowed";
|
- |
|
50 |
$l_lan_ext_off="The access to the LAN located between ALCASAR and the Internet Gateway (box) is forbidden";
|
- |
|
51 |
$l_switch_lan_ext_on="Allow access";
|
- |
|
52 |
$l_switch_lan_ext_off="Deny access";
|
- |
|
53 |
$l_title_proto = "Network protocols filter";
|
44 |
$l_netfilter_on="Actually, the network protocols filter is enable";
|
54 |
$l_netfilter_on="Actually, the network protocols filter is enable";
|
45 |
$l_netfilter_off="Actually, the network protocols filter is disable";
|
55 |
$l_netfilter_off="Actually, the network protocols filter is disable";
|
46 |
$l_switch_on="Switch the Filter on";
|
56 |
$l_switch_on="Switch the Filter on";
|
47 |
$l_switch_off="Switch the Filter off";
|
57 |
$l_switch_off="Switch the Filter off";
|
48 |
$l_comment_on="(choose the authorized network protocols)";
|
58 |
$l_comment_on="(choose the authorized network protocols)";
|
Line 64... |
Line 74... |
64 |
exec ("sudo /usr/local/sbin/alcasar-havp.sh -on");
|
74 |
exec ("sudo /usr/local/sbin/alcasar-havp.sh -on");
|
65 |
break;
|
75 |
break;
|
66 |
case 'AV_Off' :
|
76 |
case 'AV_Off' :
|
67 |
exec ("sudo /usr/local/sbin/alcasar-havp.sh -off");
|
77 |
exec ("sudo /usr/local/sbin/alcasar-havp.sh -off");
|
68 |
break;
|
78 |
break;
|
- |
|
79 |
case 'Lan_Ext_Filter_Off' :
|
- |
|
80 |
exec ("sudo /usr/local/sbin/alcasar-nf.sh -lan_ext_filter_off");
|
- |
|
81 |
break;
|
- |
|
82 |
case 'Lan_Ext_Filter_On' :
|
- |
|
83 |
exec ("sudo /usr/local/sbin/alcasar-nf.sh -lan_ext_filter_on");
|
- |
|
84 |
break;
|
69 |
case 'NF_On' :
|
85 |
case 'NF_On' :
|
70 |
exec ("sudo /usr/local/sbin/alcasar-nf.sh -on");
|
86 |
exec ("sudo /usr/local/sbin/alcasar-nf.sh -on");
|
71 |
break;
|
87 |
break;
|
72 |
case 'NF_Off' :
|
88 |
case 'NF_Off' :
|
73 |
exec ("sudo /usr/local/sbin/alcasar-nf.sh -off");
|
89 |
exec ("sudo /usr/local/sbin/alcasar-nf.sh -off");
|
Line 185... |
Line 201... |
185 |
?>
|
201 |
?>
|
186 |
</FORM>
|
202 |
</FORM>
|
187 |
</td></tr>
|
203 |
</td></tr>
|
188 |
</table>
|
204 |
</table>
|
189 |
<TABLE width="100%" border=0 cellspacing=0 cellpadding=0>
|
205 |
<TABLE width="100%" border=0 cellspacing=0 cellpadding=0>
|
190 |
<tr><th><?echo "$l_title_proto";?></th></tr>
|
206 |
<tr><th><?echo "$l_title_lan_ext";?></th></tr>
|
191 |
<tr bgcolor="#FFCC66"><td><img src="/images/pix.gif" width="1" height="2"></td></tr>
|
207 |
<tr bgcolor="#FFCC66"><td><img src="/images/pix.gif" width="1" height="2"></td></tr>
|
192 |
</table>
|
208 |
</table>
|
193 |
<TABLE width="100%" border=1 cellspacing=0 cellpadding=0>
|
209 |
<TABLE width="100%" border=1 cellspacing=0 cellpadding=0>
|
194 |
<tr><td valign="middle" align="left">
|
210 |
<tr><td valign="middle" align="left">
|
195 |
<?php
|
211 |
<?php
|
196 |
if ($EXT_LAN_FILTERING == "on")
|
212 |
if ($EXT_LAN_FILTERING == "on")
|
197 |
{
|
213 |
{
|
198 |
echo "<CENTER><H3>$l_antivir_on</H3></CENTER>";
|
214 |
echo "<CENTER><H3>$l_lan_ext_off</H3></CENTER>";
|
199 |
echo "<FORM action='$_SERVER[PHP_SELF]' method=POST>";
|
215 |
echo "<FORM action='$_SERVER[PHP_SELF]' method=POST>";
|
200 |
echo "<input type=hidden name='choix' value=\"AV_Off\">";
|
216 |
echo "<input type=hidden name='choix' value=\"Lan_Ext_Filter_Off\">";
|
201 |
echo "<input type=submit value=\"$l_switch_antivir_off\">";
|
217 |
echo "<input type=submit value=\"$l_switch_lan_ext_on\">";
|
202 |
}
|
218 |
}
|
203 |
else
|
219 |
else
|
204 |
{
|
220 |
{
|
205 |
echo "<CENTER><H3>$l_antivir_off</H3></CENTER>";
|
221 |
echo "<CENTER><H3>$l_lan_ext_on</H3></CENTER>";
|
206 |
echo "<FORM action='$_SERVER[PHP_SELF]' method=POST>";
|
222 |
echo "<FORM action='$_SERVER[PHP_SELF]' method=POST>";
|
207 |
echo "<input type=hidden name='choix' value=\"AV_On\">";
|
223 |
echo "<input type=hidden name='choix' value=\"Lan_Ext_Filter_On\">";
|
208 |
echo "<input type=submit value=\"$l_switch_antivir_on\">";
|
224 |
echo "<input type=submit value=\"$l_switch_lan_ext_off\">";
|
209 |
}
|
225 |
}
|
210 |
?>
|
226 |
?>
|
211 |
</FORM>
|
227 |
</FORM>
|
212 |
</td></tr>
|
228 |
</td></tr>
|
213 |
</table>
|
229 |
</table>
|