Subversion Repositories ALCASAR

Rev

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

Rev 885 Rev 934
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
<TITLE>ALCASAR DNS filtering</TITLE>
5
<TITLE>ALCASAR DNS filtering</TITLE>
6
<link rel="stylesheet" href="/css/style.css" type="text/css">
6
<link rel="stylesheet" href="/css/style.css" type="text/css">
7
</HEAD>
7
</HEAD>
8
<body>
8
<body>
9
<?
9
<?
10
function form_filter ($form_content)
10
function form_filter ($form_content)
11
{
11
{
12
// réencodage iso + format unix + rc fin de ligne (ouf...)
12
// réencodage iso + format unix + rc fin de ligne (ouf...)
13
	$list = str_replace("\r\n", "\n", utf8_decode($form_content));
13
	$list = str_replace("\r\n", "\n", utf8_decode($form_content));
14
	if (strlen($list) != 0){
14
	if (strlen($list) != 0){
15
		if ($list[strlen($list)-1] != "\n") { $list[strlen($list)]="\n";} ;} ;
15
		if ($list[strlen($list)-1] != "\n") { $list[strlen($list)]="\n";} ;} ;
16
	return $list;
16
	return $list;
17
}
17
}
18
# Choice of language
18
# Choice of language
19
$Language = 'en';
19
$Language = 'en';
20
if(isset($_SERVER['HTTP_ACCEPT_LANGUAGE'])){
20
if(isset($_SERVER['HTTP_ACCEPT_LANGUAGE'])){
21
  $Langue = explode(",",$_SERVER['HTTP_ACCEPT_LANGUAGE']);
21
  $Langue = explode(",",$_SERVER['HTTP_ACCEPT_LANGUAGE']);
22
  $Language = strtolower(substr(chop($Langue[0]),0,2)); }
22
  $Language = strtolower(substr(chop($Langue[0]),0,2)); }
