Line 225... |
Line 225... |
225 |
$dir_bl_domain_names_enabled="/usr/local/share/unbound-bl-enabled/";
|
225 |
$dir_bl_domain_names_enabled="/usr/local/share/unbound-bl-enabled/";
|
226 |
$bl_categories=$dir_etc."alcasar-bl-categories";
|
226 |
$bl_categories=$dir_etc."alcasar-bl-categories";
|
227 |
$bl_categories_enabled=$dir_etc."alcasar-bl-categories-enabled";
|
227 |
$bl_categories_enabled=$dir_etc."alcasar-bl-categories-enabled";
|
228 |
$conf_file=$dir_etc."alcasar.conf";
|
228 |
$conf_file=$dir_etc."alcasar.conf";
|
229 |
$domainfilter_file="/etc/unbound/conf.d/blacklist/domainfilter.conf";
|
229 |
$domainfilter_file="/etc/unbound/conf.d/blacklist/domainfilter.conf";
|
230 |
$bannedsite_file=$dir_dg."bannedsitelist";
|
- |
|
231 |
$dir_tmp="/tmp/blacklists";
|
230 |
$dir_tmp="/tmp/blacklists";
|
232 |
$update_file_cat="/usr/local/etc/update_cat.conf";
|
231 |
$update_file_cat="/usr/local/etc/update_cat.conf";
|
233 |
$update_file_ossi_cat="/usr/local/etc/update_ossi_cat.conf";
|
232 |
$update_file_ossi_cat="/usr/local/etc/update_ossi_cat.conf";
|
234 |
$bl_safesearch="off";
|
233 |
$bl_safesearch="off";
|
235 |
$bl_pureip="off";
|
234 |
$bl_pureip="off";
|
Line 289... |
Line 288... |
289 |
else {echo "$l_error_open_file $bl_categories_enabled";}
|
288 |
else {echo "$l_error_open_file $bl_categories_enabled";}
|
290 |
$fichier=fopen($dir_blacklist."ossi-bl/domains","w+");
|
289 |
$fichier=fopen($dir_blacklist."ossi-bl/domains","w+");
|
291 |
fputs($fichier, form_filter($_POST['OSSI_bl']));
|
290 |
fputs($fichier, form_filter($_POST['OSSI_bl']));
|
292 |
fclose($fichier);
|
291 |
fclose($fichier);
|
293 |
unset($_POST['OSSI_bl']);
|
292 |
unset($_POST['OSSI_bl']);
|
294 |
$fichier=fopen($dir_dg."exceptionsitelist","w+");
|
293 |
$fichier=fopen($dir_dg."group1/exceptionsitelist","w+");
|
295 |
fputs($fichier, form_filter($_POST['BL_rehabilited_domains']));
|
294 |
fputs($fichier, form_filter($_POST['BL_rehabilited_domains']));
|
296 |
fclose($fichier);
|
295 |
fclose($fichier);
|
297 |
unset($_POST['BL_rehabilited_domains']);
|
296 |
unset($_POST['BL_rehabilited_domains']);
|
298 |
$fichier=fopen($dir_dg."exceptioniplist","w+");
|
297 |
$fichier=fopen($dir_dg."group1/exceptioniplist","w+");
|
299 |
fputs($fichier, form_filter($_POST['BL_rehabilited_ip']));
|
298 |
fputs($fichier, form_filter($_POST['BL_rehabilited_ip']));
|
300 |
fclose($fichier);
|
299 |
fclose($fichier);
|
301 |
unset($_POST['BL_rehabilited_ip']);
|
300 |
unset($_POST['BL_rehabilited_ip']);
|
302 |
exec ("sudo /usr/local/bin/alcasar-bl.sh --reload");
|
301 |
exec ("sudo /usr/local/bin/alcasar-bl.sh --reload");
|
303 |
break;
|
302 |
break;
|
Line 460... |
Line 459... |
460 |
echo "<tr><td valign='middle' align='left' colspan=10>";
|
459 |
echo "<tr><td valign='middle' align='left' colspan=10>";
|
461 |
echo "<center><b>$l_maj_rehabilitated</b></center></td></tr>";
|
460 |
echo "<center><b>$l_maj_rehabilitated</b></center></td></tr>";
|
462 |
echo "<tr><td width=50% colspan=5 align=center>";
|
461 |
echo "<tr><td width=50% colspan=5 align=center>";
|
463 |
echo "<H3>$l_rehabilitated_dns</H3>$l_rehabilitated_dns_explain<BR>$l_one_dns<BR>";
|
462 |
echo "<H3>$l_rehabilitated_dns</H3>$l_rehabilitated_dns_explain<BR>$l_one_dns<BR>";
|
464 |
echo "<textarea name='BL_rehabilited_domains' rows=3 cols=40>";
|
463 |
echo "<textarea name='BL_rehabilited_domains' rows=3 cols=40>";
|
465 |
echo_file ($dir_dg."exceptionsitelist");
|
464 |
echo_file ($dir_dg."group1/exceptionsitelist");
|
466 |
echo "</textarea></td>";
|
465 |
echo "</textarea></td>";
|
467 |
echo "<td width=50% colspan=5 align=center>";
|
466 |
echo "<td width=50% colspan=5 align=center>";
|
468 |
echo "<H3>$l_rehabilitated_ip</H3>$l_rehabilitated_ip_explain<BR>$l_one_ip<BR>";
|
467 |
echo "<H3>$l_rehabilitated_ip</H3>$l_rehabilitated_ip_explain<BR>$l_one_ip<BR>";
|
469 |
echo "<textarea name='BL_rehabilited_ip' rows=3 cols=40>";
|
468 |
echo "<textarea name='BL_rehabilited_ip' rows=3 cols=40>";
|
470 |
echo_file ($dir_dg."exceptioniplist");
|
469 |
echo_file ($dir_dg."group1/exceptioniplist");
|
471 |
echo "</textarea></td></tr>";
|
470 |
echo "</textarea></td></tr>";
|
472 |
echo "<tr><td valign='middle' align='left' colspan=10>";
|
471 |
echo "<tr><td valign='middle' align='left' colspan=10>";
|
473 |
echo "<center><b>$l_add_to_bl</b></center></td></tr>";
|
472 |
echo "<center><b>$l_add_to_bl</b></center></td></tr>";
|
474 |
echo "<tr><td width=100% colspan=10 align=center>";
|
473 |
echo "<tr><td width=100% colspan=10 align=center>";
|
475 |
echo "$l_one_dns_ip<br>$l_add_example<br>";
|
474 |
echo "$l_one_dns_ip<br>$l_add_example<br>";
|