Subversion Repositories ALCASAR

Rev

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

Rev 1894 Rev 1899
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 -->
2
<HTML><!-- written by Rexy -->
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
<?
5
<?
6
$bl_dir="/etc/dansguardian/lists/blacklists/";
6
$bl_dir="/etc/dansguardian/lists/blacklists/";
7
$bl_iptables_dir="/usr/local/share/iptables-bl/";
7
$bl_iptables_dir="/usr/local/share/iptables-bl/";
8
$wl_iptables_dir="/usr/local/share/iptables-wl/";
8
$wl_iptables_dir="/usr/local/share/iptables-wl/";
9
$bl_dnsmasq_dir="/usr/local/share/dnsmasq-bl/";
9
$bl_dnsmasq_dir="/usr/local/share/dnsmasq-bl/";
10
$wl_dnsmasq_dir="/usr/local/share/dnsmasq-wl/";
10
$wl_dnsmasq_dir="/usr/local/share/dnsmasq-wl/";
11
if(isset($_GET['ossi'])) $ossi = $_GET['ossi'];
11
if(isset($_GET['ossi'])) $ossi = $_GET['ossi'];
12
# Choice of language
12
# Choice of language
13
$Language = 'en';
13
$Language = 'en';
14
if(isset($_SERVER['HTTP_ACCEPT_LANGUAGE']))
14
if(isset($_SERVER['HTTP_ACCEPT_LANGUAGE']))
15
{
15
{
16
	 $Langue = explode(",",$_SERVER['HTTP_ACCEPT_LANGUAGE']);
16
	 $Langue = explode(",",$_SERVER['HTTP_ACCEPT_LANGUAGE']);
17
	 $Language = strtolower(substr(chop($Langue[0]),0,2));
17
	 $Language = strtolower(substr(chop($Langue[0]),0,2));
18
}
18
}
19
if($Language == 'fr')
19
if($Language == 'fr')
20
{
20
{
21
	$l_title = "Catégories de la liste noire";
21
	$l_title = "Catégories de la liste noire";
22
	$l_error_open_file="Erreur d'ouverture du fichier";
22
	$l_error_open_file="Erreur d'ouverture du fichier";
23
	$l_close="Fermer";
23
	$l_close="Fermer";
24
	$l_description_cat="Cette catégorie n'est pas décrite";
24
	$l_description_cat="Cette catégorie n'est pas décrite";
25
	$l_name_cat ="Cette catégorie n'a pas de nom";
25
	$l_name_cat ="Cette catégorie n'a pas de nom";
26
	$l_nb_domains="Nombre de noms de domaine filtrés :";
26
	$l_nb_domains="Nombre de noms de domaine filtrés :";
27
	$l_nb_urls="Nombre d'URL filtrés :";
27
	$l_nb_urls="Nombre d'URL filtrés :";
28
	$l_nb_ip="Nombre d'IP filtrées :";
28
	$l_nb_ip="Nombre d'IP filtrées :";
29
	$l_example="Exemple(s) : ";
29
	$l_example="Exemple(s) : ";
30
	$l_error_cat = "Erreur de categorie";
30
	$l_error_cat = "Erreur de categorie";
31
	$l_error_list = "Erreur de listing";
31
	$l_error_list = "Erreur de listing";
32
}
32
}
33
else
33
else
34
{
34
{
35
	$l_title = "Blacklist categories";
35
	$l_title = "Blacklist categories";
36
	$l_error_open_file="Error opening the file";
36
	$l_error_open_file="Error opening the file";
37
	$l_close="Close";
37
	$l_close="Close";
38
	$l_description_cat="This category isn't describe";
38
	$l_description_cat="This category isn't describe";
39
	$l_name_cat ="This category has not name";
39
	$l_name_cat ="This category has not name";
40
	$l_nb_domains="Number of filtered domain names :";
40
	$l_nb_domains="Number of filtered domain names :";
41
	$l_nb_urls="Number of filtered URL :";
41
	$l_nb_urls="Number of filtered URL :";
42
	$l_nb_ip="Number of filtered IP :";
42
	$l_nb_ip="Number of filtered IP :";
43
	$l_example="Example(s) : ";
43
	$l_example="Example(s) : ";
44
	$l_error_cat = "Error category";
44
	$l_error_cat = "Error category";
45
	$l_error_list = "Error listing";
45
	$l_error_list = "Error listing";
46
 
46
 
47
}
47
}
48
if(isset($_GET['cat']))
48
if(isset($_GET['cat']))
49
{
49
{
50
	$categorie = $_GET['cat'];
50
	$categorie = $_GET['cat'];
51
} 
51
} 
52
else
52
else
53
{
53
{
54
	$categorie = $l_error_cat;
54
	$categorie = $l_error_cat;
55
}
55
}
56
if(isset($_GET['liste']))
56
if(isset($_GET['liste']))
57
{
57
{
58
	$liste = $_GET['liste'];
58
	$liste = $_GET['liste'];
59
}
59
}
60
else
60
else
61
{
61
{
62
	$liste = $l_error_list;
62
	$liste = $l_error_list;
63
}
63
}
64
if($liste == "bl")
64
if($liste == "bl")
65
{
65
{
66
	if(isset($ossi))
66
	if(isset($ossi))
67
	{
67
	{
-
 
68
	if(isset($_GET['state']) && $_GET['state']=='disable')
-
 
69
	{
-
 
70
		$bl_categorie_domain_file = "/usr/local/share/dnsmasq-bl/".$categorie;
-
 
71
		$bl_categorie_ip_file = "/usr/local/share/iptables-bl/".$categorie;
-
 
72
	}
-
 
73
	else
-
 
74
	{
68
	$bl_categorie_domain_file = "/usr/local/share/dnsmasq-bl-enabled/".$categorie;
75
		$bl_categorie_domain_file = "/usr/local/share/dnsmasq-bl-enabled/".$categorie;
69
	$bl_categorie_ip_file = "/usr/local/share/iptables-bl-enabled/".$categorie;
76
		$bl_categorie_ip_file = "/usr/local/share/iptables-bl-enabled/".$categorie;
-
 
77
	}
70
	if(isset($_GET['nb_domains']) && isset($_GET['nb_urls']) && isset($_GET['nb_ip']))
78
	if(isset($_GET['nb_domains']) && isset($_GET['nb_urls']) && isset($_GET['nb_ip']))
71
	{
79
	{
72
		$nb_domains = $_GET['nb_domains'];
80
		$nb_domains = $_GET['nb_domains'];
73
		$nb_ip = $_GET['nb_ip'];
81
		$nb_ip = $_GET['nb_ip'];
74
	}
82
	}
75
	else
83
	else
76
	{
84
	{
77
		if (file_exists($bl_categorie_domain_file))
85
		if (file_exists($bl_categorie_domain_file))
78
			$nb_domains = exec("wc -l $bl_categorie_domain_file | cut -d ' ' -f1");
86
			$nb_domains = exec("wc -l $bl_categorie_domain_file | cut -d ' ' -f1");
79
		else
87
		else
80
			$nb_domains = $l_error_open_file." ".$bl_categorie_domain_file;
88
			$nb_domains = $l_error_open_file." ".$bl_categorie_domain_file;
81
		if(file_exists($bl_categorie_ip_file))
89
		if(file_exists($bl_categorie_ip_file))
82
			$nb_ip = exec("wc -l $bl_categorie_ip_file | cut -d ' ' -f1");
90
			$nb_ip = exec("wc -l $bl_categorie_ip_file | cut -d ' ' -f1");
83
		else
91
		else
84
			$nb_ip = $l_error_open_file." ".$bl_categorie_ip_file;
92
			$nb_ip = $l_error_open_file." ".$bl_categorie_ip_file;
85
	}
93
	}
86
	}
94
	}
87
	else
95
	else
88
	{
96
	{
89
	
97
	
90
	
98
	
91
	$bl_categorie_domain_file = $bl_dnsmasq_dir.$categorie.".conf";
99
	$bl_categorie_domain_file = $bl_dnsmasq_dir.$categorie.".conf";
92
	$bl_categorie_url_file = $bl_dir.$categorie."/urls";
100
	$bl_categorie_url_file = $bl_dir.$categorie."/urls";
93
	$bl_categorie_ip_file = $bl_iptables_dir.$categorie;
101
	$bl_categorie_ip_file = $bl_iptables_dir.$categorie;
94
	if(isset($_GET['nb_domains']) && isset($_GET['nb_urls']) && isset($_GET['nb_ip']))
102
	if(isset($_GET['nb_domains']) && isset($_GET['nb_urls']) && isset($_GET['nb_ip']))
95
	{
103
	{
96
		$nb_domains = $_GET['nb_domains'];
104
		$nb_domains = $_GET['nb_domains'];
97
		$nb_urls = $_GET['nb_urls'];
105
		$nb_urls = $_GET['nb_urls'];
98
		$nb_ip = $_GET['nb_ip'];
106
		$nb_ip = $_GET['nb_ip'];
99
	}
107
	}
100
	else
108
	else
101
	{
109
	{
102
		if (file_exists($bl_categorie_domain_file))
110
		if (file_exists($bl_categorie_domain_file))
103
			$nb_domains = exec("wc -l $bl_categorie_domain_file | cut -d ' ' -f1");
111
			$nb_domains = exec("wc -l $bl_categorie_domain_file | cut -d ' ' -f1");
104
		else
112
		else
105
			$nb_domains = $l_error_open_file." ".$bl_categorie_domain_file;
113
			$nb_domains = $l_error_open_file." ".$bl_categorie_domain_file;
106
		if (file_exists($bl_categorie_url_file))
114
		if (file_exists($bl_categorie_url_file))
107
			$nb_urls = exec ("wc -l $bl_categorie_url_file | cut -d ' ' -f1");
115
			$nb_urls = exec ("wc -l $bl_categorie_url_file | cut -d ' ' -f1");
108
		else
116
		else
109
			$nb_urls = $l_error_open_file." ".$bl_categorie_url_file;
117
			$nb_urls = $l_error_open_file." ".$bl_categorie_url_file;
110
		if(file_exists($bl_categorie_ip_file))
118
		if(file_exists($bl_categorie_ip_file))
111
			$nb_ip = exec("wc -l $bl_categorie_ip_file | cut -d ' ' -f1");
119
			$nb_ip = exec("wc -l $bl_categorie_ip_file | cut -d ' ' -f1");
112
		else
120
		else
113
			$nb_ip = $l_error_open_file." ".$bl_categorie_ip_file;
121
			$nb_ip = $l_error_open_file." ".$bl_categorie_ip_file;
114
	}
122
	}
115
	}
123
	}
116
}
124
}
117
else
125
else
118
{
126
{
119
	
127
	
120
	if(isset($ossi))
128
	if(isset($ossi))
121
	{
129
	{
-
 
130
	if(isset($_GET['state']) && $_GET['state']=='disable')
-
 
131
	{
-
 
132
		$wl_categorie_domain_file = "/usr/local/share/dnsmasq-wl/".$categorie;
-
 
133
		$wl_categorie_ip_file = "/usr/local/share/iptables-wl/".$categorie;
-
 
134
	}
-
 
135
	else
-
 
136
	{
122
	$wl_categorie_domain_file = "/usr/local/share/dnsmasq-wl-enabled/".$categorie;
137
		$wl_categorie_domain_file = "/usr/local/share/dnsmasq-wl-enabled/".$categorie;
123
	$wl_categorie_ip_file = "/usr/local/share/iptables-wl-enabled/".$categorie;
138
		$wl_categorie_ip_file = "/usr/local/share/iptables-wl-enabled/".$categorie;
-
 
139
	}
124
	if(isset($_GET['nb_domains']) && isset($_GET['nb_urls']) && isset($_GET['nb_ip']))
140
	if(isset($_GET['nb_domains']) && isset($_GET['nb_urls']) && isset($_GET['nb_ip']))
125
	{
141
	{
126
		$nb_domains = $_GET['nb_domains'];
142
		$nb_domains = $_GET['nb_domains'];
127
		$nb_ip = $_GET['nb_ip'];
143
		$nb_ip = $_GET['nb_ip'];
128
	}
144
	}
129
	else
145
	else
130
	{
146
	{
131
		if (file_exists($wl_categorie_domain_file))
147
		if (file_exists($wl_categorie_domain_file))
132
			$nb_domains = exec("wc -l $wl_categorie_domain_file | cut -d ' ' -f1");
148
			$nb_domains = exec("wc -l $wl_categorie_domain_file | cut -d ' ' -f1");
133
		else
149
		else
134
			$nb_domains = $l_error_open_file." ".$wl_categorie_domain_file;
150
			$nb_domains = $l_error_open_file." ".$wl_categorie_domain_file;
135
		if(file_exists($wl_categorie_ip_file))
151
		if(file_exists($wl_categorie_ip_file))
136
			$nb_ip = exec("wc -l $wl_categorie_ip_file | cut -d ' ' -f1");
152
			$nb_ip = exec("wc -l $wl_categorie_ip_file | cut -d ' ' -f1");
137
		else
153
		else
138
			$nb_ip = $l_error_open_file." ".$wl_categorie_ip_file;
154
			$nb_ip = $l_error_open_file." ".$wl_categorie_ip_file;
139
	}
155
	}
140
	}
156
	}
141
	else
157
	else
142
	{	
158
	{	
143
	$wl_categorie_domain_file = $wl_dnsmasq_dir.$categorie.".conf";
159
	$wl_categorie_domain_file = $wl_dnsmasq_dir.$categorie.".conf";
144
	$wl_categorie_ip_file = $wl_iptables_dir.$categorie;
160
	$wl_categorie_ip_file = $wl_iptables_dir.$categorie;
145
	if(isset($_GET['nb_domains']))
161
	if(isset($_GET['nb_domains']))
146
	{
162
	{
147
		$nb_domains = $_GET['nb_domains'];
163
		$nb_domains = $_GET['nb_domains'];
148
		$nb_urls = 0;
164
		$nb_urls = 0;
149
		$nb_ip = 0;
165
		$nb_ip = 0;
150
	}
166
	}
151
	else
167
	else
152
	{
168
	{
153
		if (file_exists($wl_categorie_domain_file))
169
		if (file_exists($wl_categorie_domain_file))
154
			$nb_domains = exec("wc -l $wl_categorie_domain_file | cut -d ' ' -f1");
170
			$nb_domains = exec("wc -l $wl_categorie_domain_file | cut -d ' ' -f1");
155
		else
171
		else
156
			$nb_domains = $l_error_open_file." ".$wl_categorie_domain_file;
172
			$nb_domains = $l_error_open_file." ".$wl_categorie_domain_file;
157
		$nb_urls = 0;
173
		$nb_urls = 0;
158
		$nb_ip = 0;
174
		$nb_ip = 0;
159
	}
175
	}
160
	}
176
	}
161
}
177
}
162
$global_usage = file($bl_dir."global_usage");
178
$global_usage = file($bl_dir."global_usage");
163
$langue = strtoupper($Language);
179
$langue = strtoupper($Language);
164
if(isset($categorie) && !isset($ossi))
180
if(isset($categorie) && !isset($ossi))
165
{
181
{
166
	$fin1 = 0; $fin2 = 0;
182
	$fin1 = 0; $fin2 = 0;
167
	foreach($global_usage as $line)
183
	foreach($global_usage as $line)
168
	{
184
	{
169
		if(preg_match("#^NAME:.$categorie$#", $line) == 1)
185
		if(preg_match("#^NAME:.$categorie$#", $line) == 1)
170
			$fin1 = 1;
186
			$fin1 = 1;
171
		if($fin1 && preg_match("#^DESC.$langue:.#", $line) == 1)
187
		if($fin1 && preg_match("#^DESC.$langue:.#", $line) == 1)
172
			$l_description_cat = preg_replace("#^DESC.$langue:.#", "", $line);
188
			$l_description_cat = preg_replace("#^DESC.$langue:.#", "", $line);
173
		if($fin1 && preg_match("#^NAME.$langue:.#", $line) == 1)
189
		if($fin1 && preg_match("#^NAME.$langue:.#", $line) == 1)
174
		{
190
		{
175
			$l_name_cat = preg_replace("#^NAME.$langue:.#", "", $line);
191
			$l_name_cat = preg_replace("#^NAME.$langue:.#", "", $line);
176
			$fin2 = 1;
192
			$fin2 = 1;
177
		}
193
		}
178
		if($fin2) break;
194
		if($fin2) break;
179
		
195
		
180
	}
196
	}
181
}
197
}
182
echo "<TITLE>$l_title</TITLE>";
198
echo "<TITLE>$l_title</TITLE>";
183
?>
199
?>
184
<link rel="stylesheet" href="/css/style.css" type="text/css">
200
<link rel="stylesheet" href="/css/style.css" type="text/css">
185
</HEAD>
201
</HEAD>
186
<body>
202
<body>
187
<TABLE width="100%" border="0" cellspacing="0" cellpadding="0">
203
<TABLE width="100%" border="0" cellspacing="0" cellpadding="0">
188
	<tr><th><?php if(isset($categorie)){echo $categorie ;}else{echo $l_error_cat;}?></th></tr>
