1,4 → 1,4 |
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN"> |
<!DOCTYPE html "-//W3C//DTD HTML 4.01 Transitional//EN"> |
<HTML><!-- written by Rexy --> |
<HEAD> |
<meta http-equiv="Content-Type" content="text/html; charset=utf-8"> |
6,7 → 6,6 |
<link rel="stylesheet" href="/css/style.css" type="text/css"> |
</HEAD> |
<body> |
<TABLE width="100%" border=0 cellspacing=0 cellpadding=0> |
<? |
# Choice of language |
$Language = 'en'; |
15,25 → 14,20 |
$Language = strtolower(substr(chop($Langue[0]),0,2)); } |
if($Language == 'fr'){ |
$l_remove="Retirer de la liste"; |
$l_title_proto = "Filtrage de protocoles réseau"; |
$l_protocolsfilter="Vous pouvez personnaliser le profile de filtrage protocole 'personnalisable' ici. Vous pouvez ensuite l'attribuer à des utilisateurs via l'éditeur ou la création d'utilisateur."; |
$l_comment_on="À l'exclusion du WEB (port 80), les protocoles réseaux sont interdits.<BR>Choisissez ci-dessous les protocoles que vous autorisez"; |
$l_comment_off="(tous les protocoles réseau sont autorisés)"; |
$l_protocols="Protocoles autorisés"; |
$l_title_proto = "Filtrage prersonnalisée de protocoles réseau"; |
$l_comment="Définissez ici la liste personalisée de protocoles réseau filtrés. Vous pouvez ensuite l'attribuer à des utilisateurs lors de leur création ou modification."; |
$l_protocols="Protocoles autorisés"; |
$l_error_open_file="Erreur d'ouverture du fichier"; |
$l_port="Numéro de port"; |
$l_proto="Nom du protocole"; |
$l_enabled="Autorisé"; |
$l_add_to_list="Ajouter à la liste"; |
$l_enabled="Autorisé"; |
$l_add_to_list="Ajouter à la liste"; |
$l_save="Enregistrer les modifications"; |
} |
else { |
$l_remove="Remove from list"; |
$l_title_proto = "Network protocols filter"; |
$l_protocolsfilter="You can change your \"custom\" protocol filtering here. You can set it to a user from ACC (create user / edit user)"; |
$l_comment_on="(choose the authorized network protocols)"; |
$l_comment_on="Except for the WEB (port 80), all protocols are blocked.<BR>Choose in the list below, the protocols you want authorize"; |
$l_comment_off="(all the network protocols are allowed for authenticated users)"; |
$l_title_proto = "Custom network protocols filter"; |
$l_comment="You can custom the network protocol filtering here. You can assign it to a user (create/edit a user)"; |
$l_protocols="Authorize protocols"; |
$l_error_open_file="Error opening the file"; |
$l_port="Port number"; |
146,13 → 140,55 |
<tr bgcolor="#FFCC66"><td><img src="/images/pix.gif" width="1" height="2"></td></tr> |
</table> |
<TABLE width="100%" border=1 cellspacing=0 cellpadding=0> |
<tr> |
|
<tr><td colspan="2" valign="middle" align="left"> |
<? echo "<CENTER>$l_comment</CENTER>";?> |
<tr><td valign="middle" align="center"> |
<form action='protocols_filter.php' method='POST'> |
<table cellspacing=2 cellpadding=3 border=1> |
<? |
|
echo "<td colspan=\"2\" valign=\"middle\" align=\"left\">"; |
echo "<CENTER><H3>$l_protocolsfilter_on</H3>$l_comment_on</CENTER>"; |
require ('protocols_filter2.php'); |
|
echo "<tr><th>$l_port<th>$l_proto<th>$l_enabled<th>$l_remove</tr>"; |
// Read and compute the protocols list |
$tab=file(SERVICES_LIST); |
if ($tab) # the file isn't empty |
{ |
foreach ($tab as $line) |
{ |
if (trim($line) != '') # the line isn't empty |
{ |
$proto=explode(" ", $line); |
$name_svc=trim($proto[0],"#"); |
echo "<tr><td>$proto[1]<td>$name_svc"; |
echo "<td><input type='checkbox' name='chk-$name_svc'"; |
// if the line is commented -> protocol is not allowed |
if (preg_match('/^#/',$line, $r)) { |
echo ">";} |
else { |
echo "checked>";} |
echo "<td>"; |
if ($name_svc != "icmp") { |
echo "<input type='checkbox' name='del-$name_svc'>";} |
else { |
echo " ";} |
echo "</tr>"; |
} |
} |
} |
?> |
</table> |
<input type='hidden' name='choix' value='change_port'> |
<input type='submit' value='<?echo"$l_save";?>'> |
</form></td><td valign='middle' align='center'> |
<form action='protocols_filter.php' method='POST'> |
<table cellspacing=2 cellpadding=3 border=1> |
<tr><th><?echo"$l_port<th>$l_proto"?></tr> |
<tr><td><input type='text' name='add_port' size='5'></td> |
<td><input type='text' name='add_proto' size='10'></td> |
<td><input type='hidden' name='choix' value='new_port'> |
<input type='submit' value='<?echo"$l_add_to_list";?>'></td> |
</tr></table> |
</form> |
</td></tr> |
</TABLE> |
</BODY> |
</HTML> |
|