Subversion Repositories ALCASAR

Compare Revisions

Ignore whitespace Rev 1854 → Rev 1855

/web/acc/admin/wl_filter.php
44,8 → 44,13
{
$pointeur=fopen($filename,"r");
$tampon = fread($pointeur, filesize($filename));
$line = split("\n", $tampon);
foreach( $line as $x)
{
if(isset(split('/',$x)[1]))
echo split('/',$x)[1]."\n";
}
fclose($pointeur);
echo $tampon;
}
}
else
158,6 → 163,7
}
$dir_etc="/usr/local/etc/";
$dir_dg="/etc/dansguardian/lists/";
$file_wl_domains="/usr/local/share/dnsmasq-wl/ossi.conf";
$file_wl_ip="/usr/local/share/iptables-wl-enabled/ossi";
$wl_categories=$dir_etc."alcasar-wl-categories";
$wl_categories_enabled=$dir_etc."alcasar-wl-categories-enabled";
211,7 → 217,7
fclose($pointeur);
}
else {echo "$l_error_open_file $wl_categories_enabled";}
$fichier=fopen($dir_dg."blacklists/ossi/domains_wl","w+");
$fichier=fopen($file_wl_domains,"w+");
fputs($fichier, form_filter($_POST['OSSI_wl_domains']));
fclose($fichier);
unset($_POST['OSSI_wl_domains']);
324,7 → 330,7
echo "<tr><td width=50% colspan=5 align=center>";
echo "<H3>$l_allowed_dns</H3>$l_one_dns<BR>";
echo "<textarea name='OSSI_wl_domains' rows=3 cols=40>";
echo_file ($dir_dg."blacklists/ossi/domains_wl");
echo_file ($file_wl_domains);
echo "</textarea></td>";
echo "<td width=50% colspan=5 align=center>";
echo "<H3>$l_allowed_ip</H3>$l_forbidden_ip_explain<BR>";