204
	<tr><th><?php if(isset($categorie)){echo $categorie ;}else{echo $l_error_cat;}?></th></tr>
189
	<tr bgcolor="#FFCC66"><td><img src="/images/pix.gif" width="1" height="2"></td></tr>
205
	<tr bgcolor="#FFCC66"><td><img src="/images/pix.gif" width="1" height="2"></td></tr>
190
</TABLE>
206
</TABLE>
191
<TABLE width="100%" border=1 cellspacing=0 cellpadding=1>
207
<TABLE width="100%" border=1 cellspacing=0 cellpadding=1>
192
	<tr><td valign="middle" align="left">
208
	<tr><td valign="middle" align="left">
193
		<?php
209
		<?php
194
		if(isset($_GET["filtre"]))
210
		if(isset($_GET["filtre"]))
195
		{
211
		{
196
			$filtre = $_GET["filtre"];
212
			$filtre = $_GET["filtre"];
197
		}
213
		}
198
		else
214
		else
199
		{
215
		{
200
			$filtre = $liste == "bl" ? $bl_categorie_domain_file : $wl_categorie_domain_file;
216
			$filtre = $liste == "bl" ? $bl_categorie_domain_file : $wl_categorie_domain_file;
201
		}
217
		}
202
		$filtre_domain = $liste == "bl" ? $bl_categorie_domain_file : $wl_categorie_domain_file;
