Line 62... |
Line 62... |
62 |
<table width="100%" border=1 cellspacing=0 cellpadding=1>
|
62 |
<table width="100%" border=1 cellspacing=0 cellpadding=1>
|
63 |
<tr><td valign="middle" align="left" colspan=10>
|
63 |
<tr><td valign="middle" align="left" colspan=10>
|
64 |
<FORM action='bl_filter.php' method=POST>
|
64 |
<FORM action='bl_filter.php' method=POST>
|
65 |
<input type='hidden' name='choix' value='MAJ_cat_bl'>
|
65 |
<input type='hidden' name='choix' value='MAJ_cat_bl'>
|
66 |
<?php
|
66 |
<?php
|
- |
|
67 |
echo "<center>";
|
- |
|
68 |
$nbDomainNames = exec ("wc -l /usr/local/share/dnsmasq-bl/* | tail -n 1 | awk '{print $1}'");
|
- |
|
69 |
$nbUrl = exec ("for file in `find /etc/dansguardian/lists/blacklists/ -name 'urls'`; do nb=$((nb+$(wc -l \$file | awk '{print $1}'))); done; echo \$nb");
|
- |
|
70 |
$nbIp = exec ("wc -l /usr/local/share/iptables-bl/* | tail -n 1 | awk '{print $1}'");
|
- |
|
71 |
echo "<b>$l_nbDomainNames</b> $nbDomainNames, <b>$l_nbUrl</b> $nbUrl, <b>$l_nbIp</b> $nbIp<br/>";
|
67 |
echo "<center>$l_bl_categories</center></td></tr>";
|
72 |
echo "$l_bl_categories</center></td></tr>";
|
68 |
//on lit et on interprete le fichier de catégories
|
73 |
//on lit et on interprete le fichier de catégories
|
69 |
$cols=1;
|
74 |
$cols=1;
|
70 |
if (file_exists($bl_categories))
|
75 |
if (file_exists($bl_categories))
|
71 |
{
|
76 |
{
|
72 |
$pointeur=fopen($bl_categories,"r");
|
77 |
$pointeur=fopen($bl_categories,"r");
|
Line 158... |
Line 163... |
158 |
<TABLE width="100%" border=1 cellspacing=0 cellpadding=1>
|
163 |
<TABLE width="100%" border=1 cellspacing=0 cellpadding=1>
|
159 |
<tr><td valign="middle" align="left" colspan=10>
|
164 |
<tr><td valign="middle" align="left" colspan=10>
|
160 |
<FORM action='bl_filter.php' method=POST>
|
165 |
<FORM action='bl_filter.php' method=POST>
|
161 |
<input type='hidden' name='choix' value='MAJ_cat_wl'>
|
166 |
<input type='hidden' name='choix' value='MAJ_cat_wl'>
|
162 |
<?php
|
167 |
<?php
|
- |
|
168 |
echo "<center>";
|
- |
|
169 |
$nbDomainNames = exec ("wc -l /usr/local/share/dnsmasq-wl/* | tail -n 1 | awk '{print $1}'");
|
- |
|
170 |
$nbUrl = 0;
|
- |
|
171 |
$nbIp = exec ("wc -l /usr/local/share/iptables-wl/* | tail -n 1 | awk '{print $1}'");
|
- |
|
172 |
echo "<b>$l_nbDomainNames</b> $nbDomainNames, <b>$l_nbUrl</b> $nbUrl, <b>$l_nbIp</b> $nbIp<br/>";
|
163 |
echo "<center>$l_wl_categories</center></td></tr>";
|
173 |
echo "$l_wl_categories</center></td></tr>";
|
164 |
//on lit et on interprete le fichier de catégories
|
174 |
//on lit et on interprete le fichier de catégories
|
165 |
$cols=1;
|
175 |
$cols=1;
|
166 |
if (file_exists($wl_categories))
|
176 |
if (file_exists($wl_categories))
|
167 |
{
|
177 |
{
|
168 |
$pointeur=fopen($wl_categories,"r");
|
178 |
$pointeur=fopen($wl_categories,"r");
|
Line 198... |
Line 208... |
198 |
echo_file ($dir_dg."blacklists/ossi/domains_wl");
|
208 |
echo_file ($dir_dg."blacklists/ossi/domains_wl");
|
199 |
echo "</textarea></td>";
|
209 |
echo "</textarea></td>";
|
200 |
echo "<td width=50% colspan=5 align=center>";
|
210 |
echo "<td width=50% colspan=5 align=center>";
|
201 |
echo "<H3>$l_allowed_ip</H3>$l_forbidden_ip_explain<BR>";
|
211 |
echo "<H3>$l_allowed_ip</H3>$l_forbidden_ip_explain<BR>";
|
202 |
echo "<textarea name='OSSI_wl_ip' rows=3 cols=40>";
|
212 |
echo "<textarea name='OSSI_wl_ip' rows=3 cols=40>";
|
203 |
echo_file ($dir_dg."blacklists/ossi/urls_wl");
|
213 |
echo_ip_file ($file_wl_ip);
|
204 |
echo "</textarea></td></tr><tr><td colspan=10>";
|
214 |
echo "</textarea></td></tr><tr><td colspan=5>";
|
205 |
echo "<input type='submit' value='$l_record' disabled>";
|
215 |
echo "<input type='submit' value='$l_record'></form></td><form action='bl_filter.php' method='POST'><td valign='middle' align='left' colspan=5><input type='hidden' name='choix' value='Update_IP_WL'><input type='submit' value='$l_update_ip'> $l_update_ip_info</form></td></tr>";
|
206 |
echo "</form> (Wait for a next version of ALCASAR !)";
|
- |
|
207 |
?>
|
216 |
?>
|
208 |
</td></tr>
|
- |
|
209 |
</TABLE><br/>
|
217 |
</TABLE><br/>
|
210 |
<table width="100%" border="0" cellspacing="0" cellpadding="0">
|
218 |
<table width="100%" border="0" cellspacing="0" cellpadding="0">
|
211 |
<tr><th><?php echo $l_specific_filtering; ?></th></tr>
|
219 |
<tr><th><?php echo $l_specific_filtering; ?></th></tr>
|
212 |
<tr bgcolor="#FFCC66"><td><img src="/images/pix.gif" width="1" height="2"></td></tr>
|
220 |
<tr bgcolor="#FFCC66"><td><img src="/images/pix.gif" width="1" height="2"></td></tr>
|
213 |
</table>
|
221 |
</table>
|