Subversion Repositories ALCASAR

Rev

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

Rev 1899 Rev 1903
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
	$l_tor_node = "Cette liste correspond au noeud du réseau Tor. Si cette liste est activée, les utilisateurs blacklistés ne pourront pas accéder au réseau Tor</br>";
32
}
33
}
33
else
34
else
34
{
35
{
35
	$l_title = "Blacklist categories";
36
	$l_title = "Blacklist categories";
36
	$l_error_open_file="Error opening the file";
37
	$l_error_open_file="Error opening the file";
37
	$l_close="Close";
38
	$l_close="Close";
38
	$l_description_cat="This category isn't describe";
39
	$l_description_cat="This category isn't describe";
39
	$l_name_cat ="This category has not name";
40
	$l_name_cat ="This category has not name";
40
	$l_nb_domains="Number of filtered domain names :";
41
	$l_nb_domains="Number of filtered domain names :";
41
	$l_nb_urls="Number of filtered URL :";
42
	$l_nb_urls="Number of filtered URL :";
42
	$l_nb_ip="Number of filtered IP :";
43
	$l_nb_ip="Number of filtered IP :";
43
	$l_example="Example(s) : ";
44
	$l_example="Example(s) : ";
44
	$l_error_cat = "Error category";
45
	$l_error_cat = "Error category";
45
	$l_error_list = "Error listing";
46
	$l_error_list = "Error listing";
-
 
47
	$l_tor_node = "This list is Tor's nodes. If you enable this list, users won't reach Tor network.</br> ";
46
 
48
 
47
}
49
}
48
if(isset($_GET['cat']))
50
if(isset($_GET['cat']))
49
{
51
{
50
	$categorie = $_GET['cat'];
52
	$categorie = $_GET['cat'];
51
} 
53
} 
52
else
54
else
53
{
55
{
54
	$categorie = $l_error_cat;
56
	$categorie = $l_error_cat;
55
}
57
}
56
if(isset($_GET['liste']))
58
if(isset($_GET['liste']))
57
{
59
{
58
	$liste = $_GET['liste'];
60
	$liste = $_GET['liste'];
59
}
61
}
60
else
62
else
61
{
63
{
62
	$liste = $l_error_list;
64
	$liste = $l_error_list;
63
}
65
}
64
if($liste == "bl")
66
if($liste == "bl")
65
{
67
{
66
	if(isset($ossi))
68
	if(isset($ossi))
67
	{
69
	{
68
	if(isset($_GET['state']) && $_GET['state']=='disable')
70
	if(isset($_GET['state']) && $_GET['state']=='disable')
69
	{
71
	{
70
		$bl_categorie_domain_file = "/usr/local/share/dnsmasq-bl/".$categorie;
72
		$bl_categorie_domain_file = "/usr/local/share/dnsmasq-bl/".$categorie;
71
		$bl_categorie_ip_file = "/usr/local/share/iptables-bl/".$categorie;
73
		$bl_categorie_ip_file = "/usr/local/share/iptables-bl/".$categorie;
72
	}
74
	}
73
	else
75
	else
74
	{
76
	{
75
		$bl_categorie_domain_file = "/usr/local/share/dnsmasq-bl-enabled/".$categorie;
77
		$bl_categorie_domain_file = "/usr/local/share/dnsmasq-bl-enabled/".$categorie;
76
		$bl_categorie_ip_file = "/usr/local/share/iptables-bl-enabled/".$categorie;
78
		$bl_categorie_ip_file = "/usr/local/share/iptables-bl-enabled/".$categorie;
77
	}
79
	}
78
	if(isset($_GET['nb_domains']) && isset($_GET['nb_urls']) && isset($_GET['nb_ip']))
80
	if(isset($_GET['nb_domains']) && isset($_GET['nb_urls']) && isset($_GET['nb_ip']))
79
	{
81
	{
80
		$nb_domains = $_GET['nb_domains'];
82
		$nb_domains = $_GET['nb_domains'];
81
		$nb_ip = $_GET['nb_ip'];
83
		$nb_ip = $_GET['nb_ip'];
82
	}
84
	}
83
	else
85
	else
84
	{
86
	{
85
		if (file_exists($bl_categorie_domain_file))
87
		if (file_exists($bl_categorie_domain_file))
-
 
88
		{
86
			$nb_domains = exec("wc -l $bl_categorie_domain_file | cut -d ' ' -f1");
89
			$nb_domains = exec("wc -l $bl_categorie_domain_file | cut -d ' ' -f1");
-
 
90
		}
87
		else
91
		else
-
 
92
		{
-
 
93
			if($categorie!='ossi-tor_node.txt')
-
 
94
			{
88
			$nb_domains = $l_error_open_file." ".$bl_categorie_domain_file;
95
				$nb_domains = $l_error_open_file." ".$bl_categorie_domain_file;
-
 
96
			}
-
 
97
			else
-
 
98
			{
-
 
99
				$nb_domains = "";
-
 
100
				$_GET["titre"] = 'ip';
-
 
101
			}
-
 
102
		}
89
		if(file_exists($bl_categorie_ip_file))
103
		if(file_exists($bl_categorie_ip_file))
90
			$nb_ip = exec("wc -l $bl_categorie_ip_file | cut -d ' ' -f1");
104
			$nb_ip = exec("wc -l $bl_categorie_ip_file | cut -d ' ' -f1");
91
		else
105
		else
92
			$nb_ip = $l_error_open_file." ".$bl_categorie_ip_file;
106
			$nb_ip = $l_error_open_file." ".$bl_categorie_ip_file;
93
	}
107
	}
94
	}
108
	}
95
	else
109
	else
96
	{
110
	{
97
	
111
	
98
	
112
	
99
	$bl_categorie_domain_file = $bl_dnsmasq_dir.$categorie.".conf";
113
	$bl_categorie_domain_file = $bl_dnsmasq_dir.$categorie.".conf";
100
	$bl_categorie_url_file = $bl_dir.$categorie."/urls";
114
	$bl_categorie_url_file = $bl_dir.$categorie."/urls";
101
	$bl_categorie_ip_file = $bl_iptables_dir.$categorie;
115
	$bl_categorie_ip_file = $bl_iptables_dir.$categorie;
102
	if(isset($_GET['nb_domains']) && isset($_GET['nb_urls']) && isset($_GET['nb_ip']))
116
	if(isset($_GET['nb_domains']) && isset($_GET['nb_urls']) && isset($_GET['nb_ip']))
103
	{
117
	{
104
		$nb_domains = $_GET['nb_domains'];
118
		$nb_domains = $_GET['nb_domains'];
105
		$nb_urls = $_GET['nb_urls'];
119
		$nb_urls = $_GET['nb_urls'];
106
		$nb_ip = $_GET['nb_ip'];
120
		$nb_ip = $_GET['nb_ip'];
107
	}
121
	}
108
	else
122
	else
109
	{
123
	{
110
		if (file_exists($bl_categorie_domain_file))
124
		if (file_exists($bl_categorie_domain_file))
111
			$nb_domains = exec("wc -l $bl_categorie_domain_file | cut -d ' ' -f1");
125
			$nb_domains = exec("wc -l $bl_categorie_domain_file | cut -d ' ' -f1");
112
		else
126
		else
113
			$nb_domains = $l_error_open_file." ".$bl_categorie_domain_file;
127
			$nb_domains = $l_error_open_file." ".$bl_categorie_domain_file;
114
		if (file_exists($bl_categorie_url_file))
128
		if (file_exists($bl_categorie_url_file))
115
			$nb_urls = exec ("wc -l $bl_categorie_url_file | cut -d ' ' -f1");
129
			$nb_urls = exec ("wc -l $bl_categorie_url_file | cut -d ' ' -f1");
116
		else
130
		else
117
			$nb_urls = $l_error_open_file." ".$bl_categorie_url_file;
131
			$nb_urls = $l_error_open_file." ".$bl_categorie_url_file;
118
		if(file_exists($bl_categorie_ip_file))
132
		if(file_exists($bl_categorie_ip_file))
119
			$nb_ip = exec("wc -l $bl_categorie_ip_file | cut -d ' ' -f1");
133
			$nb_ip = exec("wc -l $bl_categorie_ip_file | cut -d ' ' -f1");
120
		else
134
		else
121
			$nb_ip = $l_error_open_file." ".$bl_categorie_ip_file;
135
			$nb_ip = $l_error_open_file." ".$bl_categorie_ip_file;
122
	}
136
	}
123
	}
137
	}
124
}
138
}
125
else
139
else
126
{
140
{
127
	
141
	
128
	if(isset($ossi))
142
	if(isset($ossi))
129
	{
143
	{
130
	if(isset($_GET['state']) && $_GET['state']=='disable')
144
	if(isset($_GET['state']) && $_GET['state']=='disable')
131
	{
145
	{
132
		$wl_categorie_domain_file = "/usr/local/share/dnsmasq-wl/".$categorie;
146
		$wl_categorie_domain_file = "/usr/local/share/dnsmasq-wl/".$categorie;
133
		$wl_categorie_ip_file = "/usr/local/share/iptables-wl/".$categorie;
147
		$wl_categorie_ip_file = "/usr/local/share/iptables-wl/".$categorie;
134
	}
148
	}
135
	else
149
	else
136
	{
150
	{
137
		$wl_categorie_domain_file = "/usr/local/share/dnsmasq-wl-enabled/".$categorie;
151
		$wl_categorie_domain_file = "/usr/local/share/dnsmasq-wl-enabled/".$categorie;
138
		$wl_categorie_ip_file = "/usr/local/share/iptables-wl-enabled/".$categorie;
152
		$wl_categorie_ip_file = "/usr/local/share/iptables-wl-enabled/".$categorie;
139
	}
153
	}
140
	if(isset($_GET['nb_domains']) && isset($_GET['nb_urls']) && isset($_GET['nb_ip']))
154
	if(isset($_GET['nb_domains']) && isset($_GET['nb_urls']) && isset($_GET['nb_ip']))
141
	{
155
	{
142
		$nb_domains = $_GET['nb_domains'];
156
		$nb_domains = $_GET['nb_domains'];
143
		$nb_ip = $_GET['nb_ip'];
157
		$nb_ip = $_GET['nb_ip'];
144
	}
158
	}
145
	else
159
	else
146
	{
160
	{
147
		if (file_exists($wl_categorie_domain_file))
161
		if (file_exists($wl_categorie_domain_file))
148
			$nb_domains = exec("wc -l $wl_categorie_domain_file | cut -d ' ' -f1");
162
			$nb_domains = exec("wc -l $wl_categorie_domain_file | cut -d ' ' -f1");
149
		else
163
		else
150
			$nb_domains = $l_error_open_file." ".$wl_categorie_domain_file;
164
			$nb_domains = $l_error_open_file." ".$wl_categorie_domain_file;
151
		if(file_exists($wl_categorie_ip_file))
165
		if(file_exists($wl_categorie_ip_file))
152
			$nb_ip = exec("wc -l $wl_categorie_ip_file | cut -d ' ' -f1");
166
			$nb_ip = exec("wc -l $wl_categorie_ip_file | cut -d ' ' -f1");
153
		else
167
		else
154
			$nb_ip = $l_error_open_file." ".$wl_categorie_ip_file;
168
			$nb_ip = $l_error_open_file." ".$wl_categorie_ip_file;
155
	}
169
	}
156
	}
170
	}
157
	else
171
	else
158
	{	
172
	{	
159
	$wl_categorie_domain_file = $wl_dnsmasq_dir.$categorie.".conf";
173
	$wl_categorie_domain_file = $wl_dnsmasq_dir.$categorie.".conf";
160
	$wl_categorie_ip_file = $wl_iptables_dir.$categorie;
174
	$wl_categorie_ip_file = $wl_iptables_dir.$categorie;
161
	if(isset($_GET['nb_domains']))
175
	if(isset($_GET['nb_domains']))
162
	{
176
	{
163
		$nb_domains = $_GET['nb_domains'];
177
		$nb_domains = $_GET['nb_domains'];
164
		$nb_urls = 0;
178
		$nb_urls = 0;
165
		$nb_ip = 0;
179
		$nb_ip = 0;
166
	}
180
	}
167
	else
181
	else
168
	{
182
	{
169
		if (file_exists($wl_categorie_domain_file))
183
		if (file_exists($wl_categorie_domain_file))
170
			$nb_domains = exec("wc -l $wl_categorie_domain_file | cut -d ' ' -f1");
184
			$nb_domains = exec("wc -l $wl_categorie_domain_file | cut -d ' ' -f1");
171
		else
185
		else
172
			$nb_domains = $l_error_open_file." ".$wl_categorie_domain_file;
186
			$nb_domains = $l_error_open_file." ".$wl_categorie_domain_file;
173
		$nb_urls = 0;
187
		$nb_urls = 0;
174
		$nb_ip = 0;
188
		$nb_ip = 0;
175
	}
189
	}
176
	}
190
	}
177
}
191
}
178
$global_usage = file($bl_dir."global_usage");
192
$global_usage = file($bl_dir."global_usage");
179
$langue = strtoupper($Language);
193
$langue = strtoupper($Language);
180
if(isset($categorie) && !isset($ossi))
194
if(isset($categorie) && !isset($ossi))
181
{
195
{
182
	$fin1 = 0; $fin2 = 0;
196
	$fin1 = 0; $fin2 = 0;
183
	foreach($global_usage as $line)
197
	foreach($global_usage as $line)
184
	{
198
	{
185
		if(preg_match("#^NAME:.$categorie$#", $line) == 1)
199
		if(preg_match("#^NAME:.$categorie$#", $line) == 1)
186
			$fin1 = 1;
200
			$fin1 = 1;
187
		if($fin1 && preg_match("#^DESC.$langue:.#", $line) == 1)
201
		if($fin1 && preg_match("#^DESC.$langue:.#", $line) == 1)
188
			$l_description_cat = preg_replace("#^DESC.$langue:.#", "", $line);
202
			$l_description_cat = preg_replace("#^DESC.$langue:.#", "", $line);
189
		if($fin1 && preg_match("#^NAME.$langue:.#", $line) == 1)
203
		if($fin1 && preg_match("#^NAME.$langue:.#", $line) == 1)
190
		{
204
		{
191
			$l_name_cat = preg_replace("#^NAME.$langue:.#", "", $line);
205
			$l_name_cat = preg_replace("#^NAME.$langue:.#", "", $line);
192
			$fin2 = 1;
206
			$fin2 = 1;
193
		}
207
		}
194
		if($fin2) break;
208
		if($fin2) break;
195
		
209
		
196
	}
210
	}
197
}
211
}
198
echo "<TITLE>$l_title</TITLE>";
212
echo "<TITLE>$l_title</TITLE>";
199
?>
213
?>
200
<link rel="stylesheet" href="/css/style.css" type="text/css">
214
<link rel="stylesheet" href="/css/style.css" type="text/css">
201
</HEAD>
215
</HEAD>
202
<body>
216
<body>
203
<TABLE width="100%" border="0" cellspacing="0" cellpadding="0">
217
<TABLE width="100%" border="0" cellspacing="0" cellpadding="0">
204
	<tr><th><?php if(isset($categorie)){echo $categorie ;}else{echo $l_error_cat;}?></th></tr>