218
		$filtre_domain = $liste == "bl" ? $bl_categorie_domain_file : $wl_categorie_domain_file;
203
		if(!isset($ossi))
219
		if(!isset($ossi))
204
			$filtre_url = $liste == "bl" ? $bl_categorie_url_file : "";
220
			$filtre_url = $liste == "bl" ? $bl_categorie_url_file : "";
205
		$filtre_ip = $liste == "bl" ? $bl_categorie_ip_file : $wl_categorie_ip_file;
221
		$filtre_ip = $liste == "bl" ? $bl_categorie_ip_file : $wl_categorie_ip_file;
206
		$compat_categorie=strtr($categorie,"-","_");
222
		$compat_categorie=strtr($categorie,"-","_");
207
		if(!isset($ossi))
223
		if(!isset($ossi))
208
		{
224
		{
209
		echo "<br><center><b>$l_name_cat</b></center>";
225
		echo "<br><center><b>$l_name_cat</b></center>";
210
		echo "<center><b>$l_description_cat</b></center><br>";
226
		echo "<center><b>$l_description_cat</b></center><br>";
211
		echo "$l_nb_domains <b><a href='?liste=$liste&cat=$categorie&filtre=$filtre_domain&titre=domain&nb_domains=$nb_domains&nb_urls=$nb_urls&nb_ip=$nb_ip'>$nb_domains</a></b><br>";
227
		echo "$l_nb_domains <b><a href='?liste=$liste&cat=$categorie&filtre=$filtre_domain&titre=domain&nb_domains=$nb_domains&nb_urls=$nb_urls&nb_ip=$nb_ip'>$nb_domains</a></b><br>";
212
		echo "$l_nb_urls <b><a href='?liste=$liste&cat=$categorie&filtre=$filtre_url&titre=url&nb_domains=$nb_domains&nb_urls=$nb_urls&nb_ip=$nb_ip'>$nb_urls</a></b><br>";
228
		echo "$l_nb_urls <b><a href='?liste=$liste&cat=$categorie&filtre=$filtre_url&titre=url&nb_domains=$nb_domains&nb_urls=$nb_urls&nb_ip=$nb_ip'>$nb_urls</a></b><br>";
213
		echo "$l_nb_ip <b><a href='?liste=$liste&cat=$categorie&filtre=$filtre_ip&titre=ip&nb_domains=$nb_domains&nb_urls=$nb_urls&nb_ip=$nb_ip'>$nb_ip</a></b><br>";
229
		echo "$l_nb_ip <b><a href='?liste=$liste&cat=$categorie&filtre=$filtre_ip&titre=ip&nb_domains=$nb_domains&nb_urls=$nb_urls&nb_ip=$nb_ip'>$nb_ip</a></b><br>";
214
		}
230
		}
