Subversion Repositories ALCASAR

Rev

Rev 2864 | Rev 3173 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log

Rev 2864 Rev 3028
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 WL filtering</TITLE>
5
<TITLE>ALCASAR DNS WL 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 343... Line 346...
343
echo "$l_one_dns_ip<BR>";
346
echo "$l_one_dns_ip<BR>";
344
echo "<textarea name='OSSI_wl' rows=3 cols=40>";
347
echo "<textarea name='OSSI_wl' rows=3 cols=40>";
345
echo_file ($dir_blacklist."ossi-wl/domains");
348
echo_file ($dir_blacklist."ossi-wl/domains");
346
echo "</textarea></td>";
349
echo "</textarea></td>";
347
echo "</tr><tr><td colspan=10>";
350
echo "</tr><tr><td colspan=10>";
348
echo "<input type='submit' onClick=\"this.disabled=true; this.value='$l_load';submit();\" value='$l_record'>";
351
echo "<input type='submit' onClick=\"this.disabled=true; document.getElementById('ldoverlay').style.display='block'; this.value='$l_load';submit();\" value='$l_record'>";
349
echo "</form> ($l_wait)";
352
echo "</form> ($l_wait)";
350
echo "</td></tr></table><br/>";
353
echo "</td></tr></table><br/>";
351
?>
354
?>
352
<table width="100%" border="0" cellspacing="0" cellpadding="0">
355
<table width="100%" border="0" cellspacing="0" cellpadding="0">
353
	<tr><th><?php echo $l_additional_file_title; ?></th></tr>
356
	<tr><th><?php echo $l_additional_file_title; ?></th></tr>
Line 373... Line 376...
373
echo "</table><br/></td></form><form action='wl_filter.php' method='POST' enctype='multipart/form-data'>";
376
echo "</table><br/></td></form><form action='wl_filter.php' method='POST' enctype='multipart/form-data'>";
374
echo "<input type='hidden' name='choix' value='MAJ_ossi_file_upload'><td width=50% colspan=5 align=center>";
377
echo "<input type='hidden' name='choix' value='MAJ_ossi_file_upload'><td width=50% colspan=5 align=center>";
375
echo "<H3>$l_add_file</H3>";
378
echo "<H3>$l_add_file</H3>";
376
echo "$l_add_file_explain";
379
echo "$l_add_file_explain";
377
echo "<input type='file' name='fichier_ip'>";
380
echo "<input type='file' name='fichier_ip'>";
378
echo "<input type='submit' onClick=\"this.disabled=true; this.value='$l_load';submit();\" value='$l_submit'>";
381
echo "<input type='submit' onClick=\"this.disabled=true; document.getElementById('ldoverlay').style.display='block'; this.value='$l_load';submit();\" value='$l_submit'>";
379
echo "</td></tr>";
382
echo "</td></tr>";
380
echo "</form>";
383
echo "</form>";
381
echo "</table><br/>";
384
echo "</table><br/>";
382
?>
385
?>
383
<table width="100%" border="0" cellspacing="0" cellpadding="0">
386
<table width="100%" border="0" cellspacing="0" cellpadding="0">
Line 389... Line 392...
389
<input type='hidden' name='choix' value='Specific_filtering'>
392
<input type='hidden' name='choix' value='Specific_filtering'>
390
<tr><td>
393
<tr><td>
391
<input type='checkbox' name='chk-safesearch' <?= $wl_safesearch == 'on' ? 'checked' : ''; ?>><?= $l_safe_searching; ?>
394
<input type='checkbox' name='chk-safesearch' <?= $wl_safesearch == 'on' ? 'checked' : ''; ?>><?= $l_safe_searching; ?>
392
</tr></td>
395
</tr></td>
393
<tr><td>
396
<tr><td>
394
<?= "<input type='submit' onClick=\"this.disabled=true; this.value='$l_load';submit();\" value='$l_record'>"; ?>
397
<?= "<input type='submit' onClick=\"this.disabled=true; document.getElementById('ldoverlay').style.display='block'; this.value='$l_load';submit();\" value='$l_record'>"; ?>
395
</td></tr></FORM>
398
</td></tr></FORM>
396
</TABLE>
399
</TABLE>
397
</BODY>
400
</BODY>
398
</HTML>
401
</HTML>