Subversion Repositories ALCASAR

Rev

Rev 40 | Go to most recent revision | Details | Compare with Previous | Last modification | View Log

Rev Author Line No. Line
28 richard 1
<?php
2
function echo_file ($filename)
3
	{
4
	if (file_exists($filename))
5
		{
6
		if (filesize($filename) != 0)
7
			{
8
			$pointeur=fopen($filename,"r");
9
			$tampon = fread($pointeur, filesize($filename));
10
			fclose($pointeur);
11
			echo $tampon;
12
			}
13
		}
14
	else
15
		{
16
		echo "erreur d'ouverture du fichier $filename";
17
		}
18
	}
19
?>
20
<TABLE width="100%" border=1 cellspacing=0 cellpadding=1>
21
<tr><td valign="middle" align="left">
142 richard 22
<FORM action='/admin/web_filter.php' method=POST>
28 richard 23
<input type='hidden' name='choix' value='MAJ_bl'>
24
<?php
142 richard 25
echo "<center>$l_main_bl";
26
echo_file ("/var/www/html/VERSION-BL");
27
echo ")</center><BR>";
28 richard 28
echo "<input type='submit' value='$l_download'>";
29
echo " ($l_warning)";
30
?>
31
</FORM>
32
</td></tr>
33
</TABLE>
34
<TABLE width="100%" border=1 cellspacing=0 cellpadding=1>
35
<tr><td valign="middle" align="left">
142 richard 36
<?echo "<center>$l_secondary_bl</center></td></tr>";?>
37 richard 37
<FORM action='/admin/web_filter.php' method='POST'>
28 richard 38
<TABLE cellspacing=2 cellpadding=3 border=1>
39
<tr><td width=50% height=100% align=center>
40
<H3>Liste des noms de domaine interdits</H3>
41
Entrez ici des noms de domaine inconnus de la liste noire principale<BR>
42
et que vous d&eacute;sirez bloquer<BR>
43
Entrez un nom de domaine par ligne (exemple : domaine.org)
44
<textarea name='OSSI_bl_domains' rows=5 cols=40>
45
<?php
46
echo_file ("/etc/dansguardian/lists/blacklists/ossi/domains");
47
?>
48
</textarea>
49
</td><td  width=50% height=100% align=center>
50
<H3>Liste des noms de domaine r&eacute;abilit&eacute;s</H3>
51
Entrez ici des noms de domaine bloqu&eacute;s par la liste noire principale<BR>
52
que vous d&eacute;sirez r&eacute;habiliter<BR>
53
Entrez un nom de domaine par ligne (exemple : domaine2.org)
54
<textarea name='OSSI_wl_domains' rows=5 cols=40>
55
<?php
56
echo_file ("/etc/dansguardian/lists/exceptionsitelist");
57
?>
58
</textarea>
59
</td></tr>
60
<tr><td width=50% height=100% align=center>
61
<H3>Liste des URLs interdites</H3>
62
Entrez ici des URLs inconnues de la liste noire principale<BR>
63
que vous d&eacute;sirez bloquer<BR>
64
Entrez une URL par ligne (exemple : www.domaine.org/perso/index.htm)
65
<textarea name='OSSI_bl_urls' rows=5 cols=40>
66
<?php
67
echo_file ("/etc/dansguardian/lists/blacklists/ossi/urls");
68
?>
69
</textarea>
70
</td><td  width=50% height=100% align=center>
71
<H3>Liste des URLs r&eacute;abilit&eacute;s</H3>
72
Entrez ici des URLs bloqu&eacute;es par la liste noire principale<BR>
73
que vous d&eacute;sirez r&eacute;habiliter<BR>
74
Entrez une URL par ligne (exemple : www.domaine2.org/perso/index.htm)
75
<textarea name='OSSI_wl_urls' rows=5 cols=40>
76
<?php
77
echo_file ("/etc/dansguardian/lists/exceptionurllist");
78
?>
79
</textarea>
80
</td></tr>
81
</TABLE>
82
<input type='hidden' name='choix' value='MAJ_OSSI'>
83
<input type='submit' value='Enregistrer les modifications'>
84
</FORM>
85
</td></tr>
86
</TABLE>