Subversion Repositories ALCASAR

Rev

Rev 934 | Go to most recent revision | Only display areas with differences | Ignore whitespace | Details | Blame | Last modification | View Log

Rev 934 Rev 1240
1
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
1
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
2
<HTML><!-- written by Rexy - 3abtux -->
2
<HTML><!-- written by Rexy - 3abtux -->
3
<HEAD>
3
<HEAD>
4
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
4
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
5
<TITLE>Exceptions</TITLE>
5
<TITLE>Exceptions</TITLE>
6
<link rel="stylesheet" href="/css/style.css" type="text/css">
6
<link rel="stylesheet" href="/css/style.css" type="text/css">
7
</HEAD>
7
</HEAD>
8
<body>
8
<body>
9
<?
9
<?
10
/********************
10
/********************
11
*  TEST CONF FILES  *
11
*  TEST CONF FILES  *
12
*********************/
12
*********************/
13
define ("DOMAIN_ALLOWED_LIST", "/usr/local/etc/alcasar-uamdomain");
13
define ("DOMAIN_ALLOWED_LIST", "/usr/local/etc/alcasar-uamdomain");
14
define ("IP_ALLOWED_LIST", "/usr/local/etc/alcasar-uamallowed");
14
define ("IP_ALLOWED_LIST", "/usr/local/etc/alcasar-uamallowed");
15
$conf_files=array(DOMAIN_ALLOWED_LIST,IP_ALLOWED_LIST);
15
$conf_files=array(DOMAIN_ALLOWED_LIST,IP_ALLOWED_LIST);
16
foreach ($conf_files as $file){
16
foreach ($conf_files as $file){
17
if (!file_exists($file)){
17
if (!file_exists($file)){
18
	exit("Requested file ".$file." isn't present");}
18
	exit("Requested file ".$file." isn't present");}
19
if (!is_readable($file)){
19
if (!is_readable($file)){
20
	exit("Can't read the file ".$file);}
20
	exit("Can't read the file ".$file);}
21
}
21
}
22
$domain_allowed_list="/usr/local/etc/alcasar-uamdomain";
22
$domain_allowed_list="/usr/local/etc/alcasar-uamdomain";
23
$url_allowed_list="/usr/local/etc/alcasar-uamallowed";
23
$url_allowed_list="/usr/local/etc/alcasar-uamallowed";
24
# Choice of language
24
# Choice of language
25
$Language = 'en';
25
$Language = 'en';
26
if(isset($_SERVER['HTTP_ACCEPT_LANGUAGE'])){
26
if(isset($_SERVER['HTTP_ACCEPT_LANGUAGE'])){
27
	$Langue = explode(",",$_SERVER['HTTP_ACCEPT_LANGUAGE']);
27
	$Langue = explode(",",$_SERVER['HTTP_ACCEPT_LANGUAGE']);
28
	$Language = strtolower(substr(chop($Langue[0]),0,2)); }
28
	$Language = strtolower(substr(chop($Langue[0]),0,2)); }
