Subversion Repositories ALCASAR

Rev

Rev 372 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log

Rev 372 Rev 504
Line 32... Line 32...
32
  $l_proto="Protocole";
32
  $l_proto="Protocole";
33
  $l_enabled="Autorisé";
33
  $l_enabled="Autorisé";
34
  $l_delete="Supprimer de la liste";
34
  $l_delete="Supprimer de la liste";
35
  $l_add_to_list="Ajouter à la liste";
35
  $l_add_to_list="Ajouter à la liste";
36
  $l_save_modif="Enregistrer les modifications";
36
  $l_save_modif="Enregistrer les modifications";
37
  $l_exception_txt="Entrez ici les adresses IP des stations du réseau de consultation ne subissant ce filtrage de protocoles<BR>Entrez une adresse IP par ligne";
-
 
38
}
37
}
39
else {
38
else {
40
  $l_title_antivir = "WEB antivirus";
39
  $l_title_antivir = "WEB antivirus";
41
  $l_title_proto = "Network protocols filter";
40
  $l_title_proto = "Network protocols filter";
42
  $l_antivir_on="Actually, the WEB antivirus is on";
41
  $l_antivir_on="Actually, the WEB antivirus is on";
Line 54... Line 53...
54
  $l_proto="Protocol";
53
  $l_proto="Protocol";
55
  $l_enabled="Enable";
54
  $l_enabled="Enable";
56
  $l_delete="Delete from list";
55
  $l_delete="Delete from list";
57
  $l_add_to_list="Add to the list";
56
  $l_add_to_list="Add to the list";
58
  $l_save_modif="Save modifications";
57
  $l_save_modif="Save modifications";
59
  $l_exception_txt="Put here the stations IP address that won't be protocols filtered<BR>Put one IP adress per row";
-
 
60
}
58
}
61
echo "
59
echo "
62
<tr><th>$l_title_antivir</th></tr>
60
<tr><th>$l_title_antivir</th></tr>
63
<tr bgcolor=\"#FFCC66\"><td><img src=\"/images/pix.gif\" width=1 height=2></td></tr>
61
<tr bgcolor=\"#FFCC66\"><td><img src=\"/images/pix.gif\" width=1 height=2></td></tr>
64
</TABLE>";
62
</TABLE>";
Line 146... Line 144...
146
		fclose($pointeur);
144
		fclose($pointeur);
147
		}
145
		}
148
	else {echo "$l_error_open_file $services_list";}
146
	else {echo "$l_error_open_file $services_list";}
149
	exec ("sudo /usr/local/sbin/alcasar-nf.sh -on");
147
	exec ("sudo /usr/local/sbin/alcasar-nf.sh -on");
150
	break;
148
	break;
151
case 'IP_exceptions' :
-
 
152
	// réencodage iso + format unix + rc fin de ligne (ouf...)
-
 
153
	$ip_list = str_replace("\r\n", "\n", utf8_decode($_POST['exception_list']));
-
 
154
	if (strlen($ip_list) != 0){
-
 
155
		if ($ip_list[strlen($ip_list)-1] != "\n") { $ip_list[strlen($ip_list)]="\n";} ;} ;
-
 
156
	unset($_POST['exception_list']);
-
 
157
	// écriture exception pour filtrage réseau
-
 
158
	$fichier=fopen("/usr/local/etc/alcasar-filter-exceptions", "w+");
-
 
159
	fputs($fichier, $ip_list);
-
 
160
	fclose($fichier);
-
 
161
	exec ("sudo /usr/local/sbin/alcasar-nf.sh -on");
-
 
162
	break;
-
 
163
	}
149
	}
164
?>
150
?>
165
<TABLE width="100%" border=1 cellspacing=0 cellpadding=0>
151
<TABLE width="100%" border=1 cellspacing=0 cellpadding=0>
166
	<tr><td valign="middle" align="left">
152
	<tr><td valign="middle" align="left">
167
<?php
153
<?php