23
if($Language == 'fr'){
23
if($Language == 'fr'){
24
  $l_title1 = "Filtrage de noms de domaine et d'URL";
24
  $l_title1 = "Filtrage de noms de domaine et d'URL";
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";
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_bl="Télécharger la dernière version";
33
  $l_download_bl="Télécharger la dernière version";
34
  $l_fingerprint="L'empreinte numérique du fichier téléchargé est : ";
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_fingerprint2="Vérifiez-là en suivant ce lien (ligne 'blacklists.tar.gz') : ";
36
  $l_activate_bl="Activer la nouvelle version";
36
  $l_activate_bl="Activer la nouvelle version";
37
  $l_reject_bl="Rejeter";
37
  $l_reject_bl="Rejeter";
38
  $l_warning="Temps estimé : une minute.";
38
  $l_warning="Temps estimé : une minute.";
39
  $l_specific_filtering="Filtrage special";
39
  $l_specific_filtering="Filtrage special";
40
  $l_forbidden_dns="Noms de domaine filtrés";
40
  $l_forbidden_dns="Noms de domaine filtrés";
41
  $l_forbidden_dns_explain="Entrez un nom de domaine par ligne (exemple : .domaine.org)";
41
  $l_forbidden_dns_explain="Entrez un nom de domaine par ligne (exemple : .domaine.org)";
42
  $l_one_dns="Entrez un nom de domaine par ligne (exemple : .domaine.org)";
42
  $l_one_dns="Entrez un nom de domaine par ligne (exemple : .domaine.org)";
43
  $l_maj_rehabilitated="Noms de domaine ou URLs réhabilités";
43
  $l_maj_rehabilitated="Noms de domaine ou URLs réhabilités";
44
  $l_rehabilitated_dns="Noms de domaine réhabilités";
44
  $l_rehabilitated_dns="Noms de domaine réhabilités";
45
  $l_rehabilitated_dns_explain="Entrez ici des noms de domaine bloqués par la liste noire <BR> que vous souhaitez réhabiliter.";
45
  $l_rehabilitated_dns_explain="Entrez ici des noms de domaine bloqués par la liste noire <BR> que vous souhaitez réhabiliter.";
46
  $l_add_to_bl="Noms de domaine ou URLs ajoutés à la liste noire";
46
  $l_add_to_bl="Noms de domaine ou URLs ajoutés à la liste noire";
47
  $l_forbidden_url="URL filtrés";
47
  $l_forbidden_url="URL filtrés";
48
  $l_forbidden_url_explain="Entrez une URL par ligne (exemple : www.domaine.org/perso/index.htm)";
48
  $l_forbidden_url_explain="Entrez une URL par ligne (exemple : www.domaine.org/perso/index.htm)";
49
  $l_rehabilitated_url="URL réhabilités";
49
  $l_rehabilitated_url="URL réhabilités";
50
  $l_rehabilitated_url_explain="Entrez ici des URL bloquées par la liste noire <BR> que vous souhaitez réhabiliter.";
50
  $l_rehabilitated_url_explain="Entrez ici des URL bloquées par la liste noire <BR> que vous souhaitez réhabiliter.";
51
  $l_one_url="Entrez une URL par ligne (exemple : www.domaine.org/perso/index.htm)";
51
  $l_one_url="Entrez une URL par ligne (exemple : www.domaine.org/perso/index.htm)";
52
  $l_record="Enregistrer les modifications";
52
  $l_record="Enregistrer les modifications";
53
  $l_wait="Une fois validées, 30 secondes sont nécessaires pour traiter vos modifications";
53
  $l_wait="Une fois validées, 30 secondes sont nécessaires pour traiter vos modifications";
54
  $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_ip_filtering="Filtrer les URLs contenant une adresse IP au lieu d'un nom de domaine (ex: http://25.56.58.59/index.htm)";
55
  $l_safe_searching="Activer le contrôle scolaire/parentale des moteurs de recherche : google, yahoo, bing, metacrawler et Youtube.";
55
  $l_safe_searching="Activer le contrôle scolaire/parental des moteurs de recherche : google, yahoo, bing, metacrawler et Youtube.";
56
  $l_safe_youtube="Pour Youtube, entrez votre identifiant ici : "; 
56
  $l_safe_youtube="Pour Youtube, entrez votre identifiant ici : "; 
57
  $l_youtube_id="(<a href='http://www.youtube.com/education_signup' target='cat_help' onclick=window.open('http://www.youtube.com/education_signup','cat_help','width=800,height=600,toolbar=no,scrollbars=yes,resizable=yes') title='Youtube for school'>lien pour créer un identifiant Youtube (Id)</a>)";
57
  $l_youtube_id="(<a href='http://www.youtube.com/education_signup' target='cat_help' onclick=window.open('http://www.youtube.com/education_signup','cat_help','width=800,height=600,toolbar=no,scrollbars=yes,resizable=yes') title='Youtube for school'>lien pour créer un identifiant Youtube (Id)</a>)";
58
}
58
}
59
else {
59
else {
60
  $l_title1 = "Domain names and URL filtering";
60
  $l_title1 = "Domain names and URL filtering";
61
  $l_error_open_file="Error opening the file";
61
  $l_error_open_file="Error opening the file";
62
  $l_dnsfilter_on="Actually, the Domain name and URL filter is on";
62
  $l_dnsfilter_on="Actually, the Domain name and URL filter is on";
63
  $l_dnsfilter_off="Actually, the Domain name and URL filter is off";
63
  $l_dnsfilter_off="Actually, the Domain name and URL filter is off";
64
  $l_switch_filtering_on="Switch the Filter on";
64
  $l_switch_filtering_on="Switch the Filter on";
65
  $l_switch_filtering_off="Switch the Filter off";
65
  $l_switch_filtering_off="Switch the Filter off";
66
  $l_main_bl="Blacklist";
66
  $l_main_bl="Blacklist";
67
  $l_bl_version="Current version : ";
67
  $l_bl_version="Current version : ";
68
  $l_bl_categories="Choice of filtered categories";
68
  $l_bl_categories="Choice of filtered categories";
69
  $l_download_bl="Download the last version";
69
  $l_download_bl="Download the last version";
70
  $l_fingerprint="The digital fingerprint of the downloaded blacklist is : ";
70
  $l_fingerprint="The digital fingerprint of the downloaded blacklist is : ";
71
  $l_fingerprint2="Verify it with this link (line 'blacklists.tar.gz') : ";
71
  $l_fingerprint2="Verify it with this link (line 'blacklists.tar.gz') : ";
72
  $l_activate_bl="Activate the new version";
72
  $l_activate_bl="Activate the new version";
73
  $l_reject_bl="Reject";
73
  $l_reject_bl="Reject";
74
  $l_warning="Estimated time : one minute.";
74
  $l_warning="Estimated time : one minute.";
75
  $l_specific_filtering="Specific filtering";
75
  $l_specific_filtering="Specific filtering";
76
  $l_forbidden_dns="Filtered domain names";
76
  $l_forbidden_dns="Filtered domain names";
77
  $l_forbidden_dns_explain="Enter one domain name per row (exemple : .domain.org)";
77
  $l_forbidden_dns_explain="Enter one domain name per row (exemple : .domain.org)";
78
  $l_one_dns="Enter one domain name per row (example : .domain.org)";
78
  $l_one_dns="Enter one domain name per row (example : .domain.org)";
79
  $l_maj_rehabilitated="Domain names or URLs rehabilitated";
79
  $l_maj_rehabilitated="Domain names or URLs rehabilitated";
80
  $l_rehabilitated_dns="Rehabilitated domain names";
80
  $l_rehabilitated_dns="Rehabilitated domain names";
81
  $l_rehabilitated_dns_explain="Enter here domain names that are blocked by the blacklist <BR> and you want to rehabilitate.";
81
  $l_rehabilitated_dns_explain="Enter here domain names that are blocked by the blacklist <BR> and you want to rehabilitate.";
82
  $l_add_to_bl="Domain names or URLs to add to blacklist";
82
  $l_add_to_bl="Domain names or URLs to add to blacklist";
83
  $l_forbidden_url="Filtered URL";
83
  $l_forbidden_url="Filtered URL";
84
  $l_forbidden_url_explain="Enter one URL per row (example : www.domaine.org/perso/index.htm)";
84
  $l_forbidden_url_explain="Enter one URL per row (example : www.domaine.org/perso/index.htm)";
85
  $l_rehabilitated_url="Rehabilitated URL";
85
  $l_rehabilitated_url="Rehabilitated URL";
86
  $l_rehabilitated_url_explain="Enter here URL that are blocked by the blacklist <BR> and you want to rehabilitate.";
86
  $l_rehabilitated_url_explain="Enter here URL that are blocked by the blacklist <BR> and you want to rehabilitate.";
87
  $l_one_url="Enter one URL per row (example : www.domaine.org/perso/index.htm)";
87
  $l_one_url="Enter one URL per row (example : www.domaine.org/perso/index.htm)";
88
  $l_record="Save changes";
88
  $l_record="Save changes";
89
  $l_wait="Once validated, 30 seconds is necessary to compute your modifications";
89
  $l_wait="Once validated, 30 seconds is necessary to compute your modifications";
90
  $l_ip_filtering="Filtering URLs that contain an IP address instead of a domain name (ie: http://25.56.58.59/index.htm)";
90
  $l_ip_filtering="Filtering URLs that contain an IP address instead of a domain name (ie: http://25.56.58.59/index.htm)";
91
  $l_safe_searching="Enabling school/parental control for the search engines google, yahoo, bing, metacrawler and Youtube."; 
91
  $l_safe_searching="Enabling school/parental control for the search engines google, yahoo, bing, metacrawler and Youtube."; 
92
  $l_safe_youtube="For Youtube, enter your ID here : "; 
92
  $l_safe_youtube="For Youtube, enter your ID here : "; 
93
  $l_youtube_id="(<a href='http://www.youtube.com/education_signup' target='cat_help' onclick=window.open('http://www.youtube.com/education_signup','cat_help','width=800,height=600,toolbar=no,scrollbars=yes,resizable=yes') title='Youtube for school'>link to create a Youtube Id</a>)";
93
  $l_youtube_id="(<a href='http://www.youtube.com/education_signup' target='cat_help' onclick=window.open('http://www.youtube.com/education_signup','cat_help','width=800,height=600,toolbar=no,scrollbars=yes,resizable=yes') title='Youtube for school'>link to create a Youtube Id</a>)";
94
}
94
}
95
$bl_categories="/usr/local/etc/alcasar-bl-categories";
95
$bl_categories="/usr/local/etc/alcasar-bl-categories";
96
$bl_categories_enabled="/usr/local/etc/alcasar-bl-categories-enabled";
96
$bl_categories_enabled="/usr/local/etc/alcasar-bl-categories-enabled";
97
$dir_blacklist="/etc/dansguardian/lists/blacklist/";
97
$dir_blacklist="/etc/dansguardian/lists/blacklist/";
98
$conf_file="/usr/local/etc/alcasar.conf";
98
$conf_file="/usr/local/etc/alcasar.conf";
99
$urlregex_file="/etc/dansguardian/lists/urlregexplist";
99
$urlregex_file="/etc/dansguardian/lists/urlregexplist";
100
$bannedsite_file="/etc/dansguardian/lists/bannedsitelist";
100
$bannedsite_file="/etc/dansguardian/lists/bannedsitelist";
101
$dir_tmp="/tmp/blacklists";
101
$dir_tmp="/tmp/blacklists";
102
# default values
102
# default values
103
if (is_file ($conf_file))
103
if (is_file ($conf_file))
104
	{
104
	{
105
	$tab=file($conf_file);
105
	$tab=file($conf_file);
106
	if ($tab)
106
	if ($tab)
107
		{
107
		{
108
		foreach ($tab as $line)
108
		foreach ($tab as $line)
109
			{
109
			{
110
			$field=explode("=", $line);
110
			$field=explode("=", $line);
111
			if ($field[0] == "DNS_FILTERING")	{$DNS_FILTERING=trim($field[1]);}
111
			if ($field[0] == "DNS_FILTERING")	{$DNS_FILTERING=trim($field[1]);}
112
			if ($field[0] == "YOUTUBE_ID")		{$YOUTUBE_ID=trim($field[1]);}
112
			if ($field[0] == "YOUTUBE_ID")		{$YOUTUBE_ID=trim($field[1]);}
113
			}
113
			}
114
		}
114
		}
115
	}
115
	}
