Subversion Repositories ALCASAR

Rev

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

Rev 879 Rev 882
Line 27... Line 27...
27
<?php
27
<?php
28
echo "<center>$l_bl_version";
28
echo "<center>$l_bl_version";
29
echo date ("F d Y", filemtime ('/etc/dansguardian/lists/blacklists/README'));
29
echo date ("F d Y", filemtime ('/etc/dansguardian/lists/blacklists/README'));
30
echo "</center><BR>";
30
echo "</center><BR>";
31
$dir_tmp="/tmp/blacklists";
31
$dir_tmp="/tmp/blacklists";
32
if (file_exists("$dir_tmp/blacklists.tar.gz"))
32
if ((file_exists("$dir_tmp/blacklists.tar.gz")) && (file_exists("$dir_tmp/md5sum")))
33
	{
33
	{
34
	echo "$l_fingerprint"; echo_file ("$dir_tmp/md5sum");
34
	echo "$l_fingerprint"; echo_file ("$dir_tmp/md5sum");
35
	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>";
35
	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>";
36
	echo "<input type='hidden' name='choix' value='Active_bl'>";
36
	echo "<input type='hidden' name='choix' value='Active_bl'>";
37
	echo "<input type='submit' value='$l_activate_bl'>";
37
	echo "<input type='submit' value='$l_activate_bl'>";
Line 118... Line 118...
118
<FORM action='dns_filter.php' method='POST'>
118
<FORM action='dns_filter.php' method='POST'>
119
<input type='hidden' name='choix' value='Specific_filtering'>
119
<input type='hidden' name='choix' value='Specific_filtering'>
120
<tr><td>
120
<tr><td>
121
<input type='checkbox' name='chk-ip'
121
<input type='checkbox' name='chk-ip'
122
<?php
122
<?php
123
//on vérifie l'état du filtrage "pureip"
123
// verify "pureip" filtering state
124
if (file_exists($bannedsite_file))
124
if (file_exists($bannedsite_file))
125
	{
125
	{
126
	$pointeur=fopen($bannedsite_file,"r");
126
	$pointeur=fopen($bannedsite_file,"r");
127
	while (!feof ($pointeur))
127
	while (!feof ($pointeur))
128
		{
128
		{
Line 140... Line 140...
140
	}
140
	}
141
else	{
141
else	{
142
	echo "$l_error_open_file $bannedsite_file";
142
	echo "$l_error_open_file $bannedsite_file";
143
	}
143
	}
144
echo "> $l_ip_filtering";
144
echo "> $l_ip_filtering";
145
echo "</td></tr>";
-
 
146
?>
145
?>
-
 
146
</td></tr>
147
<tr><td>
147
<tr><td>
148
<input type='checkbox' name='chk-safe-search'> <?php echo "$l_safe_searching"?>
148
<input type='checkbox' name='chk-safesearch'
-
 
149
<?php
-
 
150
// verify "safesearch" filtering state
-
 
151
if (file_exists($urlregex_file))
-
 
152
	{
-
 
153
	$pointeur=fopen($urlregex_file,"r");
-
 
154
	while (!feof ($pointeur))
-
 
155
		{
-
 
156
		$ligne=fgets($pointeur, 4096);
-
 
157
		if ($ligne)
-
 
158
			{
-
 
159
			if (preg_match('/^\"\(\^http\:\/\/\[0\-9a\-z\]\+\\\.google/',$ligne, $r))
-
 
160
				{
-
 
161
				echo " checked";
-
 
162
				break;
-
 
163
				}
-
 
164
			}
-
 
165
		}
-
 
166
	fclose($pointeur);
-
 
167
	}
-
 
168
else	{
-
 
169
	echo "$l_error_open_file $urlregex_file";
-
 
170
	}
-
 
171
echo "> $l_safe_searching";
-
 
172
echo "<br>$l_safe_youtube";
-
 
173
?>
149
<br><?php echo "$l_safe_youtube"?><input type='text' name='Youtube-ID' size='30'> 
174
<input type='text' name='Youtube-ID' size='30'> 
150
<tr><td>
175
<tr><td>
151
<input type='submit' value='<?php echo "$l_record"?>'>
176
<input type='submit' value='<?php echo "$l_record"?>'>
152
</form> 
177
</form> 
153
</td></tr>
178
</td></tr>
154
</TABLE>
179
</TABLE>