Line 13... |
Line 13... |
13 |
$Language = 'en';
|
13 |
$Language = 'en';
|
14 |
if(isset($_SERVER['HTTP_ACCEPT_LANGUAGE'])){
|
14 |
if(isset($_SERVER['HTTP_ACCEPT_LANGUAGE'])){
|
15 |
$Langue = explode(",",$_SERVER['HTTP_ACCEPT_LANGUAGE']);
|
15 |
$Langue = explode(",",$_SERVER['HTTP_ACCEPT_LANGUAGE']);
|
16 |
$Language = strtolower(substr(chop($Langue[0]),0,2)); }
|
16 |
$Language = strtolower(substr(chop($Langue[0]),0,2)); }
|
17 |
if($Language == 'fr'){
|
17 |
if($Language == 'fr'){
|
18 |
$l_title = "Filtrage réseau";
|
18 |
$l_title = "Filtrage de protocoles réseau";
|
- |
|
19 |
$l_antivir_on="L'antivirus de flux WEB est actuellement activé";
|
- |
|
20 |
$l_antivir_off="L'antivirus de flux WEB est actuellement désactivé";
|
- |
|
21 |
$l_switch_antivir_on="Activer l'antivirus";
|
- |
|
22 |
$l_switch_antivir_off="Désactiver l'antivirus";
|
19 |
$l_netfilter_on="Le filtrage réseau est actuellement activé";
|
23 |
$l_netfilter_on="Le filtrage réseau est actuellement activé";
|
20 |
$l_netfilter_off="Le filtrage réseau est actuellement désactivé";
|
24 |
$l_netfilter_off="Le filtrage réseau est actuellement désactivé";
|
21 |
$l_switch_on="Activer le filtrage réseau";
|
25 |
$l_switch_on="Activer le filtrage réseau";
|
22 |
$l_switch_off="Désactiver le filtrage réseau";
|
26 |
$l_switch_off="Désactiver le filtrage réseau";
|
23 |
$l_comment_on="À l'exclusion du WEB (port 80), les protocoles réseau sont interdits.<BR>Choisissez ci-dessous les protocoles que vous autorisez";
|
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";
|
Line 29... |
Line 33... |
29 |
$l_delete="Supprimer de la liste";
|
33 |
$l_delete="Supprimer de la liste";
|
30 |
$l_add_to_list="Ajouter à la liste";
|
34 |
$l_add_to_list="Ajouter à la liste";
|
31 |
$l_save_modif="Enregistrer les modifications";
|
35 |
$l_save_modif="Enregistrer les modifications";
|
32 |
}
|
36 |
}
|
33 |
else {
|
37 |
else {
|
34 |
$l_title = "Network Filter";
|
38 |
$l_title = "Network protocols filtering";
|
- |
|
39 |
$l_antivir_on="Actually, the antivirus is on";
|
- |
|
40 |
$l_antivir_off="Actually, the antivirus is off";
|
- |
|
41 |
$l_switch_antivir_on="Switch the antivirus on";
|
- |
|
42 |
$l_switch_antivir_off="Switch the antivirus off";
|
35 |
$l_netfilter_on="Actually, the network filter is enable";
|
43 |
$l_netfilter_on="Actually, the network filter is enable";
|
36 |
$l_netfilter_off="Actually, the network filter is disable";
|
44 |
$l_netfilter_off="Actually, the network filter is disable";
|
37 |
$l_switch_on="Switch the Network Filter on";
|
45 |
$l_switch_on="Switch the Network Filter on";
|
38 |
$l_switch_off="Switch the Network Filter off";
|
46 |
$l_switch_off="Switch the Network Filter off";
|
39 |
$l_comment_on="(choose the authorized network protocols)";
|
47 |
$l_comment_on="(choose the authorized network protocols)";
|
Line 136... |
Line 144... |
136 |
else {echo "$l_error_open_file $services_list";}
|
144 |
else {echo "$l_error_open_file $services_list";}
|
137 |
exec ("sudo /usr/local/sbin/alcasar-nf.sh -on");
|
145 |
exec ("sudo /usr/local/sbin/alcasar-nf.sh -on");
|
138 |
break;
|
146 |
break;
|
139 |
}
|
147 |
}
|
140 |
?>
|
148 |
?>
|
141 |
<TABLE width="100%" border=0 cellspacing=0 cellpadding=0>
|
- |
|
142 |
<tr><th><?php echo "$l_title1"; ?></th></tr>
|
- |
|
143 |
<tr bgcolor="#FFCC66"><td><img src="/images/pix.gif" width=1 height=2></td></tr>
|
- |
|
144 |
</TABLE>
|
- |
|
145 |
<TABLE width="100%" border=1 cellspacing=0 cellpadding=0>
|
149 |
<TABLE width="100%" border=1 cellspacing=0 cellpadding=0>
|
146 |
<tr><td valign="middle" align="left">
|
150 |
<tr><td valign="middle" align="left">
|
147 |
<?php
|
151 |
<?php
|
148 |
$pointeur = fopen("/etc/dansguardian/dansguardian.conf", "r");
|
152 |
$pointeur = fopen("/etc/dansguardian/dansguardian.conf", "r");
|
149 |
$result_antivir = false; $result_filter = false; $out=0;
|
153 |
$result_antivir = false; $result_filter = false; $out=0;
|
Line 182... |
Line 186... |
182 |
}
|
186 |
}
|
183 |
?>
|
187 |
?>
|
184 |
</FORM>
|
188 |
</FORM>
|
185 |
</td></tr>
|
189 |
</td></tr>
|
186 |
</TABLE>
|
190 |
</TABLE>
|
187 |
<TABLE width="100%" border=1 cellspacing=0 cellpadding=1>";
|
191 |
<TABLE width="100%" border=1 cellspacing=0 cellpadding=1>
|
188 |
<tr><td valign="middle" align="left">";
|
192 |
<tr><td valign="middle" align="left">
|
189 |
<?
|
193 |
<?
|
190 |
$pointeur = fopen("/usr/local/bin/alcasar-iptables.sh", "r");
|
194 |
$pointeur = fopen("/usr/local/bin/alcasar-iptables.sh", "r");
|
191 |
$result = False ;
|
195 |
$result = False ;
|
192 |
if ($pointeur)
|
196 |
if ($pointeur)
|
193 |
{
|
197 |
{
|