29
if($Language == 'fr'){
29
if($Language == 'fr'){
30
	$l_error_open_file	= "Erreur d'ouverture du fichier";
30
	$l_error_open_file	= "Erreur d'ouverture du fichier";
31
	$l_trusted_domain	= "Noms de domaine Internet de confiance";
31
	$l_trusted_domain	= "Noms de domaine Internet de confiance";
32
	$l_domain		= "Noms de domaine";
32
	$l_domain		= "Noms de domaine";
33
	$l_comment_explain	= "Lien affiché dans la page d'interception";
33
	$l_comment_explain	= "Lien affiché dans la page d'interception";
34
	$l_comment_explain2	= "Laissez vide si non affiché";
34
	$l_comment_explain2	= "Laissez vide si non affiché";
35
	$l_remove		= "Retirer de la liste";
35
	$l_remove		= "Retirer de la liste";
36
	$l_trusted_ip		= "adresses IP de confiance";
36
	$l_trusted_ip		= "adresses IP de confiance";
37
	$l_trusted_equipments	= "Equipements de consultation de confiance";
37
	$l_trusted_equipments	= "Equipements de consultation de confiance";
38
	$l_comment		= "Commentaires";
38
	$l_comment		= "Commentaires";
39
	$l_trusted_domain_explain = "Gérez ici les noms de domaine Internet pouvant &ecirc;tre joints sans authentification";
39
	$l_trusted_domain_explain = "Gérez ici les noms de domaine Internet pouvant &ecirc;tre joints sans authentification";
40
	$l_trusted_equipments_explain	= "Pour gérer les équipements du réseau de consultation pouvant accéder à Internet sans être interceptés : lisez la documentation d'exploitation (ch.4.7c)";
40
	$l_trusted_equipments_explain	= "Pour gérer les équipements du réseau de consultation pouvant accéder à Internet sans être interceptés : lisez la documentation d'exploitation (ch.4.7c)";
41
	$l_trusted_ip_explain	= "Gérez ici les adresses IP de systèmes ou de réseaux pouvant être joints sans authentification";
41
	$l_trusted_ip_explain	= "Gérez ici les adresses IP de systèmes ou de réseaux pouvant être joints sans authentification";
42
	$l_submit		= "Enregistrer";
42
	$l_submit		= "Enregistrer";
43
	$l_add_to_list		= "Ajouter à la liste";
43
	$l_add_to_list		= "Ajouter à la liste";
44
	$l_apply		= "Appliquer les changements";
44
	$l_apply		= "Appliquer les changements";
45
}
45
}
46
else {
46
else {
47
	$l_error_open_file	= "File open error";
47
	$l_error_open_file	= "File open error";
48
	$l_trusted_domain	= "Trusted Internet domain names";
48
	$l_trusted_domain	= "Trusted Internet domain names";
49
	$l_domain		= "Domain names";
49
	$l_domain		= "Domain names";
50
	$l_comment_explain	= "Link displayed in intercept page";
50
	$l_comment_explain	= "Link displayed in intercept page";
51
	$l_comment_explain2	= "Let empty to not display link";
51
	$l_comment_explain2	= "Let empty to not display link";
52
	$l_remove		= "Remove from list";
52
	$l_remove		= "Remove from list";
53
	$l_trusted_ip		= "Trusted Internet domain and IP addresses";
53
	$l_trusted_ip		= "Trusted IP addresses";
54
	$l_trusted_equipments	= "Trusted consultation equipements";
54
	$l_trusted_equipments	= "Trusted consultation equipements";
55
	$l_trusted_equipments_explain	= "To manage consultation equipments allowed to be connected to Internet without interception, read exploitation documentation (ch.4.7c)";
-
 
56
	$l_comment		= "Comments";
55
	$l_comment		= "Comments";
57
	$l_trusted_domain_explain = "Manage Internet domain names that can be joined without authentication";
56
	$l_trusted_domain_explain = "Manage Internet domain names that can be joined without authentication";
-
 
57
	$l_trusted_equipments_explain	= "To manage consultation equipments allowed to connect to Internet without interception, read exploitation documentation (ch.4.7c)";
58
	$l_trusted_ip_explain	= "Manage systems or networks IP addresses that can be joined without authentication";
58
	$l_trusted_ip_explain	= "Manage systems addresses or networks IP addresses that can be joined without authentication";
59
	$l_submit		= "Submit";
59
	$l_submit		= "Submit";
60
	$l_add_to_list		= "Add to list";
60
	$l_add_to_list		= "Add to list";
61
	$l_apply		= "Apply changes";
61
	$l_apply		= "Apply changes";
62
}
62
}
63
if (isset($_POST['choix'])){ 
63
if (isset($_POST['choix'])){ 
64
	switch ($_POST['choix'])
64
	switch ($_POST['choix'])
65
	{
65
	{
66
	case 'new_uamdomain' :
66
	case 'new_uamdomain' :
67
	if (trim($_POST['add_uamdomain']) != "") 
67
	if (trim($_POST['add_uamdomain']) != "") 
68
		{
68
		{
69
		$tab=file(DOMAIN_ALLOWED_LIST);
69
		$tab=file(DOMAIN_ALLOWED_LIST);
70
		$insert = true;
70
		$insert = true;
71
		if ($tab) // file isn't empty
71
		if ($tab) // file isn't empty
72
			{
72
			{
73
			foreach ($tab as $line) // test if domain address doesn't already exist
73
			foreach ($tab as $line) // test if domain address doesn't already exist
74
				{
74
				{
75
				$domain=explode("\"", $line);
75
				$domain=explode("\"", $line);
76
				if (strcmp(trim($_POST['add_uamdomain']),$domain[1]) == 0)
76
				if (strcmp(trim($_POST['add_uamdomain']),$domain[1]) == 0)
77
			       		{
77
			       		{
78
					$insert = false;
78
					$insert = false;
79
					break;
79
					break;
80
					}
80
					}
81
				}
81
				}
82
			}
82
			}
83
		if ($insert == true) 
83
		if ($insert == true) 
84
			{
84
			{
85
			$line ="\nuamdomain=\"" . trim($_POST['add_uamdomain']) . "\" #" . trim($_POST['add_domain_comment']);
85
			$line ="\nuamdomain=\"" . trim($_POST['add_uamdomain']) . "\" #" . trim($_POST['add_domain_comment']);
86
			$pointeur=fopen(DOMAIN_ALLOWED_LIST,"a");
86
			$pointeur=fopen(DOMAIN_ALLOWED_LIST,"a");
87
			fwrite ($pointeur, $line);
87
			fwrite ($pointeur, $line);
88
			fclose ($pointeur);
88
			fclose ($pointeur);
89
			exec ("sudo /usr/local/bin/alcasar-file-clean.sh");
89
			exec ("sudo /usr/local/bin/alcasar-file-clean.sh");
90
			exec ("sudo service chilli restart");
90
			exec ("sudo service chilli restart");
91
			}
91
			}
92
		}
92
		}
93
	break;
93
	break;
94
	case 'change_uamdomain' :
94
	case 'change_uamdomain' :
95
	$tab=file(DOMAIN_ALLOWED_LIST);
95
	$tab=file(DOMAIN_ALLOWED_LIST);
96
	if ($tab)
96
	if ($tab)
97
		{
97
		{
98
		$pointeur=fopen(DOMAIN_ALLOWED_LIST,"w+");
98
		$pointeur=fopen(DOMAIN_ALLOWED_LIST,"w+");
99
		foreach ($tab as $ligne)
99
		foreach ($tab as $ligne)
100
			{
100
			{
101
			$uamdomain1=explode("\"", $ligne);
101
			$uamdomain1=explode("\"", $ligne);
102
			$remove_line = false;
102
			$remove_line = false;
103
			foreach ($_POST as $key => $value)
103
			foreach ($_POST as $key => $value)
104
				{
104
				{
105
				$key = str_replace ("_",".",$key); // dot are replace by '_' in post request
105
				$key = str_replace ("_",".",$key); // dot are replace by '_' in post request
106
				if (strstr($key,'del-'))
106
				if (strstr($key,'del-'))
107
					{
107
					{
108
					$uamdomain2 = str_replace('del-','',$key);
108
					$uamdomain2 = str_replace('del-','',$key);
109
					if (strcmp($uamdomain1[1],$uamdomain2) == 0)
109
					if (strcmp($uamdomain1[1],$uamdomain2) == 0)
110
				       		{
110
				       		{
111
						$remove_line = True;
111
						$remove_line = True;
112
						break;
112
						break;
113
						}
113
						}
114
					}
114
					}
115
				}
115
				}
116
			if (! $remove_line)
116
			if (! $remove_line)
117
				{
117
				{
118
				fwrite($pointeur,$ligne);
118
				fwrite($pointeur,$ligne);
119
				}
119
				}
120
			}
120
			}
121
		fclose($pointeur);
121
		fclose($pointeur);
122
		}
122
		}
123
	exec ("sudo service chilli restart");
123
	exec ("sudo service chilli restart");
124
	break;
124
	break;
125
	case 'new_ip' :
125
	case 'new_ip' :
126
	if (trim($_POST['add_ip']) != "") 
126
	if (trim($_POST['add_ip']) != "") 
127
		{
127
		{
128
		$tab=file(IP_ALLOWED_LIST);
128
		$tab=file(IP_ALLOWED_LIST);
129
		$insert = true;
129
		$insert = true;
130
		if ($tab) // file isn't empty
130
		if ($tab) // file isn't empty
131
			{
131
			{
132
			foreach ($tab as $line) // test if domain address doesn't already exist
132
			foreach ($tab as $line) // test if domain address doesn't already exist
133
				{
133
				{
134
				$ip=explode("\"", $line);
134
				$ip=explode("\"", $line);
135
				if (strcmp(trim($_POST['add_ip']),$ip[1]) == 0)
135
				if (strcmp(trim($_POST['add_ip']),$ip[1]) == 0)
136
			       		{
136
			       		{
137
					$insert = false;
137
					$insert = false;
138
					break;
138
					break;
139
					}
139
					}
140
				}
140
				}
141
			}
141
			}
142
		if ($insert == true) 
142
		if ($insert == true) 
143
			{
143
			{
144
			$line ="\nuamallowed=\"" . trim($_POST['add_ip']) ."\" #" . trim($_POST['add_ip_comment']);
144
			$line ="\nuamallowed=\"" . trim($_POST['add_ip']) ."\" #" . trim($_POST['add_ip_comment']);
145
			$pointeur=fopen(IP_ALLOWED_LIST,"a");
145
			$pointeur=fopen(IP_ALLOWED_LIST,"a");
146
			fwrite ($pointeur, $line);
146
			fwrite ($pointeur, $line);
147
			fclose ($pointeur);
147
			fclose ($pointeur);
148
			exec ("sudo /usr/local/bin/alcasar-file-clean.sh");
148
			exec ("sudo /usr/local/bin/alcasar-file-clean.sh");
149
			exec ("sudo service chilli restart");
149
			exec ("sudo service chilli restart");
150
			}
150
			}
151
		}
151
		}
152
	break;
152
	break;
153
	case 'change_ip' :
153
	case 'change_ip' :
154
	$tab=file(IP_ALLOWED_LIST);
154
	$tab=file(IP_ALLOWED_LIST);
155
	if ($tab)
155
	if ($tab)
156
		{
156
		{
157
		$pointeur=fopen(IP_ALLOWED_LIST,"w+");
157
		$pointeur=fopen(IP_ALLOWED_LIST,"w+");
158
		foreach ($tab as $ligne)
158
		foreach ($tab as $ligne)
159
			{
159
			{
160
			$ip1=explode("\"", $ligne);
160
			$ip1=explode("\"", $ligne);
161
			$remove_line = false;
161
			$remove_line = false;
162
			foreach ($_POST as $key => $value)
162
			foreach ($_POST as $key => $value)
163
				{
163
				{
164
				$key = str_replace ("_",".",$key); // dot are replace by '_' in post request
164
				$key = str_replace ("_",".",$key); // dot are replace by '_' in post request
165
				if (strstr($key,'del-'))
165
				if (strstr($key,'del-'))
166
					{
166
					{
167
					$ip2 = str_replace('del-','',$key);
167
					$ip2 = str_replace('del-','',$key);
168
					if (strcmp($ip1[1],$ip2) == 0)
168
					if (strcmp($ip1[1],$ip2) == 0)
169
				       		{
169
				       		{
170
						$remove_line = True;
170
						$remove_line = True;
171
						break;
171
						break;
172
						}
172
						}
173
					}
173
					}
174
				}
174
				}
175
			if (! $remove_line)
175
			if (! $remove_line)
176
				{
176
				{
177
				fwrite($pointeur,$ligne);
177
				fwrite($pointeur,$ligne);
178
				}
178
				}
179
			}
179
			}
180
		fclose($pointeur);
180
		fclose($pointeur);
181
		}
181
		}
182
	exec ("sudo service chilli restart");
182
	exec ("sudo service chilli restart");
183
	break;
183
	break;
184
	}
184
	}
185
}
185
}
186
?>
186
?>
187
<TABLE width="100%" border=0 cellspacing=0 cellpadding=0>
187
<TABLE width="100%" border=0 cellspacing=0 cellpadding=0>
188
<tr><th><?echo "$l_trusted_domain";?></th></tr>
188
<tr><th><?echo "$l_trusted_domain";?></th></tr>
189
<tr bgcolor="#FFCC66"><td><img src="/images/pix.gif" width="1" height="2"></td></tr>
189
<tr bgcolor="#FFCC66"><td><img src="/images/pix.gif" width="1" height="2"></td></tr>
190
</table>
190
</table>
191
<table width="100%" border=1 cellspacing=0 cellpadding=1>
191
<table width="100%" border=1 cellspacing=0 cellpadding=1>
192
<tr><td colspan=2 align="center">
192
<tr><td colspan=2 align="center">
193
<?
193
<?
194
echo "$l_trusted_domain_explain</td></tr>";
194
echo "$l_trusted_domain_explain</td></tr>";
195
echo "<tr><td align='center' valign='middle'>";
195
echo "<tr><td align='center' valign='middle'>";
196
echo "<table cellspacing=2 cellpadding=2 border=1>";
196
echo "<table cellspacing=2 cellpadding=2 border=1>";
197
echo "<FORM action='$_SERVER[PHP_SELF]' method='POST'>";
197
echo "<FORM action='$_SERVER[PHP_SELF]' method='POST'>";
198
echo "<tr align='center' bgcolor='#d0ddb0'><td>$l_domain<td>$l_comment_explain<td>$l_remove</tr>";
198
echo "<tr align='center' bgcolor='#d0ddb0'><td>$l_domain<td>$l_comment_explain<td>$l_remove</tr>";
199
// Read the "Domain alowed" file
199
// Read the "Domain alowed" file
200
$tab=file(DOMAIN_ALLOWED_LIST);
200
$tab=file(DOMAIN_ALLOWED_LIST);
201
if ($tab)  # the file isn't empty
201
if ($tab)  # the file isn't empty
202
	{
202
	{
203
	foreach ($tab as $line)
203
	foreach ($tab as $line)
204
		{
204
		{
205
		if (trim($line) != '') # the line isn't empty
205
		if (trim($line) != '') # the line isn't empty
206
			{
206
			{
207
			$domain_allowed=explode("#", $line);
207
			$domain_allowed=explode("#", $line);
208
			$uamdomain=trim($domain_allowed[0],"#");
208
			$uamdomain=trim($domain_allowed[0],"#");
209
			$domain=explode("\"", $uamdomain);
209
			$domain=explode("\"", $uamdomain);
210
			echo "<tr><td>$domain[1]";
210
			echo "<tr><td>$domain[1]";
211
			echo "<td>";
211
			echo "<td>";
212
			if (isset ($domain_allowed[1])) {
212
			if (isset ($domain_allowed[1])) {
213
				echo trim($domain_allowed[1]);}
213
				echo trim($domain_allowed[1]);}
214
			else echo "&nbsp";
214
			else echo "&nbsp";
215
			echo "<td>";
215
			echo "<td>";
216
			echo "<input type='checkbox' name='del-$domain[1]'>";
216
			echo "<input type='checkbox' name='del-$domain[1]'>";
217
			echo "</tr>";
217
			echo "</tr>";
218
			}
218
			}
219
		}
219
		}
220
	}
220
	}
