Subversion Repositories ALCASAR

Rev

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

Rev 40 Rev 152
Line 1... Line 1...
1
<TABLE width="100%" border=0 cellspacing=0 cellpadding=0>
1
<TABLE width="100%" border=0 cellspacing=0 cellpadding=0>
2
<tr><th><?echo "$l_protocols";?></th></tr>
2
<tr><th><?echo "$l_protocols";?></th></tr>
3
<tr bgcolor="#FFCC66"><td><img src="/images/pix.gif" width="1" height="2"></td></tr>
3
<tr bgcolor="#FFCC66"><td><img src="/images/pix.gif" width="1" height="2"></td></tr>
4
</table>
4
</table>
5
<table width="100%" border=1 cellspacing=0 cellpadding=1>
5
<table width="100%" border=1 cellspacing=0 cellpadding=1>
6
<tr><td valign="middle" align="left">
6
<tr><td valign="middle" align="center">
7
<form action='net_filter.php' method='POST'>
7
<form action='net_filter.php' method='POST'>
8
<table cellspacing=2 cellpadding=3 border=1>
8
<table cellspacing=2 cellpadding=3 border=1>
9
<?
9
<?
10
echo "<tr><th>$l_proto_port<th>$l_enabled</tr>";
10
echo "<tr><th>$l_proto / port<th>$l_enabled<th>$l_delete</tr>";
11
// On ouvre le fichier de filtrage de protocoles
11
// On ouvre le fichier de filtrage de protocoles
12
$pointeur=fopen($services_list,"r");
12
$pointeur=fopen($services_list,"r");
13
if ($pointeur)
13
if ($pointeur)
14
	{
14
	{
15
	while (!feof ($pointeur))
15
	while (!feof ($pointeur))
Line 24... Line 24...
24
			// si la ligne est commentée -> protocole non autorisé
24
			// si la ligne est commentée -> protocole non autorisé
25
			if (preg_match('/^#/',$ligne, $r)) {
25
			if (preg_match('/^#/',$ligne, $r)) {
26
				echo ">";}
26
				echo ">";}
27
			else {
27
			else {
28
				echo "checked>";}
28
				echo "checked>";}
-
 
29
			if ($name_svc != "icmp") {echo "<td><input type='checkbox' name='del-$name_svc'>";}
-
 
30
			echo "</tr>";
29
			}
31
			}
30
		}
32
		}
31
	}
33
	}
32
else	{
34
else	{
33
	echo "$l_error_open_file $services_list";
35
	echo "$l_error_open_file $services_list";
34
	}
36
	}
35
fclose($pointeur);
37
fclose($pointeur);
36
?>
38
?>
37
</td></tr></table>
39
</table>
38
<input type='hidden' name='choix' value='change'>
40
<input type='hidden' name='choix' value='change'>
39
<input type='submit' value='<?echo"$l_save_modif";?>'>
41
<input type='submit' value='<?echo"$l_save_modif";?>'>
40
</form>
42
</form>
-
 
43
</td>
-
 
44
<td valign='middle' align='center'>
-
 
45
<form action='net_filter.php' method='POST'>
-
 
46
<table cellspacing=2 cellpadding=3 border=1>
-
 
47
<tr><th><?echo"$l_proto";?><th>port</tr>
-
 
48
<tr><td><input type='text' name='add_proto' size='10'></td>
-
 
49
<td><input type='text' name='add_port' size='5'></td>
-
 
50
<input type='hidden' name='choix' value='new_proto'>
-
 
51
<td><input type='submit' value='<?echo"$l_add_to_list";?>'></td>
-
 
52
</tr></table>
-
 
53
</form>
41
</td></tr>
54
</td></tr>
42
</table>
55
</table>