Line 25... |
Line 25... |
25 |
$l_error_open_file="Erreur d'ouverture du fichier";
|
25 |
$l_error_open_file="Erreur d'ouverture du fichier";
|
26 |
$l_dnsfilter_on="Le filtrage de noms de domaine et d'URL est actuellement activé";
|
26 |
$l_dnsfilter_on="Le filtrage de noms de domaine et d'URL est actuellement activé";
|
27 |
$l_dnsfilter_off="Le filtrage de noms de domaine et d'URL est actuellement désactivé";
|
27 |
$l_dnsfilter_off="Le filtrage de noms de domaine et d'URL est actuellement désactivé";
|
28 |
$l_switch_filtering_on="Activer le filtrage";
|
28 |
$l_switch_filtering_on="Activer le filtrage";
|
29 |
$l_switch_filtering_off="Désactiver le filtrage";
|
29 |
$l_switch_filtering_off="Désactiver le filtrage";
|
30 |
$l_main_bl="Liste noire principale";
|
30 |
$l_main_bl="Liste noire";
|
31 |
$l_bl_version="Version actuelle :";
|
31 |
$l_bl_version="Version actuelle :";
|
32 |
$l_bl_categories="Choix des catégories à filtrer";
|
32 |
$l_bl_categories="Choix des catégories à filtrer";
|
33 |
$l_download="Télécharger la dernière version";
|
33 |
$l_download_bl="Télécharger la dernière version";
|
34 |
$l_warning="<B>Attention</B> : ce téléchargement peut durer plusieurs minutes.";
|
34 |
$l_fingerprint="L'empreinte numérique du fichier téléchargé est : ";
|
- |
|
35 |
$l_fingerprint2="Vérifiez-là en suivant ce lien (ligne 'blacklists.tar.gz') : ";
|
35 |
$l_secondary_bl="Liste noire et liste blanche secondaires";
|
36 |
$l_activate_bl="Activer cette version";
|
- |
|
37 |
$l_warning="Temps estimé : une minute.";
|
- |
|
38 |
$l_specific_filtering="Filtrage special";
|
36 |
$l_forbidden_dns="Noms de domaine filtrés";
|
39 |
$l_forbidden_dns="Noms de domaine filtrés";
|
37 |
$l_forbidden_dns_explain="Entrez un nom de domaine par ligne (exemple : .domaine.org)";
|
40 |
$l_forbidden_dns_explain="Entrez un nom de domaine par ligne (exemple : .domaine.org)";
|
38 |
$l_one_dns="Entrez un nom de domaine par ligne (exemple : .domaine.org)";
|
41 |
$l_one_dns="Entrez un nom de domaine par ligne (exemple : .domaine.org)";
|
39 |
$l_maj_rehabilitated="Réhabilitation de noms de domaine ou d'URLs";
|
42 |
$l_maj_rehabilitated="Noms de domaine ou URLs réhabilités";
|
40 |
$l_rehabilitated_dns="Noms de domaine réhabilités";
|
43 |
$l_rehabilitated_dns="Noms de domaine réhabilités";
|
41 |
$l_rehabilitated_dns_explain="Entrez ici des noms de domaine bloqués par la liste noire principale <BR> que vous désirez réhabiliter.";
|
44 |
$l_rehabilitated_dns_explain="Entrez ici des noms de domaine bloqués par la liste noire <BR> que vous souhaitez réhabiliter.";
|
- |
|
45 |
$l_add_to_bl="Noms de domaine ou URLs ajoutés à la liste noire";
|
42 |
$l_forbidden_url="URL filtrés";
|
46 |
$l_forbidden_url="URL filtrés";
|
43 |
$l_forbidden_url_explain="Entrez une URL par ligne (exemple : www.domaine.org/perso/index.htm)";
|
47 |
$l_forbidden_url_explain="Entrez une URL par ligne (exemple : www.domaine.org/perso/index.htm)";
|
44 |
$l_rehabilitated_url="URL réhabilités";
|
48 |
$l_rehabilitated_url="URL réhabilités";
|
45 |
$l_rehabilitated_url_explain="Entrez ici des URL bloquées par la liste noire principale <BR> que vous désirez réhabiliter.";
|
49 |
$l_rehabilitated_url_explain="Entrez ici des URL bloquées par la liste noire <BR> que vous souhaitez réhabiliter.";
|
46 |
$l_one_url="Entrez une URL par ligne (exemple : www.domaine.org/perso/index.htm)";
|
50 |
$l_one_url="Entrez une URL par ligne (exemple : www.domaine.org/perso/index.htm)";
|
47 |
$l_record="Enregistrer les modifications";
|
51 |
$l_record="Enregistrer les modifications";
|
48 |
$l_wait="Une fois validées, 30 secondes sont nécessaires pour traiter vos modifications";
|
52 |
$l_wait="Une fois validées, 30 secondes sont nécessaires pour traiter vos modifications";
|
- |
|
53 |
$l_ip_filtering="Filtrer les URLs contenant une adresse IP au lien d'un nom de domaine (ex: http://25.56.58.59/index.htm)";
|
- |
|
54 |
$l_safe_searching="Activer le contrôle scolaire/parentale pour les moteurs de recherche suivants : google, yahoo, bing, alltheweb, lycos, metacrawler et Youtube.";
|
- |
|
55 |
$l_safe_youtube="Pour Youtube, créez un ID et entrez le ici : ";
|
49 |
}
|
56 |
}
|
50 |
else {
|
57 |
else {
|
51 |
$l_title1 = "Domain names and URL filtering";
|
58 |
$l_title1 = "Domain names and URL filtering";
|
52 |
$l_error_open_file="Error opening the file";
|
59 |
$l_error_open_file="Error opening the file";
|
53 |
$l_dnsfilter_on="Actually, the Domain name and URL filter is on";
|
60 |
$l_dnsfilter_on="Actually, the Domain name and URL filter is on";
|
54 |
$l_dnsfilter_off="Actually, the Domain name and URL filter is off";
|
61 |
$l_dnsfilter_off="Actually, the Domain name and URL filter is off";
|
55 |
$l_switch_filtering_on="Switch the Filter on";
|
62 |
$l_switch_filtering_on="Switch the Filter on";
|
56 |
$l_switch_filtering_off="Switch the Filter off";
|
63 |
$l_switch_filtering_off="Switch the Filter off";
|
57 |
$l_main_bl="Main blacklist";
|
64 |
$l_main_bl="Blacklist";
|
58 |
$l_bl_version="Current version : ";
|
65 |
$l_bl_version="Current version : ";
|
59 |
$l_bl_categories="Choice of filtered categories";
|
66 |
$l_bl_categories="Choice of filtered categories";
|
60 |
$l_download="Download the last version";
|
67 |
$l_download_bl="Download the last version";
|
61 |
$l_warning="<B>Be carefull</B> : this download is estimate to fiew minutes.";
|
68 |
$l_fingerprint="The digital fingerprint of the downloaded blacklist is : ";
|
- |
|
69 |
$l_fingerprint2="Verify it with this link (line 'blacklists.tar.gz') : ";
|
62 |
$l_secondary_bl="Secondary blacklist and whitelist";
|
70 |
$l_activate_bl="Activate this version";
|
- |
|
71 |
$l_warning="Estimated time : one minute.";
|
- |
|
72 |
$l_specific_filtering="Specific filtering";
|
63 |
$l_forbidden_dns="Filtered domain names";
|
73 |
$l_forbidden_dns="Filtered domain names";
|
64 |
$l_forbidden_dns_explain="Enter one domain name per row (exemple : .domain.org)";
|
74 |
$l_forbidden_dns_explain="Enter one domain name per row (exemple : .domain.org)";
|
65 |
$l_one_dns="Enter one domain name per row (example : .domain.org)";
|
75 |
$l_one_dns="Enter one domain name per row (example : .domain.org)";
|
66 |
$l_maj_rehabilitated="Domain names or URLs rehabilitation";
|
76 |
$l_maj_rehabilitated="Domain names or URLs rehabilitated";
|
67 |
$l_rehabilitated_dns="Rehabilitated domain names";
|
77 |
$l_rehabilitated_dns="Rehabilitated domain names";
|
68 |
$l_rehabilitated_dns_explain="Enter here domain names that are blocked by the main blacklist <BR> and which you want to rehabilitate.";
|
78 |
$l_rehabilitated_dns_explain="Enter here domain names that are blocked by the blacklist <BR> and you want to rehabilitate.";
|
- |
|
79 |
$l_add_to_bl="Domain names or URLs to add to blacklist";
|
69 |
$l_forbidden_url="Filtered URL";
|
80 |
$l_forbidden_url="Filtered URL";
|
70 |
$l_forbidden_url_explain="Enter one URL per row (example : www.domaine.org/perso/index.htm)";
|
81 |
$l_forbidden_url_explain="Enter one URL per row (example : www.domaine.org/perso/index.htm)";
|
71 |
$l_rehabilitated_url="Rehabilitated URL";
|
82 |
$l_rehabilitated_url="Rehabilitated URL";
|
72 |
$l_rehabilitated_url_explain="Enter here URL that are blocked by the main blacklist <BR> and which you want to rehabilitate.";
|
83 |
$l_rehabilitated_url_explain="Enter here URL that are blocked by the blacklist <BR> and you want to rehabilitate.";
|
73 |
$l_one_url="Enter one URL per row (example : www.domaine.org/perso/index.htm)";
|
84 |
$l_one_url="Enter one URL per row (example : www.domaine.org/perso/index.htm)";
|
74 |
$l_record="Save changes";
|
85 |
$l_record="Save changes";
|
75 |
$l_wait="Once validated, 30 seconds is necessary to compute your modifications";
|
86 |
$l_wait="Once validated, 30 seconds is necessary to compute your modifications";
|
- |
|
87 |
$l_ip_filtering="Filtering URLs that contain an IP address instead of a domain name (ie: http://25.56.58.59/index.htm)";
|
- |
|
88 |
$l_safe_searching="Enabling school/parental control for the following search engines : google, yahoo, bing, alltheweb, lycos, metacrawler and Youtube.";
|
- |
|
89 |
$l_safe_youtube="For Youtube, create an ID and write it here : ";
|
76 |
}
|
90 |
}
|
77 |
$bl_categories="/usr/local/etc/alcasar-bl-categories";
|
91 |
$bl_categories="/usr/local/etc/alcasar-bl-categories";
|
78 |
$bl_categories_enabled="/usr/local/etc/alcasar-bl-categories-enabled";
|
92 |
$bl_categories_enabled="/usr/local/etc/alcasar-bl-categories-enabled";
|
79 |
$dir_blacklist="/etc/dansguardian/lists/blacklist/";
|
93 |
$dir_blacklist="/etc/dansguardian/lists/blacklist/";
|
80 |
$conf_file="/usr/local/etc/alcasar.conf";
|
94 |
$conf_file="/usr/local/etc/alcasar.conf";
|
Line 85... |
Line 99... |
85 |
exec ("sudo /usr/local/sbin/alcasar-bl.sh --on");
|
99 |
exec ("sudo /usr/local/sbin/alcasar-bl.sh --on");
|
86 |
break;
|
100 |
break;
|
87 |
case 'BL_Off' :
|
101 |
case 'BL_Off' :
|
88 |
exec ("sudo /usr/local/sbin/alcasar-bl.sh --off");
|
102 |
exec ("sudo /usr/local/sbin/alcasar-bl.sh --off");
|
89 |
break;
|
103 |
break;
|
90 |
case 'MAJ_bl' :
|
104 |
case 'Download_bl' :
|
91 |
exec ("sudo /usr/local/sbin/alcasar-bl.sh --download");
|
105 |
exec ("sudo /usr/local/sbin/alcasar-bl.sh --download");
|
- |
|
106 |
break;
|
- |
|
107 |
case 'Active_bl' :
|
- |
|
108 |
exec ("sudo /usr/local/sbin/alcasar-bl.sh --adapt");
|
92 |
exec ("sudo /usr/local/sbin/alcasar-bl.sh --reload");
|
109 |
exec ("sudo /usr/local/sbin/alcasar-bl.sh --reload");
|
93 |
break;
|
110 |
break;
|
94 |
case 'MAJ_cat' :
|
111 |
case 'MAJ_cat' :
|
95 |
$tab=file($bl_categories_enabled);
|
112 |
$tab=file($bl_categories_enabled);
|
96 |
if ($tab)
|
113 |
if ($tab)
|
Line 105... |
Line 122... |
105 |
}
|
122 |
}
|
106 |
}
|
123 |
}
|
107 |
fclose($pointeur);
|
124 |
fclose($pointeur);
|
108 |
}
|
125 |
}
|
109 |
else {echo "$l_error_open_file $bl_categories_enabled";}
|
126 |
else {echo "$l_error_open_file $bl_categories_enabled";}
|
110 |
exec ("sudo /usr/local/sbin/alcasar-bl.sh --reload");
|
- |
|
111 |
break;
|
- |
|
112 |
case 'MAJ_OSSI' :
|
- |
|
113 |
$fichier=fopen("/etc/dansguardian/lists/blacklists/ossi/domains","w+");
|
127 |
$fichier=fopen("/etc/dansguardian/lists/blacklists/ossi/domains","w+");
|
114 |
fputs($fichier, form_filter($_POST['OSSI_bl_domains']));
|
128 |
fputs($fichier, form_filter($_POST['OSSI_bl_domains']));
|
115 |
fclose($fichier);
|
129 |
fclose($fichier);
|
116 |
unset($_POST['OSSI_bl_domains']);
|
130 |
unset($_POST['OSSI_bl_domains']);
|
117 |
$fichier=fopen("/etc/dansguardian/lists/exceptionsitelist","w+");
|
131 |
$fichier=fopen("/etc/dansguardian/lists/exceptionsitelist","w+");
|
Line 126... |
Line 140... |
126 |
fputs($fichier, form_filter($_POST['OSSI_wl_urls']));
|
140 |
fputs($fichier, form_filter($_POST['OSSI_wl_urls']));
|
127 |
fclose($fichier);
|
141 |
fclose($fichier);
|
128 |
unset($_POST['OSSI_wl_urls']);
|
142 |
unset($_POST['OSSI_wl_urls']);
|
129 |
exec ("sudo /usr/local/sbin/alcasar-bl.sh --reload");
|
143 |
exec ("sudo /usr/local/sbin/alcasar-bl.sh --reload");
|
130 |
break;
|
144 |
break;
|
- |
|
145 |
case 'Specific_filtering' :
|
- |
|
146 |
break;
|
131 |
}
|
147 |
}
|
132 |
?>
|
148 |
?>
|
133 |
</TABLE>
|
149 |
</TABLE>
|
134 |
<TABLE width="100%" border=0 cellspacing=0 cellpadding=0>
|
150 |
<TABLE width="100%" border=0 cellspacing=0 cellpadding=0>
|
135 |
<tr><th><?php echo "$l_title1"; ?></th></tr>
|
151 |
<tr><th><?php echo "$l_title1"; ?></th></tr>
|