116
else { echo "$l_error_open_file $conf_file";}
116
else { echo "$l_error_open_file $conf_file";}
117
if (isset($_POST['choix'])){ $choix=$_POST['choix']; } else { $choix=""; }
117
if (isset($_POST['choix'])){ $choix=$_POST['choix']; } else { $choix=""; }
118
switch ($choix)
118
switch ($choix)
119
{
119
{
120
case 'BL_On' :
120
case 'BL_On' :
121
	exec ("sudo /usr/local/sbin/alcasar-bl.sh --on");
121
	exec ("sudo /usr/local/sbin/alcasar-bl.sh --on");
122
	break;
122
	break;
123
case 'BL_Off' :
123
case 'BL_Off' :
124
	exec ("sudo /usr/local/sbin/alcasar-bl.sh --off");
124
	exec ("sudo /usr/local/sbin/alcasar-bl.sh --off");
125
	break;
125
	break;
126
case 'Download_bl' :
126
case 'Download_bl' :
127
	exec ("sudo /usr/local/sbin/alcasar-bl.sh --download");
127
	exec ("sudo /usr/local/sbin/alcasar-bl.sh --download");
128
	break;
128
	break;
129
case 'Active_bl' :
129
case 'Active_bl' :
130
	exec ("sudo /usr/local/sbin/alcasar-bl.sh --adapt");
130
	exec ("sudo /usr/local/sbin/alcasar-bl.sh --adapt");
131
	exec ("sudo /usr/local/sbin/alcasar-bl.sh --reload");
131
	exec ("sudo /usr/local/sbin/alcasar-bl.sh --reload");
132
	break;
132
	break;
133
case 'Reject_bl' :
133
case 'Reject_bl' :
134
	unlink ("$dir_tmp/blacklists.tar.gz"); unlink ("$dir_tmp/md5sum");
134
	unlink ("$dir_tmp/blacklists.tar.gz"); unlink ("$dir_tmp/md5sum");
135
	break;
135
	break;
136
case 'MAJ_cat' :
136
case 'MAJ_cat' :
137
	$tab=file($bl_categories_enabled);	
137
	$tab=file($bl_categories_enabled);	
138
	if ($tab)
138
	if ($tab)
139
		{
139
		{
140
		$pointeur=fopen($bl_categories_enabled, "w+");
140
		$pointeur=fopen($bl_categories_enabled, "w+");
141
		foreach ($_POST as $key => $value)
141
		foreach ($_POST as $key => $value)
142
			{
142
			{
143
			if (strstr($key,'chk-'))
143
			if (strstr($key,'chk-'))
144
				{	
144
				{	
145
				$line=str_replace('chk-','',$key)."\n";
145
				$line=str_replace('chk-','',$key)."\n";
146
				fwrite($pointeur,$line);
146
				fwrite($pointeur,$line);
147
				}
147
				}
148
			}
148
			}
149
		fclose($pointeur);
149
		fclose($pointeur);
150
		}
150
		}
151
	else {echo "$l_error_open_file $bl_categories_enabled";}
151
	else {echo "$l_error_open_file $bl_categories_enabled";}
152
	$fichier=fopen("/etc/dansguardian/lists/blacklists/ossi/domains","w+");
152
	$fichier=fopen("/etc/dansguardian/lists/blacklists/ossi/domains","w+");
153
	fputs($fichier, form_filter($_POST['OSSI_bl_domains']));
153
	fputs($fichier, form_filter($_POST['OSSI_bl_domains']));
154
	fclose($fichier);
154
	fclose($fichier);
155
	unset($_POST['OSSI_bl_domains']);
155
	unset($_POST['OSSI_bl_domains']);
156
	$fichier=fopen("/etc/dansguardian/lists/exceptionsitelist","w+");
156
	$fichier=fopen("/etc/dansguardian/lists/exceptionsitelist","w+");
157
	fputs($fichier, form_filter($_POST['OSSI_wl_domains']));
157
	fputs($fichier, form_filter($_POST['OSSI_wl_domains']));
158
	fclose($fichier);
158
	fclose($fichier);
159
	unset($_POST['OSSI_wl_domains']);
159
	unset($_POST['OSSI_wl_domains']);
160
	$fichier=fopen("/etc/dansguardian/lists/blacklists/ossi/urls","w+");
160
	$fichier=fopen("/etc/dansguardian/lists/blacklists/ossi/urls","w+");
161
	fputs($fichier, form_filter($_POST['OSSI_bl_urls']));
161
	fputs($fichier, form_filter($_POST['OSSI_bl_urls']));
162
	fclose($fichier);
162
	fclose($fichier);
163
	unset($_POST['OSSI_bl_urls']);
163
	unset($_POST['OSSI_bl_urls']);
164
	$fichier=fopen("/etc/dansguardian/lists/exceptionurllist","w+");
164
	$fichier=fopen("/etc/dansguardian/lists/exceptionurllist","w+");
165
	fputs($fichier, form_filter($_POST['OSSI_wl_urls']));
165
	fputs($fichier, form_filter($_POST['OSSI_wl_urls']));
166
	fclose($fichier);
166
	fclose($fichier);
167
	unset($_POST['OSSI_wl_urls']);
167
	unset($_POST['OSSI_wl_urls']);
168
	exec ("sudo /usr/local/sbin/alcasar-bl.sh --reload");
168
	exec ("sudo /usr/local/sbin/alcasar-bl.sh --reload");
169
	break;
169
	break;
170
case 'Specific_filtering' :
170
case 'Specific_filtering' :
171
	$pureip="-pureip_off"; $safesearch="-safesearch_off"; ;
171
	$pureip="-pureip_off"; $safesearch="-safesearch_off"; ;
172
	foreach ($_POST as $key => $value)
172
	foreach ($_POST as $key => $value)
173
	{
173
	{
174
		if (strstr($key,'chk-ip')) $pureip="-pureip_on";
174
		if (strstr($key,'chk-ip')) $pureip="-pureip_on";
175
		if (strstr($key,'chk-safesearch')) $safesearch="-safesearch_on";
175
		if (strstr($key,'chk-safesearch')) $safesearch="-safesearch_on";
176
	}
176
	}
177
	if ($_POST['Youtube_ID'] == '') { $New_ID="ABCD1234567890abcdef";} // default ID (no action) 
177
	if ($_POST['Youtube_ID'] == '') { $New_ID="ABCD1234567890abcdef";} // default ID (no action) 
178
	else {$New_ID=$_POST['Youtube_ID'];}
178
	else {$New_ID=$_POST['Youtube_ID'];}
179
	file_put_contents($conf_file, str_replace("YOUTUBE_ID=$YOUTUBE_ID", "YOUTUBE_ID=$New_ID", file_get_contents($conf_file)));
179
	file_put_contents($conf_file, str_replace("YOUTUBE_ID=$YOUTUBE_ID", "YOUTUBE_ID=$New_ID", file_get_contents($conf_file)));
180
	$YOUTUBE_ID=$New_ID;
180
	$YOUTUBE_ID=$New_ID;
181
	exec ("sudo /usr/local/sbin/alcasar-url_filter.sh $safesearch $pureip");
181
	exec ("sudo /usr/local/sbin/alcasar-url_filter.sh $safesearch $pureip");
182
       	break;
182
       	break;
183
}
183
}
184
?>
184
?>
185
</TABLE>
185
</TABLE>
186
<TABLE width="100%" border=0 cellspacing=0 cellpadding=0>
186
<TABLE width="100%" border=0 cellspacing=0 cellpadding=0>
187
<tr><th><?php echo "$l_title1"; ?></th></tr>
187
<tr><th><?php echo "$l_title1"; ?></th></tr>
188
	<tr bgcolor="#FFCC66"><td><img src="/images/pix.gif" width=1 height=2></td></tr>
