195,6 → 195,7 |
$dir_etc="/usr/local/etc/"; |
$dir_dg="/etc/dansguardian/lists/"; |
$dir_bl_ip="/usr/local/share/iptables-bl/"; |
$dir_bl_dns="/usr/local/share/dnsmasq-bl/"; |
$bl_categories=$dir_etc."alcasar-bl-categories"; |
$bl_categories_enabled=$dir_etc."alcasar-bl-categories-enabled"; |
$conf_file=$dir_etc."alcasar.conf"; |
262,7 → 263,7 |
fclose($pointeur); |
} |
else {echo "$l_error_open_file $bl_categories_enabled";} |
$fichier=fopen($dir_dg."blacklists/ossi/domains","w+"); |
$fichier=fopen($dir_bl_dns."ossi.conf","w+"); |
fputs($fichier, form_filter($_POST['OSSI_bl_domains'])); |
fclose($fichier); |
unset($_POST['OSSI_bl_domains']); |
419,7 → 420,7 |
{ |
if ($cols == 1) { echo "<tr>";} |
$categorie=trim(basename($ligne)); |
if($categorie != "ossi") |
if($categorie != "ossi") // don't display ossi |
{ |
echo "<td><a href='bl_categories_help.php?liste=bl&cat=$categorie' target='cat_help' onclick=window.open('bl_categories_help.php','cat_help','width=600,height=450,toolbar=no,scrollbars=yes,resizable=yes') title='categories help page'>$categorie</a><br>"; |
echo "<input type='checkbox' name='chk-$categorie'"; |
472,7 → 473,7 |
echo "<tr><td width=50% colspan=5 align=center>"; |
echo "<H3>$l_forbidden_dns</H3>$l_one_dns<BR>"; |
echo "<textarea name='OSSI_bl_domains' rows=3 cols=40>"; |
echo_file ($dir_dg."blacklists/ossi/domains"); |
echo_file ($dir_bl_dns."ossi.conf"); |
echo "</textarea></td>"; |
echo "<td width=50% colspan=5 align=center>"; |
echo "<H3>$l_forbidden_ip</H3>$l_forbidden_ip_explain<BR>"; |