215
		else
231
		else
216
		{
232
		{
217
		
233
		
218
		echo "$l_nb_domains <b><a href='?liste=$liste&cat=$categorie&filtre=$filtre_domain&titre=domain&nb_domains=$nb_domains&nb_ip=$nb_ip&ossi=yes'>$nb_domains</a></b><br>";
234
		echo "$l_nb_domains <b><a href='?liste=$liste&cat=$categorie&filtre=$filtre_domain&titre=domain&nb_domains=$nb_domains&nb_ip=$nb_ip&ossi=yes'>$nb_domains</a></b><br>";
219
		echo "$l_nb_ip <b><a href='?liste=$liste&cat=$categorie&filtre=$filtre_ip&titre=ip&nb_domains=$nb_domains&nb_ip=$nb_ip&ossi=yes'>$nb_ip</a></b><br>";
235
		echo "$l_nb_ip <b><a href='?liste=$liste&cat=$categorie&filtre=$filtre_ip&titre=ip&nb_domains=$nb_domains&nb_ip=$nb_ip&ossi=yes'>$nb_ip</a></b><br>";
220
		}
236
		}
221
		?>
237
		?>
222
	</td></tr>
238
	</td></tr>
223
</TABLE>
239
</TABLE>
224
<br>
240
<br>
225
<TABLE width="100%" border="0" cellspacing="0" cellpadding="0">
241
<TABLE width="100%" border="0" cellspacing="0" cellpadding="0">
226
	<tr><th>