218
	<tr><th><?php if(isset($categorie)){echo $categorie ;}else{echo $l_error_cat;}?></th></tr>
205
	<tr bgcolor="#FFCC66"><td><img src="/images/pix.gif" width="1" height="2"></td></tr>
219
	<tr bgcolor="#FFCC66"><td><img src="/images/pix.gif" width="1" height="2"></td></tr>
206
</TABLE>
220
</TABLE>
207
<TABLE width="100%" border=1 cellspacing=0 cellpadding=1>
221
<TABLE width="100%" border=1 cellspacing=0 cellpadding=1>
208
	<tr><td valign="middle" align="left">
222
	<tr><td valign="middle" align="left">
209
		<?php
223
		<?php
210
		if(isset($_GET["filtre"]))
224
		if(isset($_GET["filtre"]))
211
		{
225
		{
212
			$filtre = $_GET["filtre"];
226
			$filtre = $_GET["filtre"];
213
		}
227
		}
214
		else
228
		else
215
		{
229
		{
216
			$filtre = $liste == "bl" ? $bl_categorie_domain_file : $wl_categorie_domain_file;
230
			$filtre = $liste == "bl" ? $bl_categorie_domain_file : $wl_categorie_domain_file;
217
		}
231
		}
-
 
232
		if($categorie!='ossi-tor_node.txt')
