Line 4... |
Line 4... |
4 |
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
|
4 |
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
|
5 |
<TITLE>ALCASAR DNS BL filtering</TITLE>
|
5 |
<TITLE>ALCASAR DNS BL filtering</TITLE>
|
6 |
<link rel="stylesheet" href="/css/acc.css" type="text/css">
|
6 |
<link rel="stylesheet" href="/css/acc.css" type="text/css">
|
7 |
</HEAD>
|
7 |
</HEAD>
|
8 |
<body>
|
8 |
<body>
|
- |
|
9 |
<div id="ldoverlay" class="overlay">
|
- |
|
10 |
<div class="lds-spinner" id="spinner"><div></div><div></div><div></div><div></div><div></div><div></div><div></div><div></div><div></div><div></div><div></div><div></div></div>
|
- |
|
11 |
</div>
|
9 |
<?
|
12 |
<?
|
10 |
function form_filter ($form_content)
|
13 |
function form_filter ($form_content)
|
11 |
{
|
14 |
{
|
12 |
// réencodage iso + format unix + rc fin de ligne (ouf...)
|
15 |
// réencodage iso + format unix + rc fin de ligne (ouf...)
|
13 |
$list = str_replace("\r\n", "\n", utf8_decode($form_content));
|
16 |
$list = str_replace("\r\n", "\n", utf8_decode($form_content));
|
Line 434... |
Line 437... |
434 |
if ((file_exists("$dir_tmp/blacklists.tar.gz")) && (file_exists("$dir_tmp/md5sum")))
|
437 |
if ((file_exists("$dir_tmp/blacklists.tar.gz")) && (file_exists("$dir_tmp/md5sum")))
|
435 |
{
|
438 |
{
|
436 |
echo "$l_fingerprint"; echo_file ("$dir_tmp/md5sum");
|
439 |
echo "$l_fingerprint"; echo_file ("$dir_tmp/md5sum");
|
437 |
echo "<br>$l_fingerprint2<a href='http://dsi.ut-capitole.fr/blacklists/download/MD5SUM.LST' target='cat_help' onclick=\"window.open('http://dsi.ut-capitole.fr/blacklists/download/MD5SUM.LST','cat_help','width=600,height=150,toolbar=no,scrollbars=yes,resizable=yes')\" title='verify fingerprint'>dsi.ut-capitole.fr/blacklists/download/MD5SUM.LST</a><br>";
|
440 |
echo "<br>$l_fingerprint2<a href='http://dsi.ut-capitole.fr/blacklists/download/MD5SUM.LST' target='cat_help' onclick=\"window.open('http://dsi.ut-capitole.fr/blacklists/download/MD5SUM.LST','cat_help','width=600,height=150,toolbar=no,scrollbars=yes,resizable=yes')\" title='verify fingerprint'>dsi.ut-capitole.fr/blacklists/download/MD5SUM.LST</a><br>";
|
438 |
echo "<input type='hidden' name='choix' value='Active_list'>";
|
441 |
echo "<input type='hidden' name='choix' value='Active_list'>";
|
439 |
echo "<input type='submit' onClick=\"this.disabled=true; this.value='$l_load';submit();\" value='$l_activate_bl'> ($l_warning)</FORM>";
|
442 |
echo "<input type='submit' onClick=\"this.disabled=true; document.getElementById('ldoverlay').style.display='block'; this.value='$l_load';submit();\" value='$l_activate_bl'> ($l_warning)</FORM>";
|
440 |
echo "<FORM action='bl_filter.php' method=POST>";
|
443 |
echo "<FORM action='bl_filter.php' method=POST>";
|
441 |
echo "<input type='hidden' name='choix' value='Reject_list'>";
|
444 |
echo "<input type='hidden' name='choix' value='Reject_list'>";
|
442 |
echo "<input type='submit' onClick=\"this.disabled=true; this.value='$l_load';submit();\" value='$l_reject_bl'></form>";
|
445 |
echo "<input type='submit' onClick=\"this.disabled=true; document.getElementById('ldoverlay').style.display='block'; this.value='$l_load';submit();\" value='$l_reject_bl'></form>";
|
443 |
}
|
446 |
}
|
444 |
else
|
447 |
else
|
445 |
{
|
448 |
{
|
446 |
echo "<input type='hidden' name='choix' value='Download_list'>";
|
449 |
echo "<input type='hidden' name='choix' value='Download_list'>";
|
447 |
echo "<input type='submit' onClick=\"this.disabled=true; this.value='$l_load';submit();\" value='$l_download_bl'> ($l_warning)</form>";
|
450 |
echo "<input type='submit' onClick=\"this.disabled=true; document.getElementById('ldoverlay').style.display='block'; this.value='$l_load';submit();\" value='$l_download_bl'> ($l_warning)</form>";
|
448 |
}
|
451 |
}
|
449 |
?>
|
452 |
?>
|
450 |
</td></tr>
|
453 |
</td></tr>
|
451 |
</table><br>
|
454 |
</table><br>
|
452 |
<table width="100%" border="0" cellspacing="0" cellpadding="0">
|
455 |
<table width="100%" border="0" cellspacing="0" cellpadding="0">
|
Line 515... |
Line 518... |
515 |
echo "$l_one_dns_ip<br>$l_add_example<br>";
|
518 |
echo "$l_one_dns_ip<br>$l_add_example<br>";
|
516 |
echo "<textarea name='OSSI_bl' rows=3 cols=40>";
|
519 |
echo "<textarea name='OSSI_bl' rows=3 cols=40>";
|
517 |
echo_file ($dir_blacklist."ossi-bl/domains");
|
520 |
echo_file ($dir_blacklist."ossi-bl/domains");
|
518 |
echo "</textarea></td>";
|
521 |
echo "</textarea></td>";
|
519 |
echo "</tr><tr><td colspan=10>";
|
522 |
echo "</tr><tr><td colspan=10>";
|
520 |
echo "<input type='submit' onClick=\"this.disabled=true; this.value='$l_load';submit();\" value='$l_record'>";
|
523 |
echo "<input type='submit' onClick=\"this.disabled=true; document.getElementById('ldoverlay').style.display='block'; this.value='$l_load';submit();\" value='$l_record'>";
|
521 |
echo "</td></tr></table><br>";
|
524 |
echo "</td></tr></table><br>";
|
522 |
echo "</form> ($l_wait)";
|
525 |
echo "</form> ($l_wait)";
|
523 |
?>
|
526 |
?>
|
524 |
<table width="100%" border="0" cellspacing="0" cellpadding="0">
|
527 |
<table width="100%" border="0" cellspacing="0" cellpadding="0">
|
525 |
<tr><th><?php echo $l_additional_file_title; ?></th></tr>
|
528 |
<tr><th><?php echo $l_additional_file_title; ?></th></tr>
|
Line 549... |
Line 552... |
549 |
echo "<td width=50% colspan=5 align=center><H3>$l_add_file</H3>";
|
552 |
echo "<td width=50% colspan=5 align=center><H3>$l_add_file</H3>";
|
550 |
echo "$l_add_file_explain<br>$l_add_example";
|
553 |
echo "$l_add_file_explain<br>$l_add_example";
|
551 |
echo "<form action='bl_filter.php' method='POST' enctype='multipart/form-data'>";
|
554 |
echo "<form action='bl_filter.php' method='POST' enctype='multipart/form-data'>";
|
552 |
echo "<input type='hidden' name='choix' value='MAJ_ossi_file_upload'>";
|
555 |
echo "<input type='hidden' name='choix' value='MAJ_ossi_file_upload'>";
|
553 |
echo "<input type='file' name='fichier_ip'>";
|
556 |
echo "<input type='file' name='fichier_ip'>";
|
554 |
echo "<input type='submit' onClick=\"this.disabled=true; this.value='$l_load';submit();\" value='$l_submit'>";
|
557 |
echo "<input type='submit' onClick=\"this.disabled=true; document.getElementById('ldoverlay').style.display='block'; this.value='$l_load';submit();\" value='$l_submit'>";
|
555 |
echo "</form>";
|
558 |
echo "</form>";
|
556 |
echo "</td></tr>";
|
559 |
echo "</td></tr>";
|
557 |
echo "</table><br>";
|
560 |
echo "</table><br>";
|
558 |
|
561 |
|
559 |
// Autoupdate Section
|
562 |
// Autoupdate Section
|
Line 610... |
Line 613... |
610 |
</td></tr>
|
613 |
</td></tr>
|
611 |
<tr><td>
|
614 |
<tr><td>
|
612 |
<input type='checkbox' name='chk-safesearch' <?= $bl_safesearch == 'on' ? 'checked' : ''; ?>><?= $l_safe_searching; ?>
|
615 |
<input type='checkbox' name='chk-safesearch' <?= $bl_safesearch == 'on' ? 'checked' : ''; ?>><?= $l_safe_searching; ?>
|
613 |
</tr></td>
|
616 |
</tr></td>
|
614 |
<tr><td>
|
617 |
<tr><td>
|
615 |
<?= "<input type='submit' onClick=\"this.disabled=true; this.value='$l_load';submit();\" value='$l_record'>"; ?>
|
618 |
<?= "<input type='submit' onClick=\"this.disabled=true; document.getElementById('ldoverlay').style.display='block'; this.value='$l_load';submit();\" value='$l_record'>"; ?>
|
616 |
</td></tr>
|
619 |
</td></tr>
|
617 |
</table>
|
620 |
</table>
|
618 |
</form>
|
621 |
</form>
|
619 |
</BODY>
|
622 |
</BODY>
|
620 |
</HTML>
|
623 |
</HTML>
|