242
	<tr><th>
227
		<?php
243
		<?php
228
		if(isset($_GET["titre"]))
244
		if(isset($_GET["titre"]))
229
		{
245
		{
230
			$titre = $_GET["titre"];
246
			$titre = $_GET["titre"];
231
		}
247
		}
232
		else
248
		else
233
		{
249
		{
234
			$titre = "domain";
250
			$titre = "domain";
235
		}
251
		}
236
		echo $l_example.$titre;
252
		echo $l_example.$titre;
237
		?>
253
		?>
238
	</th></tr>
254
	</th></tr>
239
	<tr bgcolor="#FFCC66"><td><img src="/images/pix.gif" width="1" height="2"></td></tr>
255
	<tr bgcolor="#FFCC66"><td><img src="/images/pix.gif" width="1" height="2"></td></tr>
240
</TABLE>
256
</TABLE>
241
<TABLE width="100%" border=1 cellspacing=0 cellpadding=1>
257
<TABLE width="100%" border=1 cellspacing=0 cellpadding=1>
242
	<tr><td valign="middle" align="left">
258
	<tr><td valign="middle" align="left">
243
<?php
259
<?php
244
		if($titre == "domain")
260
		if($titre == "domain")
245
		{
261
		{
246
 
262
 
247
			$filtre = $liste == "bl" ? $bl_categorie_domain_file : $wl_categorie_domain_file;
263
			$filtre = $liste == "bl" ? $bl_categorie_domain_file : $wl_categorie_domain_file;
248
			exec("head -n 15 $filtre | cut -d '/' -f2", $resultat);
264
			exec("head -n 15 $filtre | cut -d '/' -f2", $resultat);
249
		}
265
		}
