Subversion Repositories ALCASAR

Rev

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

Rev 878 Rev 879
Line 115... Line 115...
115
	<tr bgcolor="#FFCC66"><td><img src="/images/pix.gif" width="1" height="2"></td></tr>
115
	<tr bgcolor="#FFCC66"><td><img src="/images/pix.gif" width="1" height="2"></td></tr>
116
</table>
116
</table>
117
<TABLE width="100%" border=1 cellspacing=0 cellpadding=1>
117
<TABLE width="100%" border=1 cellspacing=0 cellpadding=1>
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>
-
 
121
<input type='checkbox' name='chk-ip'
120
<?php
122
<?php
-
 
123
//on vérifie l'état du filtrage "pureip"
-
 
124
if (file_exists($bannedsite_file))
-
 
125
	{
-
 
126
	$pointeur=fopen($bannedsite_file,"r");
-
 
127
	while (!feof ($pointeur))
-
 
128
		{
-
 
129
		$ligne=fgets($pointeur, 4096);
-
 
130
		if ($ligne)
-
 
131
			{
-
 
132
			if (preg_match('/^\*ip$/',$ligne, $r)) 
-
 
133
				{
-
 
134
				echo " checked";
-
 
135
				break;
-
 
136
				}
-
 
137
			}
-
 
138
		}
-
 
139
	fclose($pointeur);
-
 
140
	}
-
 
141
else	{
-
 
142
	echo "$l_error_open_file $bannedsite_file";
-
 
143
	}
-
 
144
echo "> $l_ip_filtering";
-
 
145
echo "</td></tr>";
121
?>
146
?>
122
<tr><td>
147
<tr><td>
123
<input type='checkbox' name='chk-ip'> <?php echo "$l_ip_filtering"?>
-
 
124
<tr><td>
-
 
125
<input type='checkbox' name='chk-safe-search'> <?php echo "$l_safe_searching"?>
148
<input type='checkbox' name='chk-safe-search'> <?php echo "$l_safe_searching"?>
126
<br><?php echo "$l_safe_youtube"?><input type='text' name='Youtube-ID' size='30'> 
149
<br><?php echo "$l_safe_youtube"?><input type='text' name='Youtube-ID' size='30'> 
127
<tr><td>
150
<tr><td>
128
<input type='submit' value='<?php echo "$l_record"?>'>
151
<input type='submit' value='<?php echo "$l_record"?>'>
129
</form> 
152
</form>