Line 13... |
Line 13... |
13 |
$Langue = explode(",",$_SERVER['HTTP_ACCEPT_LANGUAGE']);
|
13 |
$Langue = explode(",",$_SERVER['HTTP_ACCEPT_LANGUAGE']);
|
14 |
$Language = strtolower(substr(chop($Langue[0]),0,2)); }
|
14 |
$Language = strtolower(substr(chop($Langue[0]),0,2)); }
|
15 |
if($Language == 'fr'){
|
15 |
if($Language == 'fr'){
|
16 |
$l_exception_IP = "Exception au filtrage";
|
16 |
$l_exception_IP = "Exception au filtrage";
|
17 |
$l_exception_txt="Entrez ici les adresses IP des stations du réseau de consultation ne subissant ni filtrage WEB ni filtrage réseau<BR>Entrez une adresse IP par ligne";
|
17 |
$l_exception_txt="Entrez ici les adresses IP des stations du réseau de consultation ne subissant ni filtrage WEB ni filtrage réseau<BR>Entrez une adresse IP par ligne";
|
18 |
$l_submit = "Enregistrer";
|
18 |
$l_record="Enregistrer les modifications";
|
19 |
}
|
19 |
}
|
20 |
else {
|
20 |
else {
|
21 |
$l_exception_IP = "Network filtering exceptions";
|
21 |
$l_exception_IP = "Network filtering exceptions";
|
22 |
$l_exception_txt="Put here the stations IP address that won't be neither WEB filtered nor network filtered<BR>Put one IP per row";
|
22 |
$l_exception_txt="Put here the stations IP address that won't be neither WEB filtered nor network filtered<BR>Put one IP adress per row";
|
23 |
$l_submit = "Submit";
|
23 |
$l_record="Save changes";
|
24 |
}
|
24 |
}
|
25 |
if (isset($_POST['choix'])){
|
25 |
if (isset($_POST['choix'])){
|
26 |
switch ($_POST['choix'])
|
26 |
switch ($_POST['choix'])
|
27 |
{
|
27 |
{
|
28 |
case 'IP_exceptions' :
|
28 |
case 'IP_exceptions' :
|
Line 87... |
Line 87... |
87 |
<tr><th><?php echo $l_exception_IP ;?></th></tr>
|
87 |
<tr><th><?php echo $l_exception_IP ;?></th></tr>
|
88 |
<tr bgcolor="#FFCC66"><td><img src="/images/pix.gif" width="1" height="2"></td></tr>
|
88 |
<tr bgcolor="#FFCC66"><td><img src="/images/pix.gif" width="1" height="2"></td></tr>
|
89 |
</TABLE>
|
89 |
</TABLE>
|
90 |
<TABLE width="100%" border=1 cellspacing=0 cellpadding=1>
|
90 |
<TABLE width="100%" border=1 cellspacing=0 cellpadding=1>
|
91 |
<tr><td valign="middle" align="left">
|
91 |
<tr><td valign="middle" align="left">
|
92 |
<TABLE width=70% border=0>
|
- |
|
93 |
<?php
|
92 |
<?php
|
94 |
echo "<form action='$_SERVER[PHP_SELF]' method='POST'>";
|
93 |
echo "<form action='$_SERVER[PHP_SELF]' method='POST'>";
|
95 |
echo " $l_exception_txt";
|
94 |
echo " $l_exception_txt";
|
96 |
echo "<BR><textarea name='exception_list' rows=5 cols=40>";
|
95 |
echo "<BR><textarea name='exception_list' rows=5 cols=40>";
|
97 |
$filename="/usr/local/etc/alcasar-filter-exceptions";
|
96 |
$filename="/usr/local/etc/alcasar-filter-exceptions";
|
Line 110... |
Line 109... |
110 |
echo "erreur d'ouverture du fichier $filename";
|
109 |
echo "erreur d'ouverture du fichier $filename";
|
111 |
}
|
110 |
}
|
112 |
echo "</textarea><BR>";
|
111 |
echo "</textarea><BR>";
|
113 |
?>
|
112 |
?>
|
114 |
<input type='hidden' name='choix' value='IP_exceptions'>
|
113 |
<input type='hidden' name='choix' value='IP_exceptions'>
|
115 |
<input type='submit' value='Enregistrer les modifications'></CENTER>
|
114 |
<input type='submit' value='<?php echo "$l_record"; ?>'>
|
116 |
</FORM>
|
115 |
</FORM>
|
117 |
</td></tr>
|
116 |
</td></tr>
|
118 |
</TABLE>
|
117 |
</TABLE>
|
119 |
</BODY>
|
118 |
</BODY>
|
120 |
</HTML>
|
119 |
</HTML>
|