250
		elseif($titre == "ip")
266
		elseif($titre == "ip")
251
		{
267
		{
252
			$filtre = $liste == "bl" ? $bl_categorie_ip_file : $wl_categorie_ip_file;
268
			$filtre = $liste == "bl" ? $bl_categorie_ip_file : $wl_categorie_ip_file;
253
			exec("head -n 15 $filtre | cut -d ' ' -f3", $resultat);
269
			exec("head -n 15 $filtre | cut -d ' ' -f3", $resultat);
254
		}
270
		}
255
		else
271
		else
256
		{
272
		{
257
			exec("head -n 15 $filtre", $resultat);
273
			exec("head -n 15 $filtre", $resultat);
258
		}
274
		}
259
		for($i=0; $i<count($resultat); $i++)
275
		for($i=0; $i<count($resultat); $i++)
260
			echo $resultat[$i]."<br/>";
276
			echo $resultat[$i]."<br/>";
261
		?>
277
		?>
262
	</td></tr>
278
	</td></tr>
263
</TABLE>
279
</TABLE>
264
<center><a href="javascript:window.close();"><b><?php echo "$l_close"; ?></b></a></center>
280
<center><a href="javascript:window.close();"><b><?php echo "$l_close"; ?></b></a></center>
265
</BODY>
281
</BODY>
266
</HTML>
282
</HTML>
-
 
283
 
267
 
284