Line 264... |
Line 264... |
264 |
?>
|
264 |
?>
|
265 |
<table width="100%" border="0" cellspacing="0" cellpadding="0">
|
265 |
<table width="100%" border="0" cellspacing="0" cellpadding="0">
|
266 |
<tr><th><?php echo $l_wl; ?></th></tr>
|
266 |
<tr><th><?php echo $l_wl; ?></th></tr>
|
267 |
<tr bgcolor="#FFCC66"><td><img src="/images/pix.gif" width="1" height="2"></td></tr>
|
267 |
<tr bgcolor="#FFCC66"><td><img src="/images/pix.gif" width="1" height="2"></td></tr>
|
268 |
</table>
|
268 |
</table>
|
269 |
<table width="100%" border=1 cellspacing=0 cellpadding=1>
|
- |
|
270 |
<tr><td valign="middle" align="left" colspan=10>
|
- |
|
271 |
<FORM action='wl_filter.php' method=POST>
|
269 |
<FORM action='wl_filter.php' method=POST>
|
272 |
<input type='hidden' name='choix' value='MAJ_cat_wl'>
|
270 |
<input type='hidden' name='choix' value='MAJ_cat_wl'>
|
- |
|
271 |
<table width="100%" border=1 cellspacing=0 cellpadding=1>
|
- |
|
272 |
<tr><td valign="middle" align="left" colspan=10>
|
273 |
<?php
|
273 |
<?php
|
274 |
echo "<center>";
|
274 |
echo "<center>";
|
275 |
// total number of IP, DNS & URLs
|
275 |
// total number of IP, DNS & URLs
|
276 |
$nbDomainNames = exec("wc -l $dir_wl_domain_names_enabled* | tail -n 1 | awk '{print $1}'");
|
276 |
$nbDomainNames = exec("wc -l $dir_wl_domain_names_enabled* | tail -n 1 | awk '{print $1}'");
|
277 |
$nbUrl = "0";
|
277 |
$nbUrl = "0";
|
Line 284... |
Line 284... |
284 |
$wl_files = file($wl_categories);
|
284 |
$wl_files = file($wl_categories);
|
285 |
$wl_files = preg_grep("/ossi-/", $wl_files, 1); // don't display ossi custom categories
|
285 |
$wl_files = preg_grep("/ossi-/", $wl_files, 1); // don't display ossi custom categories
|
286 |
foreach ($wl_files as $fichier => $value){
|
286 |
foreach ($wl_files as $fichier => $value){
|
287 |
if ($cols == 1) { echo "<tr>";}
|
287 |
if ($cols == 1) { echo "<tr>";}
|
288 |
$categorie=trim(basename($value));
|
288 |
$categorie=trim(basename($value));
|
289 |
echo "<td><a href='bl_categories_help.php?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>";
|
289 |
echo "<td><a href='bl_categories_help.php?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>";
|
290 |
echo "<input type='checkbox' name='chk-$categorie'";
|
290 |
echo "<input type='checkbox' name='chk-$categorie'";
|
291 |
// if the line is commented, the category is disable
|
291 |
// if the line is commented, the category is disable
|
292 |
if (preg_match('/^#/',$value, $r)) { echo ">";}
|
292 |
if (preg_match('/^#/',$value, $r)) { echo ">";}
|
293 |
else { echo "checked>"; }
|
293 |
else { echo " checked>"; }
|
294 |
echo "</td>";
|
294 |
echo "</td>";
|
295 |
$cols++;
|
295 |
$cols++;
|
296 |
if ($cols > 10){
|
296 |
if ($cols > 10){
|
297 |
echo "</tr>";
|
297 |
echo "</tr>";
|
298 |
$cols=1;
|
298 |
$cols=1;
|
Line 309... |
Line 309... |
309 |
echo "<textarea name='OSSI_wl' rows=3 cols=40>";
|
309 |
echo "<textarea name='OSSI_wl' rows=3 cols=40>";
|
310 |
echo_file ($dir_blacklist."ossi-wl/domains");
|
310 |
echo_file ($dir_blacklist."ossi-wl/domains");
|
311 |
echo "</textarea></td>";
|
311 |
echo "</textarea></td>";
|
312 |
echo "</tr><tr><td colspan=10>";
|
312 |
echo "</tr><tr><td colspan=10>";
|
313 |
echo "<input type='submit' onClick=\"this.disabled=true; document.getElementById('ldoverlay').style.display='block'; this.value='$l_load';submit();\" value='$l_record'>";
|
313 |
echo "<input type='submit' onClick=\"this.disabled=true; document.getElementById('ldoverlay').style.display='block'; this.value='$l_load';submit();\" value='$l_record'>";
|
314 |
echo "</form> ($l_wait)";
|
314 |
echo " ($l_wait)";
|
315 |
echo "</td></tr></table><br/>";
|
315 |
echo "</td></tr></table></form><br/>";
|
316 |
?>
|
316 |
?>
|
317 |
<table width="100%" border="0" cellspacing="0" cellpadding="0">
|
317 |
<table width="100%" border="0" cellspacing="0" cellpadding="0">
|
318 |
<tr><th><?php echo $l_additional_file_title; ?></th></tr>
|
318 |
<tr><th><?php echo $l_additional_file_title; ?></th></tr>
|
319 |
<tr bgcolor="#FFCC66"><td><img src="/images/pix.gif" width="1" height="2"></td></tr>
|
319 |
<tr bgcolor="#FFCC66"><td><img src="/images/pix.gif" width="1" height="2"></td></tr>
|
320 |
</table>
|
320 |
</table>
|
321 |
<table width="100%" border=1 cellspacing=0 cellpadding=1>
|
321 |
<table width="100%" border=1 cellspacing=0 cellpadding=1>
|
322 |
<form action='wl_filter.php' method='POST'>
|
- |
|
323 |
<input type='hidden' name='choix' value='MAJ_ossi_file'>
|
- |
|
324 |
<?php
|
322 |
<?php
|
325 |
echo "<tr><td width=50% colspan=5 align=center>";
|
323 |
echo "<tr><td width=50% colspan=5 align=center>";
|
326 |
echo "<H3>$l_file_list</H3>";
|
324 |
echo "<H3>$l_file_list</H3>";
|
- |
|
325 |
echo "<form action='wl_filter.php' method='POST'>";
|
- |
|
326 |
echo "<input type='hidden' name='choix' value='MAJ_ossi_file'>";
|
327 |
echo "<table cellspacing=2 cellpadding=3 border=1><tr><th>$l_file_name<th>$l_nb_ip<th>$l_nb_domain_names<th colspan=2>$l_file_action</tr>";
|
327 |
echo "<table cellspacing=2 cellpadding=3 border=1><tr><th>$l_file_name<th>$l_nb_ip<th>$l_nb_domain_names<th colspan=2>$l_file_action</tr>";
|
328 |
|
328 |
|
329 |
//list OSSI custom categories
|
329 |
//list OSSI custom categories
|
330 |
$fichierswl = array_diff(scandir($dir_blacklist), array('..','.','ossi-bl','ossi-wl'));
|
330 |
$fichierswl = array_diff(scandir($dir_blacklist), array('..','.','ossi-bl','ossi-wl'));
|
331 |
$fichierswl = preg_grep("/^ossi-wl-/",$fichierswl);
|
331 |
$fichierswl = preg_grep("/^ossi-wl-/",$fichierswl);
|
332 |
foreach ($fichierswl as $fichier => $value){
|
332 |
foreach ($fichierswl as $fichier => $value){
|
333 |
echo "<tr><td><center><a href='bl_categories_help.php?cat=$value&filtre=domain' target='cat_help' onclick=window.open('bl_categories_help','cat_help','width=600,height=450,toolbar=no,scrollbars=yes,resizable=yes') title='categories help page'>".substr($value,8)."</a></center></td><td><center>".exec("wc -l $dir_wl_ip$value | cut -d\" \" -f1")."</center></td><td><center>".exec("wc -l $dir_wl_domain_names$value.conf | cut -d\" \" -f1")."</center></td><td><center><input type='submit' name='$value'";
|
333 |
echo "<tr><td><center><a href='bl_categories_help.php?cat=$value&filtre=domain' target='cat_help' onclick=window.open('bl_categories_help','cat_help','width=600,height=450,toolbar=no,scrollbars=yes,resizable=yes') title='categories help page'>".substr($value,8)."</a></center></td><td><center>".exec("wc -l $dir_wl_ip$value | cut -d\" \" -f1")."</center></td><td><center>".exec("wc -l $dir_wl_domain_names$value.conf | cut -d\" \" -f1")."</center></td><td><center><input type='submit' name='$value'";
|
334 |
if (file_exists ($dir_wl_domain_names_enabled.$value)) echo " value='$l_disable'>"; else echo " value='$l_enable'>";
|
334 |
if (file_exists ($dir_wl_domain_names_enabled.$value)) echo " value='$l_disable'>"; else echo " value='$l_enable'>";
|
335 |
echo "</center></td><td><center><input type='submit' name='$value' value='$l_remove'></center></td></tr>";
|
335 |
echo "</center></td><td><center><input type='submit' name='$value' value='$l_remove'></center></td></tr>";
|
336 |
}
|
336 |
}
|
337 |
echo "</table><br/></td></form><form action='wl_filter.php' method='POST' enctype='multipart/form-data'>";
|
337 |
echo "</table></form><br/></td><td width=50% colspan=5 align=center><form action='wl_filter.php' method='POST' enctype='multipart/form-data'>";
|
338 |
echo "<input type='hidden' name='choix' value='MAJ_ossi_file_upload'><td width=50% colspan=5 align=center>";
|
338 |
echo "<input type='hidden' name='choix' value='MAJ_ossi_file_upload'>";
|
339 |
echo "<H3>$l_add_file</H3>";
|
339 |
echo "<H3>$l_add_file</H3>";
|
340 |
echo "$l_add_file_explain";
|
340 |
echo "$l_add_file_explain";
|
341 |
echo "<input type='file' name='fichier_ip'>";
|
341 |
echo "<input type='file' name='fichier_ip'>";
|
342 |
echo "<input type='submit' onClick=\"this.disabled=true; document.getElementById('ldoverlay').style.display='block'; this.value='$l_load';submit();\" value='$l_submit'>";
|
342 |
echo "<input type='submit' onClick=\"this.disabled=true; document.getElementById('ldoverlay').style.display='block'; this.value='$l_load';submit();\" value='$l_submit'>";
|
343 |
echo "</td></tr>";
|
343 |
echo "</form></td></tr>";
|
344 |
echo "</form>";
|
- |
|
345 |
echo "</table><br/>";
|
344 |
echo "</table><br/>";
|
346 |
?>
|
345 |
?>
|
- |
|
346 |
|
- |
|
347 |
<!--
|
347 |
<table width="100%" border="0" cellspacing="0" cellpadding="0">
|
348 |
<table width="100%" border="0" cellspacing="0" cellpadding="0">
|
348 |
<tr><th><?php echo $l_specific_filtering; ?></th></tr>
|
349 |
<tr><th><?php echo $l_specific_filtering; ?></th></tr>
|
349 |
<tr bgcolor="#FFCC66"><td><img src="/images/pix.gif" width="1" height="2"></td></tr>
|
350 |
<tr bgcolor="#FFCC66"><td><img src="/images/pix.gif" width="1" height="2"></td></tr>
|
350 |
</table>
|
351 |
</table>
|
351 |
<TABLE width="100%" border=1 cellspacing=0 cellpadding=1>
|
352 |
<TABLE width="100%" border=1 cellspacing=0 cellpadding=1>
|
Line 356... |
Line 357... |
356 |
</tr></td>
|
357 |
</tr></td>
|
357 |
<tr><td>
|
358 |
<tr><td>
|
358 |
<?= "<input type='submit' onClick=\"this.disabled=true; document.getElementById('ldoverlay').style.display='block'; this.value='$l_load';submit();\" value='$l_record'>"; ?>
|
359 |
<?= "<input type='submit' onClick=\"this.disabled=true; document.getElementById('ldoverlay').style.display='block'; this.value='$l_load';submit();\" value='$l_record'>"; ?>
|
359 |
</td></tr></FORM>
|
360 |
</td></tr></FORM>
|
360 |
</TABLE>
|
361 |
</TABLE>
|
- |
|
362 |
-->
|
361 |
</BODY>
|
363 |
</BODY>
|
362 |
</HTML>
|
364 |
</HTML>
|