Subversion Repositories ALCASAR

Rev

Rev 307 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log

Rev 307 Rev 311
Line 12... Line 12...
12
if(isset($_SERVER['HTTP_ACCEPT_LANGUAGE'])){
12
if(isset($_SERVER['HTTP_ACCEPT_LANGUAGE'])){
13
  $Langue = explode(",",$_SERVER['HTTP_ACCEPT_LANGUAGE']);
13
  $Langue = explode(",",$_SERVER['HTTP_ACCEPT_LANGUAGE']);
14
  $Language = strtolower(substr(chop($Langue[0]),0,2)); }
14
  $Language = strtolower(substr(chop($Langue[0]),0,2)); }
15
if($Language == 'fr'){
15
if($Language == 'fr'){
16
  $l_title1 = "Filtrage de noms de domaine et d'URL";
16
  $l_title1 = "Filtrage de noms de domaine et d'URL";
-
 
17
  $l_error_open_file="Erreur d'ouverture du fichier";
17
  $l_dnsfilter_on="Le filtrage de noms de domaine et d'URL est actuellement activé";
18
  $l_dnsfilter_on="Le filtrage de noms de domaine et d'URL est actuellement activé";
18
  $l_dnsfilter_off="Le filtrage de noms de domaine et d'URL est actuellement désactivé";
19
  $l_dnsfilter_off="Le filtrage de noms de domaine et d'URL est actuellement désactivé";
19
  $l_switch_filtering_on="Activer le filtrage";
20
  $l_switch_filtering_on="Activer le filtrage";
20
  $l_switch_filtering_off="Désactiver le filtrage";
21
  $l_switch_filtering_off="Désactiver le filtrage";
21
  $l_main_bl="Liste noire principale (version actuelle : ";
22
  $l_main_bl="Liste noire principale";
-
 
23
  $l_bl_version="Version actuelle :";
-
 
24
  $l_bl_categories="Choix des catégories à filtrer";
22
  $l_download="Télécharger la dernière version";
25
  $l_download="Télécharger la dernière version";
23
  $l_warning="<B>Attention</B> : ce téléchargement peut durer plusieurs minutes.";
26
  $l_warning="<B>Attention</B> : ce téléchargement peut durer plusieurs minutes.";
24
  $l_secondary_bl="Liste noire et liste blanche secondaires";
27
  $l_secondary_bl="Liste noire et liste blanche secondaires";
-
 
28
  $l_forbidden_dns="Noms de domaine filtrés";
-
 
29
  $l_forbidden_dns_explain="Entrez un nom de domaine par ligne (exemple : domaine.org)";
-
 
30
  $l_one_dns="Entrez un nom de domaine par ligne (exemple : domaine.org)";
-
 
31
  $l_rehabilitated_dns="Noms de domaine réhabilités";
-
 
32
  $l_rehabilitated_dns_explain="Entrez ici des noms de domaine bloqués par la liste noire principale <BR> que vous désirez réhabiliter.";
-
 
33
  $l_forbidden_url="URL filtrés";
-
 
34
  $l_forbidden_url_explain="Entrez une URL par ligne (exemple : domaine.org/perso.index.htm)";
-
 
35
  $l_rehabilitated_url="URL réhabilités";
-
 
36
  $l_rehabilitated_url_explain="Entrez ici des URL bloquées par la liste noire principale <BR> que vous désirez réhabiliter.";
-
 
37
  $l_one_url="Entrez une URL par ligne (exemple : domaine.org/perso.index.htm)";
-
 
38
  $l_record="Enregistrer les modifications";
25
}
39
}
26
else {
40
else {
27
  $l_title1 = "Domain names and URL filtering";
41
  $l_title1 = "Domain names and URL filtering";
-
 
42
  $l_error_open_file="Error opening the file";
28
  $l_dnsfilter_on="Actually, the Domain name and URL filter is on";
43
  $l_dnsfilter_on="Actually, the Domain name and URL filter is on";
29
  $l_dnsfilter_off="Actually, the Domain name and URL filter is off";
44
  $l_dnsfilter_off="Actually, the Domain name and URL filter is off";
30
  $l_switch_filtering_on="Switch the Filter on";
45
  $l_switch_filtering_on="Switch the Filter on";
31
  $l_switch_filtering_off="Switch the Filter off";
46
  $l_switch_filtering_off="Switch the Filter off";
32
  $l_main_bl="Main blacklist (current version : ";
47
  $l_main_bl="Main blacklist";
-
 
48
  $l_bl_version="Current version : ";
-
 
49
  $l_bl_categories="Choice of filtered categories";
33
  $l_download="Download the last version";
50
  $l_download="Download the last version";
34
  $l_warning="<B>Be carefull</B> : this download is estimate to fiew minutes.";
51
  $l_warning="<B>Be carefull</B> : this download is estimate to fiew minutes.";
35
  $l_secondary_bl="Secondary blacklist and whitelist";
52
  $l_secondary_bl="Secondary blacklist and whitelist";
-
 
53
  $l_forbidden_dns="Filtered domain names";
-
 
54
  $l_forbidden_dns_explain="Enter one domain name per row (exemple : domain.org)";
-
 
55
  $l_one_dns="Enter one domain name per row (exemple : domain.org)";
-
 
56
  $l_rehabilitated_dns="Rehabilitated domain names";
-
 
57
  $l_rehabilitated_dns_explain="Enter here domain names that are blocked by the main blacklist <BR> and which you want to rehabilitate.";
-
 
58
  $l_forbidden_url="Filtered URL";
-
 
59
  $l_forbidden_url_explain="Enter one URL per row (exemple : www.domaine.org/perso/index.htm)";
-
 
60
  $l_rehabilitated_url="Rehabilitated URL";
-
 
61
  $l_rehabilitated_url_explain="Enter here URL that are blocked by the main blacklist <BR> and which you want to rehabilitate.";
-
 
62
  $l_one_url="Enter one URL per row (exemple : www.domaine.org/perso/index.htm)";
-
 
63
  $l_record="Save changes";
36
}
64
}
37
if (isset($_POST['choix'])){ $choix=$_POST['choix']; } else { $choix=""; }
65
if (isset($_POST['choix'])){ $choix=$_POST['choix']; } else { $choix=""; }
38
switch ($choix)
66
switch ($choix)
39
{
67
{
40
case 'BL_On' :
68
case 'BL_On' :
Line 43... Line 71...
43
case 'BL_Off' :
71
case 'BL_Off' :
44
	exec ("sudo /usr/local/sbin/alcasar-bl.sh -off");
72
	exec ("sudo /usr/local/sbin/alcasar-bl.sh -off");
45
	break;
73
	break;
46
case 'MAJ_bl' :
74
case 'MAJ_bl' :
47
	exec ("sudo /usr/local/sbin/alcasar-bl.sh -download");
75
	exec ("sudo /usr/local/sbin/alcasar-bl.sh -download");
-
 
76
	exec ("sudo /usr/local/sbin/alcasar-bl.sh -reload");
48
	break;
77
	break;
49
case 'MAJ_OSSI' :
78
case 'MAJ_OSSI' :
50
	$fichier=fopen("/etc/dansguardian/lists/blacklists/ossi/domains","w+");
79
	$fichier=fopen("/etc/dansguardian/lists/blacklists/ossi/domains","w+");
51
	fputs($fichier, $_POST['OSSI_bl_domains']);
80
	fputs($fichier, $_POST['OSSI_bl_domains']);
52
	fclose($fichier);
81
	fclose($fichier);