218
		$filtre_domain = $liste == "bl" ? $bl_categorie_domain_file : $wl_categorie_domain_file;
233
			$filtre_domain = $liste == "bl" ? $bl_categorie_domain_file : $wl_categorie_domain_file;
219
		if(!isset($ossi))
234
		if(!isset($ossi))
220
			$filtre_url = $liste == "bl" ? $bl_categorie_url_file : "";
235
			$filtre_url = $liste == "bl" ? $bl_categorie_url_file : "";
221
		$filtre_ip = $liste == "bl" ? $bl_categorie_ip_file : $wl_categorie_ip_file;
236
		$filtre_ip = $liste == "bl" ? $bl_categorie_ip_file : $wl_categorie_ip_file;
222
		$compat_categorie=strtr($categorie,"-","_");
237
		$compat_categorie=strtr($categorie,"-","_");
223
		if(!isset($ossi))
238
		if(!isset($ossi))
224
		{
239
		{
225
		echo "<br><center><b>$l_name_cat</b></center>";
240
		echo "<br><center><b>$l_name_cat</b></center>";
226
		echo "<center><b>$l_description_cat</b></center><br>";
241
		echo "<center><b>$l_description_cat</b></center><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>";
242
		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>";
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>";
243
		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>";
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>";
244
		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>";
230
		}
245
		}