221
echo "</table>";
221
echo "</table>";
222
if ($tab)
222
if ($tab)
223
	{
223
	{
224
	echo "<input type='hidden' name='choix' value='change_uamdomain'>";
224
	echo "<input type='hidden' name='choix' value='change_uamdomain'>";
225
	echo "<input type='submit' value='$l_apply'>";
225
	echo "<input type='submit' value='$l_apply'>";
226
	}
226
	}
227
?>
227
?>
228
</form>
228
</form>
229
</td><td valign='middle' align='center'>
229
</td><td valign='middle' align='center'>
230
<form action='<?echo"$_SERVER[PHP_SELF]"?>' method='POST'>
230
<form action='<?echo"$_SERVER[PHP_SELF]"?>' method='POST'>
231
<table cellspacing=2 cellpadding=3 border=1>
231
<table cellspacing=2 cellpadding=3 border=1>
232
<tr align='center'><td bgcolor='#d0ddb0'><?echo "$l_domain<td bgcolor='#d0ddb0'>$l_comment_explain";?>
232
<tr align='center'><td bgcolor='#d0ddb0'><?echo "$l_domain<td bgcolor='#d0ddb0'>$l_comment_explain";?>
233
<td></tr>
233
<td></tr>
234
<tr><td>exemple1 : www.mydomain.com <br>exemple2 : .yourdomain.net
234
<tr><td>exemple1 : www.mydomain.com <br>exemple2 : .yourdomain.net
235
<td>exemple1 : mydomain<br><?echo "$l_comment_explain2";?><td></tr>
235
<td>exemple1 : mydomain<br><?echo "$l_comment_explain2";?><td></tr>
236
<tr><td><input type='text' name='add_uamdomain' size='20'>
236
<tr><td><input type='text' name='add_uamdomain' size='20'>
237
<td><input type='text' name='add_domain_comment' size='15'>
237
<td><input type='text' name='add_domain_comment' size='15'>
238
<input type='hidden' name='choix' value='new_uamdomain'>
238
<input type='hidden' name='choix' value='new_uamdomain'>
239
<td><input type='submit' value='<?echo "$l_add_to_list";?>'>
239
<td><input type='submit' value='<?echo "$l_add_to_list";?>'>
240
</tr></table>
240
</tr></table>
241
</form>
241
</form>
242
</tr>
242
</tr>
243
</table>
243
</table>
244
<table width="100%" border="0" cellspacing="0" cellpadding="0">
244
<table width="100%" border="0" cellspacing="0" cellpadding="0">
245
	<tr><th><?php echo "$l_trusted_ip" ;?></th></tr>
