Subversion Repositories ALCASAR

Compare Revisions

Ignore whitespace Rev 860 → Rev 861

/web/acc/admin/net_filter.php
39,7 → 39,7
$l_proto="Nom du protocole";
$l_enabled="Autorisé";
$l_add_to_list="Ajouter à la liste";
$l_save_modif="Enregistrer les modifications";
$l_save="Enregistrer les modifications";
}
else {
$l_title_antivir = "WEB antivirus";
68,7 → 68,7
$l_proto="protocol name";
$l_enabled="Authorized";
$l_add_to_list="Add to the list";
$l_save_modif="Save modifications";
$l_save="Save changes";
}
/********************
* TEST CONF FILES *
83,6 → 83,23
if (!is_readable($file)){
exit("Can't read the file ".$file);}
}
/**********************************
* Read ALCASAR CONF_FILE *
***********************************/
$ouvre=fopen(CONF_FILE,"r");
if ($ouvre){
while (!feof ($ouvre))
{
$tampon = fgets($ouvre, 4096);
if (strpos($tampon,"=")!==false){
$tmp = explode("=",$tampon);
$conf[$tmp[0]] = $tmp[1];
}
}
}else{
exit("Erreur d'ouverture du fichier ".CONF_FILE);
}
fclose($ouvre);
 
if (isset($_POST['choix'])){$choix=$_POST['choix'];} else {$choix="";}
switch ($choix)
304,7 → 321,11
echo ">";}
else {
echo "checked>";}
echo "<td><input type='checkbox' name='del-$ip_addr'>";
echo "<td>";
if (strcmp (trim($ip_addr),trim($conf["PUBLIC_IP"]))) {
echo "<input type='checkbox' name='del-$ip_addr'>";}
else {
echo "&nbsp;";}
echo "</tr>";
}
}
312,7 → 333,7
?>
</table>
<input type='hidden' name='choix' value='change_ip'>
<input type='submit' value='<?echo"$l_save_modif";?>'>
<input type='submit' value='<?echo"$l_save";?>'>
</form></td><td valign='middle' align='center'>
<form action='<?echo"$_SERVER[PHP_SELF]"?>' method='POST'>
<table cellspacing=2 cellpadding=3 border=1>