Subversion Repositories ALCASAR

Rev

Rev 40 | Go to most recent revision | Only display areas with differences | Regard whitespace | Details | Blame | Last modification | View Log

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