231
		else
246
		else
232
		{
247
		{
-
 
248
			if($categorie=='ossi-tor_node.txt')
-
 
249
			{
-
 
250
				echo $l_tor_node;
-
 
251
				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>";
233
		
252
			}
-
 
253
			else
-
 
254
			{
-
 
255
				if(isset($_GET['state']))
-
 
256
				{
-
 
257
					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&state=disable'>$nb_domains</a></b><br>";
-
 
258
					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&state=disable'>$nb_ip</a></b><br>";
-
 
259
				}
-
 
260
				else
-
 
261
				{
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>";
262
					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>";
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>";
263
					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>";
-
 
264
				}
-
 
265
			}
236
		}
266
		}
237
		?>
267
		?>
238
	</td></tr>
268
	</td></tr>
239
</TABLE>
269
</TABLE>
240
<br>
270
<br>
241
<TABLE width="100%" border="0" cellspacing="0" cellpadding="0">
271
<TABLE width="100%" border="0" cellspacing="0" cellpadding="0">
242
	<tr><th>
272
	<tr><th>
243
		<?php
273
		<?php
244
		if(isset($_GET["titre"]))
274
		if(isset($_GET["titre"]))
245
		{
275
		{
246
			$titre = $_GET["titre"];
276
			$titre = $_GET["titre"];
247
		}
277
		}
