Subversion Repositories ALCASAR

Rev

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

Rev 308 Rev 311
Line 11... Line 11...
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 "$l_error_openfile $filename";
17
		}
17
		}
18
	}
18
	}
19
?>
19
?>
-
 
20
<table width="100%" border="0" cellspacing="0" cellpadding="0">
-
 
21
	<tr><th><?php echo $l_main_bl; ?></th></tr>
-
 
22
	<tr bgcolor="#FFCC66"><td><img src="/images/pix.gif" width="1" height="2"></td></tr>
-
 
23
</table>
20
<TABLE width="100%" border=1 cellspacing=0 cellpadding=1>
24
<TABLE width="100%" border=1 cellspacing=0 cellpadding=1>
21
<tr><td valign="middle" align="left">
25
<tr><td valign="middle" align="left" colspan=10>
22
<FORM action='/admin/dns_filter.php' method=POST>
26
<FORM action='/admin/dns_filter.php' method=POST>
23
<input type='hidden' name='choix' value='MAJ_bl'>
27
<input type='hidden' name='choix' value='MAJ_bl'>
24
<?php
28
<?php
25
echo "<center>$l_main_bl";
29
echo "<center>$l_bl_version";
26
echo_file ("/var/www/html/VERSION-BL");
30
echo_file ("/var/www/html/VERSION-BL");
27
echo ")</center><BR>";
31
echo "</center><BR>";
28
echo "<input type='submit' value='$l_download'>";
32
echo "<input type='submit' value='$l_download'>";
29
echo " ($l_warning)";
33
echo " ($l_warning)";
30
?>
34
?>
31
</FORM>
35
</FORM>
32
</td></tr>
36
</td></tr>
-
 
37
<tr><td valign="middle" align="left" colspan=10>
-
 
38
<FORM action='/admin/dns_filter.php' method=POST>
-
 
39
<input type='hidden' name='choix' value='MAJ_OSSI'>
-
 
40
<?php
-
 
41
echo "<center>$l_bl_categories</center></td></tr>";
-
 
42
//on lit et on interprete le fichier de catégories
-
 
43
$cols=1; $filename="/usr/local/etc/alcasar-bl-categories-available";
-
 
44
if (file_exists($filename))
-
 
45
	{
-
 
46
	$pointeur=fopen($filename,"r");
-
 
47
	while (!feof ($pointeur))
-
 
48
		{
-
 
49
		$ligne=fgets($pointeur, 4096);
-
 
50
		if ($ligne)
-
 
51
			{
-
 
52
			if ($cols == 1) { echo "<tr>";}
-
 
53
			$categorie=trim(basename($ligne));
-
 
54
			echo "<td>$categorie<br>";
-
 
55
			echo "<input type='checkbox' name='chk-$categorie'";
-
 
56
			// si la ligne est commentée -> categorie non selectionnée
-
 
57
			if (preg_match('/^#/',$ligne, $r)) {
-
 
58
				echo ">";}
-
 
59
			else {
-
 
60
				echo "checked>";}
-
 
61
				echo "</td>";
-
 
62
 
-
 
63
			}
-
 
64
			$cols++;
-
 
65
			if ($cols > 10){
-
 
66
				echo "</tr>";
-
 
67
				$cols=1;
-
 
68
			}
-
 
69
		}
-
 
70
	fclose($pointeur);
-
 
71
	echo "<tr><td colspan=10><input type='submit' value='$l_record'>";
-
 
72
	}
-
 
73
else	{
-
 
74
	echo "$l_error_open_file $filename";
-
 
75
	}
-
 
76
?>
-
 
77
</FORM>
-
 
78
</td></tr>
33
</TABLE>
79
</TABLE>
-
 
80
<table width="100%" border="0" cellspacing="0" cellpadding="0">
-
 
81
	<tr><th><?php echo $l_secondary_bl; ?></th></tr>
-
 
82
	<tr bgcolor="#FFCC66"><td><img src="/images/pix.gif" width="1" height="2"></td></tr>
-
 
83
</table>
34
<TABLE width="100%" border=1 cellspacing=0 cellpadding=1>
84
<TABLE width="100%" border=1 cellspacing=0 cellpadding=1>
35
<tr><td valign="middle" align="left">
-
 
36
<?echo "<center>$l_secondary_bl</center></td></tr>";?>
-
 
37
<FORM action='/admin/dns_filter.php' method='POST'>
85
<FORM action='/admin/dns_filter.php' method='POST'>
38
<TABLE cellspacing=2 cellpadding=3 border=1>
-
 
39
<tr><td width=50% height=100% align=center>
86
<tr><td width=50% 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>
87
<?php echo "<H3>$l_forbidden_dns</H3>$l_forbidden_dns_explain";
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>
88
echo "<textarea name='OSSI_bl_domains' rows=5 cols=40>";
45
<?php
-
 
46
echo_file ("/etc/dansguardian/lists/blacklists/ossi/domains");
89
echo_file ("/etc/dansguardian/lists/blacklists/ossi/domains");
47
?>
-
 
48
</textarea>
-
 
49
</td><td  width=50% height=100% align=center>
90
echo "</textarea></td><td  width=50% 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>
91
echo "<H3>$l_rehabilitated_dns</H3>$l_rehabilitated_dns_explain<BR>$l_one_dns";
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>
92
echo "<textarea name='OSSI_wl_domains' rows=5 cols=40>";
55
<?php
-
 
56
echo_file ("/etc/dansguardian/lists/exceptionsitelist");
93
echo_file ("/etc/dansguardian/lists/exceptionsitelist");
57
?>
-
 
58
</textarea>
-
 
59
</td></tr>
-
 
60
<tr><td width=50% height=100% align=center>
94
echo "</textarea></td></tr><tr><td width=50% align=center>";
61
<H3>Liste des URLs interdites</H3>
-
 
62
Entrez ici des URLs inconnues de la liste noire principale<BR>
95
echo "<H3>$l_forbidden_url</H3>$l_forbidden_url_explain";
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>
96
echo "<textarea name='OSSI_bl_urls' rows=5 cols=40>";
66
<?php
-
 
67
echo_file ("/etc/dansguardian/lists/blacklists/ossi/urls");
97
echo_file ("/etc/dansguardian/lists/blacklists/ossi/urls");
68
?>
-
 
69
</textarea>
-
 
70
</td><td  width=50% height=100% align=center>
98
echo "</textarea></td><td  width=50% 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>
99
echo "<H3>$l_rehabilitated_url</H3>$l_rehabilitated_url_explain<BR>$l_one_url";
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>
100
echo "<textarea name='OSSI_wl_urls' rows=5 cols=40>";
76
<?php
-
 
77
echo_file ("/etc/dansguardian/lists/exceptionurllist");
101
echo_file ("/etc/dansguardian/lists/exceptionurllist");
78
?>
102
?>
79
</textarea>
103
</textarea>
80
</td></tr>
104
</td></tr>
81
</TABLE>
105
<tr><td colspan=2>
82
<input type='hidden' name='choix' value='MAJ_OSSI'>
106
<input type='hidden' name='choix' value='MAJ_OSSI'>
83
<input type='submit' value='Enregistrer les modifications'>
107
<input type='submit' value='<?php echo "$l_record"; ?>'>
84
</FORM>
108
</FORM>
85
</td></tr>
109
</td></tr>
86
</TABLE>
110
</TABLE>