245
	<tr><th><?php echo "$l_trusted_ip" ;?></th></tr>
246
	<tr bgcolor="#FFCC66"><td><img src="/images/pix.gif" width="1" height="2"></td></tr>
246
	<tr bgcolor="#FFCC66"><td><img src="/images/pix.gif" width="1" height="2"></td></tr>
247
</table>
247
</table>
248
<table width="100%" border=1 cellspacing=0 cellpadding=1>
248
<table width="100%" border=1 cellspacing=0 cellpadding=1>
249
<tr><td colspan=2 align="center">
249
<tr><td colspan=2 align="center">
250
<?
250
<?
251
echo "$l_trusted_ip_explain</td></tr>";
251
echo "$l_trusted_ip_explain</td></tr>";
252
echo "<tr><td align='center' valign='middle'>";
252
echo "<tr><td align='center' valign='middle'>";
253
echo "<table cellspacing=2 cellpadding=2 border=1>";
253
echo "<table cellspacing=2 cellpadding=2 border=1>";
254
echo "<FORM action='$_SERVER[PHP_SELF]' method='POST'>";
254
echo "<FORM action='$_SERVER[PHP_SELF]' method='POST'>";
255
echo "<tr align='center' bgcolor='#d0ddb0'><td>$l_trusted_ip<td>$l_comment<td>$l_remove</tr>";
255
echo "<tr align='center' bgcolor='#d0ddb0'><td>$l_trusted_ip<td>$l_comment<td>$l_remove</tr>";
256
// Read the "ip alowed" file
256
// Read the "ip alowed" file
257
$tab=file(IP_ALLOWED_LIST);
257
$tab=file(IP_ALLOWED_LIST);
258
if ($tab)  # the file isn't empty
258
if ($tab)  # the file isn't empty
259
	{
259
	{
260
	foreach ($tab as $line)
260
	foreach ($tab as $line)
261
		{
261
		{
262
		if (trim($line) != '') # the line isn't empty
262
		if (trim($line) != '') # the line isn't empty
263
			{
263
			{
264
			$ip_allowed=explode("#", $line);
264
			$ip_allowed=explode("#", $line);
265
			$ip_a=trim($ip_allowed[0],"#");
265
			$ip_a=trim($ip_allowed[0],"#");
266
			$ip=explode("\"", $ip_a);
266
			$ip=explode("\"", $ip_a);
267
			echo "<tr><td>$ip[1]";
267
			echo "<tr><td>$ip[1]";
268
			echo "<td>";
268
			echo "<td>";
269
			if (isset($ip_allowed[1]))
269
			if (isset($ip_allowed[1]))
270
				echo trim($ip_allowed[1]);
270
				echo trim($ip_allowed[1]);
271
			else echo "&nbsp;";
271
			else echo "&nbsp;";
272
			echo "<td><input type='checkbox' name='del-$ip[1]'>";
272
			echo "<td><input type='checkbox' name='del-$ip[1]'>";
273
			echo "</tr>";
273
			echo "</tr>";
274
			}
274
			}
275
		}
275
		}
276
	}
276
	}
