Subversion Repositories ALCASAR

Rev

Details | Last modification | View Log

Rev Author Line No. Line
28 richard 1
<TABLE width="100%" border=0 cellspacing=0 cellpadding=0>
2
<tr><th><?echo "$l_protocols";?></th></tr>
3
<tr bgcolor="#FFCC66"><td><img src="/images/pix.gif" width="1" height="2"></td></tr>
4
</table>
5
<table width="100%" border=1 cellspacing=0 cellpadding=1>
6
<tr><td valign="middle" align="left">
7
<form action='net_filter.php' method='POST'>
8
<table cellspacing=2 cellpadding=3 border=1>
9
<?
10
echo "<tr><th>$l_proto_port<th>$l_enabled</tr>";
11
// On ouvre le fichier de filtrage de protocoles
12
$pointeur=fopen($services_list,"r");
13
if ($pointeur)
14
	{
15
	while (!feof ($pointeur))
16
		{
17
		$ligne=fgets($pointeur, 4096);
18
		if ($ligne)
19
			{
20
			$proto=explode(" ", $ligne);
21
			$name_svc=trim($proto[0],"#");
22
			echo "<tr><td>$name_svc / $proto[1]";
23
			echo "<td><input type='checkbox' name='chk-$name_svc'";
24
			// si la ligne est commentée -> protocole non autorisé
25
			if (preg_match('/^#/',$ligne, $r)) {
26
				echo ">";}
27
			else {
28
				echo "checked>";}
29
			}
30
		}
31
	}
32
else	{
33
	echo "$l_error_open_file $services_list";
34
	}
35
fclose($pointeur);
36
?>
37
</td></tr></table>
38
<input type='hidden' name='choix' value='change'>
39
<input type='submit' value='<?echo"$l_save_modif";?>'>
40
</form>
41
</td></tr>
42
</table>