Line 11... |
Line 11... |
11 |
$Language = strtolower(substr(chop($Langue[0]),0,2)); }
|
11 |
$Language = strtolower(substr(chop($Langue[0]),0,2)); }
|
12 |
if($Language == 'fr'){
|
12 |
if($Language == 'fr'){
|
13 |
$l_title = "Catégories de la liste noire";
|
13 |
$l_title = "Catégories de la liste noire";
|
14 |
$l_error_open_file="Erreur d'ouverture du fichier";
|
14 |
$l_error_open_file="Erreur d'ouverture du fichier";
|
15 |
$l_close="Fermer";
|
15 |
$l_close="Fermer";
|
16 |
$l_unknown_cat="Cette catégorie n'est pas décrite";
|
16 |
$l_description_cat="Cette catégorie n'est pas décrite";
|
17 |
$l_nb_domains="Nombre de noms de domaine filtrés :";
|
17 |
$l_nb_domains="Nombre de noms de domaine filtrés :";
|
18 |
$l_nb_urls="Nombre d'URL filtrés :";
|
18 |
$l_nb_urls="Nombre d'URL filtrés :";
|
19 |
$l_explain_adult="Sites relatifs à l'érotisme et à la pornographie";
|
- |
|
20 |
$l_explain_agressif="Sites extrémistes, racistes, antisémites ou incitant à la haine";
|
- |
|
21 |
$l_explain_arjel="Sites de pari en ligne certifies par l'ARJEL (Autorité de Régulation des Jeux En Ligne)";
|
- |
|
22 |
$l_explain_astrology="Sites relatifs à l'astrologie";
|
- |
|
23 |
$l_explain_bank="Sites de banques en ligne";
|
- |
|
24 |
$l_explain_audio_video="Sites de téléchargement de fichiers audio et vidéo";
|
- |
|
25 |
$l_explain_blog="Sites d'hébergement de blogs";
|
- |
|
26 |
$l_explain_celebrity="Sites « people », stars, etc.";
|
- |
|
27 |
$l_explain_chat="Sites de dialogue en ligne";
|
- |
|
28 |
$l_explain_child="Sites pour enfants";
|
- |
|
29 |
$l_explain_cleaning="Sites relatifs à la mise à jour logicielle ou antivirale";
|
- |
|
30 |
$l_explain_dangerous_material="Sites relatifs à la création de produits dangereux (explosif, poison, etc.)";
|
- |
|
31 |
$l_explain_dating="Sites de rencontres en ligne";
|
- |
|
32 |
$l_explain_drogue="Sites relatifs aux produits stupéfiants";
|
- |
|
33 |
$l_explain_filehosting="Entrepôts de fichiers (vidéo, images, son, logiciels, etc.)";
|
- |
|
34 |
$l_explain_financial="Sites d'informations financières, bourses, etc.";
|
- |
|
35 |
$l_explain_forums="Sites d'hébergement de forums de discussion";
|
- |
|
36 |
$l_explain_gambling="Sites de jeux d'argent en ligne (casino, grattage virtuel, etc.)";
|
- |
|
37 |
$l_explain_games="Sites de jeux en ligne";
|
- |
|
38 |
$l_explain_hacking="Sites relatifs au piratage informatique";
|
- |
|
39 |
$l_explain_jobsearch="Sites de recherche d'emplois";
|
- |
|
40 |
$l_explain_liste_bu="Liste de sites éducatifs pour bibliothèque";
|
- |
|
41 |
$l_explain_malware="Site relatifs au logiciels malveillants (virus, vers, trojans, etc.)";
|
- |
|
42 |
$l_explain_manga="Site de Mangas";
|
- |
|
43 |
$l_explain_marketingware="Sites marchands douteux (X, organes, enfants, etc.)";
|
- |
|
44 |
$l_explain_mixed_adult="Sites pour adultes (image-choc, gore, guerre, etc.)";
|
- |
|
45 |
$l_explain_mobile_phone="Sites relatifs aux mobiles GSM (sonneries, logos, etc.)";
|
- |
|
46 |
$l_explain_ossi="Noms de domaine et URLs que vous ajoutez à la liste noire (voir ci-dessous)";
|
- |
|
47 |
$l_explain_phishing="Sites relatifs à l'hammeçonnage (pièges bancaires, redirection, etc.)";
|
- |
|
48 |
$l_explain_press="Sites de presse";
|
19 |
$l_nb_ip="Nombre d'IP filtrées :";
|
49 |
$l_explain_publicite="Sites ou bannières publicitaires";
|
- |
|
50 |
$l_explain_radio="Sites de radios en ligne ou de podcast";
|
- |
|
51 |
$l_explain_reaffected="Sites connus ayant changé de propriétaire (et donc de contenu)";
|
- |
|
52 |
$l_explain_redirector="Sites de redirection, d'anonymisation ou de contournement";
|
- |
|
53 |
$l_explain_remote_control="Sites permettant la prise de controle a distance";
|
- |
|
54 |
$l_explain_sect="Sites sectaires";
|
- |
|
55 |
$l_explain_social_networks="Sites de réseaux sociaux";
|
- |
|
56 |
$l_explain_sexual_education="Sites relatifs à l'éducation sexuelle";
|
- |
|
57 |
$l_explain_shopping="Sites de vente et d'achat en ligne";
|
- |
|
58 |
$l_explain_sport="Sites de sport";
|
- |
|
59 |
$l_explain_strict_redirector="URL intentionnellement mal formées";
|
- |
|
60 |
$l_explain_strong_redirector="URL mal formées dans une requête « google »";
|
- |
|
61 |
$l_explain_tricheur="Sites relatifs aux tricheries (examens, concours, etc.)";
|
- |
|
62 |
$l_explain_webmail="Site WEB permettant de consultation son courrier électronique";
|
- |
|
63 |
$l_explain_warez="Sites relatifs aux logiciels piratés (crackés), aux générateurs de clés, etc.";
|
- |
|
64 |
}
|
20 |
}
|
65 |
else {
|
21 |
else {
|
66 |
$l_title = "Blacklist categories";
|
22 |
$l_title = "Blacklist categories";
|
67 |
$l_error_open_file="Error opening the file";
|
23 |
$l_error_open_file="Error opening the file";
|
68 |
$l_close="Close";
|
24 |
$l_close="Close";
|
69 |
$l_unknown_cat="This category isn't describe";
|
25 |
$l_description_cat="This category isn't describe";
|
70 |
$l_nb_domains="Number of filtered domain names :";
|
26 |
$l_nb_domains="Number of filtered domain names :";
|
71 |
$l_nb_urls="Number of filtered URL :";
|
27 |
$l_nb_urls="Number of filtered URL :";
|
72 |
$l_explain_adult="Sites related to eroticism and pornography";
|
- |
|
73 |
$l_explain_agressif="Sites extremist, racist, anti-Semitic or hate";
|
- |
|
74 |
$l_explain_arjel="Online gambling sites allowed by the french authority 'ARJEL' (Autorité de Régulation des Jeux En Ligne)";
|
- |
|
75 |
$l_explain_astrology="Sites related to astrology";
|
- |
|
76 |
$l_explain_audio_video="Sites for downloading audio and video";
|
- |
|
77 |
$l_explain_bank="Online bank sites";
|
- |
|
78 |
$l_explain_blog="Sites hosting blogs";
|
- |
|
79 |
$l_explain_celebrity="Sites « people », stars, etc.";
|
- |
|
80 |
$l_explain_chat="Online chat sites";
|
- |
|
81 |
$l_explain_child="Sites for children";
|
28 |
$l_nb_ip="Number of filtered IP :";
|
82 |
$l_explain_cleaning="Sites related to software update or antiviral";
|
- |
|
83 |
$l_explain_dangerous_material="Sites related to the creation of dangerous goods (explosives, poison, etc.)";
|
- |
|
84 |
$l_explain_dating="Online dating sites";
|
- |
|
85 |
$l_explain_drogue="Sites related to narcotic";
|
- |
|
86 |
$l_explain_filehosting="Warehouses of files (video, images, sound, software, etc.)";
|
- |
|
87 |
$l_explain_financial="Sites of financial information";
|
- |
|
88 |
$l_explain_forums="Sites hosting discussion forums";
|
- |
|
89 |
$l_explain_gambling="Online gambling sites (casino, virtual scratching, etc.)";
|
- |
|
90 |
$l_explain_games="Online games sites";
|
- |
|
91 |
$l_explain_hacking="Sites related to hacking";
|
- |
|
92 |
$l_explain_jobsearch="Job search sites";
|
- |
|
93 |
$l_explain_liste_bu="List of educational sites for library";
|
- |
|
94 |
$l_explain_malware="Malware sites (viruses, worms, trojans, etc.).";
|
- |
|
95 |
$l_explain_manga="Manga site";
|
- |
|
96 |
$l_explain_marketingware="doubtful commercial sites";
|
- |
|
97 |
$l_explain_mixed_adult="Adult sites (shock, gore, war, etc.).";
|
- |
|
98 |
$l_explain_mobile_phone="Sites related to GSM mobile (ringtones, logos, etc.)";
|
- |
|
99 |
$l_explain_ossi="Domain names and URLs you add to the blacklist (see below)";
|
- |
|
100 |
$l_explain_phishing="Phishing sites (traps banking, redirect, etc..)";
|
- |
|
101 |
$l_explain_press="News sites";
|
- |
|
102 |
$l_explain_publicite="Advertising sites";
|
- |
|
103 |
$l_explain_radio="Online radio podcast sites";
|
- |
|
104 |
$l_explain_reaffected="Sites that have changed ownership (and therefore content)";
|
- |
|
105 |
$l_explain_redirector="redirects, anonymization or bypass sites";
|
- |
|
106 |
$l_explain_remote_control="Sites for making remote control";
|
- |
|
107 |
$l_explain_sect="Sectarian sites";
|
- |
|
108 |
$l_explain_social_networks="Social networks sites";
|
- |
|
109 |
$l_explain_sexual_education="Sites related to sex education";
|
- |
|
110 |
$l_explain_shopping="Shopping sites and online shopping";
|
- |
|
111 |
$l_explain_sport="Sport sites";
|
- |
|
112 |
$l_explain_strict_redirector="Intentionally malformed URL";
|
- |
|
113 |
$l_explain_strong_redirector="Malformed URL in a 'google' query";
|
- |
|
114 |
$l_explain_tricheur="Sites related to cheating (tests, examinations, etc.)";
|
- |
|
115 |
$l_explain_webmail="Web sites for e-mail consultation";
|
- |
|
116 |
$l_explain_warez="Sites related to cracked softwares";
|
- |
|
117 |
}
|
29 |
}
|
118 |
if (isset($_GET['cat'])){$categorie=$_GET['cat'];}
|
30 |
if (isset($_GET['cat'])){$categorie=$_GET['cat'];}
|
119 |
$bl_categorie_domain_file=$bl_dir.$categorie."/domains";
|
31 |
$bl_categorie_domain_file=$bl_dir.$categorie."/domains";
|
120 |
$bl_categorie_url_file=$bl_dir.$categorie."/urls";
|
32 |
$bl_categorie_url_file=$bl_dir.$categorie."/urls";
|
- |
|
33 |
$bl_categorie_ip_file = "/usr/local/share/iptables-bl/".$categorie;
|
121 |
if (file_exists($bl_categorie_domain_file))
|
34 |
if (file_exists($bl_categorie_domain_file))
|
122 |
$nb_domains=exec ("wc -w $bl_categorie_domain_file|cut -d' ' -f1");
|
35 |
$nb_domains = exec("grep -vE '^([0-9]{1,3}\.){3}[0-9]{1,3}$' $bl_categorie_domain_file | wc -l | cut -d' ' -f1");
|
123 |
else
|
36 |
else
|
124 |
$nb_domains=$l_error_openfilei." ".$bl_categorie_domain_file;
|
37 |
$nb_domains=$l_error_openfile." ".$bl_categorie_domain_file;
|
125 |
if (file_exists($bl_categorie_url_file))
|
38 |
if (file_exists($bl_categorie_url_file))
|
126 |
$nb_urls=exec ("wc -w $bl_categorie_url_file|cut -d' ' -f1");
|
39 |
$nb_urls=exec ("wc -w $bl_categorie_url_file|cut -d' ' -f1");
|
127 |
else
|
40 |
else
|
128 |
$nb_urls=$l_error_openfile." ".$bl_categorie_url_file;
|
41 |
$nb_urls=$l_error_openfile." ".$bl_categorie_url_file;
|
- |
|
42 |
if(file_exists($bl_categorie_ip_file))
|
- |
|
43 |
$nb_ip = exec("wc -w $bl_categorie_ip_file | cut -d' ' -f1");
|
- |
|
44 |
else
|
- |
|
45 |
$nb_ip = $l_error_openfile." ".$bl_categorie_ip_file;
|
- |
|
46 |
$global_usage = file($bl_dir."global_usage");
|
- |
|
47 |
$langue = strtoupper($Language);
|
- |
|
48 |
for($i=0; $i<count($global_usage); $i++)
|
- |
|
49 |
{
|
- |
|
50 |
if(preg_match("#^NAME:.$categorie$#", $global_usage[$i]) == 1)
|
- |
|
51 |
{
|
- |
|
52 |
$i++;
|
- |
|
53 |
while(preg_match("#^DESC.$langue:#", $global_usage[$i]) == 0)
|
- |
|
54 |
$i++;
|
- |
|
55 |
$l_description_cat = preg_replace("#^DESC.$langue:.#", "", $global_usage[$i]);
|
- |
|
56 |
break;
|
- |
|
57 |
}
|
- |
|
58 |
}
|
129 |
echo "<TITLE>$l_title</TITLE>";
|
59 |
echo "<TITLE>$l_title</TITLE>";
|
130 |
?>
|
60 |
?>
|
131 |
<link rel="stylesheet" href="/css/style.css" type="text/css">
|
61 |
<link rel="stylesheet" href="/css/style.css" type="text/css">
|
132 |
</HEAD>
|
62 |
</HEAD>
|
133 |
<body>
|
63 |
<body>
|
Line 137... |
Line 67... |
137 |
</TABLE>
|
67 |
</TABLE>
|
138 |
<TABLE width="100%" border=1 cellspacing=0 cellpadding=1>
|
68 |
<TABLE width="100%" border=1 cellspacing=0 cellpadding=1>
|
139 |
<tr><td valign="middle" align="left">
|
69 |
<tr><td valign="middle" align="left">
|
140 |
<?php
|
70 |
<?php
|
141 |
$compat_categorie=strtr($categorie,"-","_");
|
71 |
$compat_categorie=strtr($categorie,"-","_");
|
142 |
if (!empty(${'l_explain_'.$compat_categorie}))
|
72 |
echo "<br><center><b>$l_description_cat</b></center><br>";
|
143 |
echo "<center><b>${'l_explain_'.$compat_categorie}</b></center>";
|
73 |
echo "$l_nb_domains <b><a href='./bl_categories_help2.php?cat=$categorie&filtre=$bl_categorie_domain_file'>$nb_domains</a></b><br>";
|
144 |
else echo "$l_unknown_cat";
|
- |
|
145 |
echo "<br>$l_nb_domains <b>$nb_domains</b><br>";
|
74 |
echo "$l_nb_urls <b><a href='./bl_categories_help2.php?cat=$categorie&filtre=$bl_categorie_url_file'>$nb_urls</a></b><br>";
|
146 |
echo "$l_nb_urls <b>$nb_urls</b><br>";
|
75 |
echo "$l_nb_ip <b><a href='./bl_categories_help2.php?cat=$categorie&filtre=$bl_categorie_ip_file'>$nb_ip</a></b><br>";
|
147 |
?>
|
76 |
?>
|
148 |
</td></tr>
|
77 |
</td></tr>
|
149 |
</TABLE>
|
78 |
</TABLE>
|
150 |
<br>
|
79 |
<br>
|
151 |
<center><a href="javascript:window.close();"><b><?php echo "$l_close"; ?></b></a></center>
|
80 |
<center><a href="javascript:window.close();"><b><?php echo "$l_close"; ?></b></a></center>
|