277
echo "</table>";
277
echo "</table>";
278
if ($tab)
278
if ($tab)
279
	{
279
	{
280
	echo "<input type='hidden' name='choix' value='change_ip'>";
280
	echo "<input type='hidden' name='choix' value='change_ip'>";
281
	echo "<input type='submit' value='$l_apply'>";
281
	echo "<input type='submit' value='$l_apply'>";
282
	}
282
	}
283
?>
283
?>
284
</form>
284
</form>
285
</td><td valign='middle' align='center'>
285
</td><td valign='middle' align='center'>
286
<form action='<?echo "$_SERVER[PHP_SELF]"?>' method='POST'>
286
<form action='<?echo "$_SERVER[PHP_SELF]"?>' method='POST'>
287
<table cellspacing=2 cellpadding=3 border=1>
287
<table cellspacing=2 cellpadding=3 border=1>
288
<tr align='center'><td bgcolor='#d0ddb0'><?echo "$l_trusted_ip<td bgcolor='#d0ddb0'>$l_comment";?>
288
<tr align='center'><td bgcolor='#d0ddb0'><?echo "$l_trusted_ip<td bgcolor='#d0ddb0'>$l_comment";?>
289
<td></tr>
289
<td></tr>
290
<tr><td>exemple1 : 170.25.23.10 <br>exemple2 : 15.20.20.0/16</td>
290
<tr><td>exemple1 : 170.25.23.10 <br>exemple2 : 15.20.20.0/16</td>
291
<td>my_web_server <br>my_dmz<td></tr>
291
<td>my_web_server <br>my_dmz<td></tr>
292
<tr><td><input type='text' name='add_ip' size='20'></td>
292
<tr><td><input type='text' name='add_ip' size='20'></td>
293
<td><input type='text' name='add_ip_comment' size='15'></td>
293
<td><input type='text' name='add_ip_comment' size='15'></td>
294
<input type='hidden' name='choix' value='new_ip'>
294
<input type='hidden' name='choix' value='new_ip'>
295
<td><input type='submit' value='<?echo "$l_add_to_list";?>'></td>
295
<td><input type='submit' value='<?echo "$l_add_to_list";?>'></td>
296
</tr></table>
296
</tr></table>
297
</td></tr>
297
</td></tr>
298
</table>
298
</table>
299
</form>
299
</form>
300
<table width="100%" border="0" cellspacing="0" cellpadding="0">
300
<table width="100%" border="0" cellspacing="0" cellpadding="0">
301
	<tr><th><?php echo "$l_trusted_equipments";?></th></tr>
301
	<tr><th><?php echo "$l_trusted_equipments";?></th></tr>
302
	<tr bgcolor="#FFCC66"><td><img src="/images/pix.gif" width="1" height="2"></td></tr>
302
	<tr bgcolor="#FFCC66"><td><img src="/images/pix.gif" width="1" height="2"></td></tr>
303
</table>
303
</table>
304
<table width="100%" border=1 cellspacing=0 cellpadding=1>
304
<table width="100%" border=1 cellspacing=0 cellpadding=1>
305
<tr><td colspan=2 align="center">
305
<tr><td colspan=2 align="center">
306
<?echo "$l_trusted_equipments_explain";?>
306
<?echo "$l_trusted_equipments_explain";?>
307
</td></tr>
307
</td></tr>
308
</table>
308
</table>
309
</BODY>
309
</BODY>
310
</HTML>
310
</HTML>
311
 
311