248
		else
278
		else
249
		{
279
		{
250
			$titre = "domain";
280
			$titre = "domain";
251
		}
281
		}
252
		echo $l_example.$titre;
282
		echo $l_example.$titre;
253
		?>
283
		?>
254
	</th></tr>
284
	</th></tr>
255
	<tr bgcolor="#FFCC66"><td><img src="/images/pix.gif" width="1" height="2"></td></tr>
285
	<tr bgcolor="#FFCC66"><td><img src="/images/pix.gif" width="1" height="2"></td></tr>
256
</TABLE>
286
</TABLE>
257
<TABLE width="100%" border=1 cellspacing=0 cellpadding=1>
287
<TABLE width="100%" border=1 cellspacing=0 cellpadding=1>
258
	<tr><td valign="middle" align="left">
288
	<tr><td valign="middle" align="left">
259
<?php
289
<?php
260
		if($titre == "domain")
290
		if($titre == "domain")
261
		{
291
		{
262
 
292
 
263
			$filtre = $liste == "bl" ? $bl_categorie_domain_file : $wl_categorie_domain_file;
293
			$filtre = $liste == "bl" ? $bl_categorie_domain_file : $wl_categorie_domain_file;
264
			exec("head -n 15 $filtre | cut -d '/' -f2", $resultat);
294
			exec("head -n 15 $filtre | cut -d '/' -f2", $resultat);
265
		}
295
		}
266
		elseif($titre == "ip")
296
		elseif($titre == "ip")
267
		{
297
		{
268
			$filtre = $liste == "bl" ? $bl_categorie_ip_file : $wl_categorie_ip_file;
298
			$filtre = $liste == "bl" ? $bl_categorie_ip_file : $wl_categorie_ip_file;
269
			exec("head -n 15 $filtre | cut -d ' ' -f3", $resultat);
299
			exec("head -n 15 $filtre | cut -d ' ' -f3", $resultat);
270
		}
300
		}
271
		else
301
		else
272
		{
302
		{
273
			exec("head -n 15 $filtre", $resultat);
303
			exec("head -n 15 $filtre", $resultat);
274
		}
304
		}
275
		for($i=0; $i<count($resultat); $i++)
305
		for($i=0; $i<count($resultat); $i++)
276
			echo $resultat[$i]."<br/>";
306
			echo $resultat[$i]."<br/>";
277
		?>
307
		?>
278
	</td></tr>
308
	</td></tr>
279
</TABLE>
309
</TABLE>
280
<center><a href="javascript:window.close();"><b><?php echo "$l_close"; ?></b></a></center>
310
<center><a href="javascript:window.close();"><b><?php echo "$l_close"; ?></b></a></center>
281
</BODY>
311
</BODY>
282
</HTML>
312
</HTML>
283
 
313
 
284
 
314