Subversion Repositories ALCASAR

Compare Revisions

Ignore whitespace Rev 878 → Rev 879

/web/acc/admin/dns_filter2.php
117,11 → 117,34
<TABLE width="100%" border=1 cellspacing=0 cellpadding=1>
<FORM action='dns_filter.php' method='POST'>
<input type='hidden' name='choix' value='Specific_filtering'>
<tr><td>
<input type='checkbox' name='chk-ip'
<?php
//on vérifie l'état du filtrage "pureip"
if (file_exists($bannedsite_file))
{
$pointeur=fopen($bannedsite_file,"r");
while (!feof ($pointeur))
{
$ligne=fgets($pointeur, 4096);
if ($ligne)
{
if (preg_match('/^\*ip$/',$ligne, $r))
{
echo " checked";
break;
}
}
}
fclose($pointeur);
}
else {
echo "$l_error_open_file $bannedsite_file";
}
echo "> $l_ip_filtering";
echo "</td></tr>";
?>
<tr><td>
<input type='checkbox' name='chk-ip'> <?php echo "$l_ip_filtering"?>
<tr><td>
<input type='checkbox' name='chk-safe-search'> <?php echo "$l_safe_searching"?>
<br><?php echo "$l_safe_youtube"?><input type='text' name='Youtube-ID' size='30'>
<tr><td>
/web/acc/admin/dns_filter.php
92,6 → 92,8
$bl_categories_enabled="/usr/local/etc/alcasar-bl-categories-enabled";
$dir_blacklist="/etc/dansguardian/lists/blacklist/";
$conf_file="/usr/local/etc/alcasar.conf";
$urlregex_file="/etc/dansguardian/lists/urlregexplist";
$bannedsite_file="/etc/dansguardian/lists/bannedsitelist";
if (isset($_POST['choix'])){ $choix=$_POST['choix']; } else { $choix=""; }
switch ($choix)
{
/web/acc/admin/net_filter.php
96,10 → 96,8
$conf[$tmp[0]] = $tmp[1];
}
}
}else{
exit("Erreur d'ouverture du fichier ".CONF_FILE);
fclose($ouvre);
}
fclose($ouvre);
 
if (isset($_POST['choix'])){$choix=$_POST['choix'];} else {$choix="";}
switch ($choix)