188
	<tr bgcolor="#FFCC66"><td><img src="/images/pix.gif" width=1 height=2></td></tr>
189
</TABLE>
189
</TABLE>
190
<TABLE width="100%" border=1 cellspacing=0 cellpadding=0>
190
<TABLE width="100%" border=1 cellspacing=0 cellpadding=0>
191
	<tr><td valign="middle" align="left">
191
	<tr><td valign="middle" align="left">
192
<?php
192
<?php
193
if ($DNS_FILTERING == "on")
193
if ($DNS_FILTERING == "on")
194
	{
194
	{
195
	echo "<CENTER><H3>$l_dnsfilter_on</H3></CENTER>";
195
	echo "<CENTER><H3>$l_dnsfilter_on</H3></CENTER>";
196
 	echo "<FORM action='$_SERVER[PHP_SELF]' method=POST>";
196
 	echo "<FORM action='$_SERVER[PHP_SELF]' method=POST>";
197
	echo "<input type=hidden name='choix' value=\"BL_Off\">";
197
	echo "<input type=hidden name='choix' value=\"BL_Off\">";
198
	echo "<input type=submit value=\"$l_switch_filtering_off\">";
198
	echo "<input type=submit value=\"$l_switch_filtering_off\">";
199
}
199
}
200
else
200
else
201
	{
201
	{
202
	echo "<CENTER><H3>$l_dnsfilter_off</H3></CENTER>";
202
	echo "<CENTER><H3>$l_dnsfilter_off</H3></CENTER>";
203
 	echo "<FORM action='$_SERVER[PHP_SELF]' method=POST>";
203
 	echo "<FORM action='$_SERVER[PHP_SELF]' method=POST>";
204
	echo "<input type=hidden name='choix' value=\"BL_On\">";
204
	echo "<input type=hidden name='choix' value=\"BL_On\">";
205
	echo "<input type=submit value=\"$l_switch_filtering_on\">";
205
	echo "<input type=submit value=\"$l_switch_filtering_on\">";
206
	}
206
	}
207
echo "</FORM>";
207
echo "</FORM>";
208
echo "</td></tr>";
208
echo "</td></tr>";
209
echo "</TABLE>";
209
echo "</TABLE>";
210
if ($DNS_FILTERING == "on") require ('dns_filter2.php');
210
if ($DNS_FILTERING == "on") require ('dns_filter2.php');
211
?>
211
?>
212
</BODY>
212
</BODY>
213
</HTML>
213
</HTML>
214
 
214