Subversion Repositories ALCASAR

Compare Revisions

Ignore whitespace Rev 1874 → Rev 1875

/web/acc/admin/bl_filter.php
217,17 → 217,7
}
}
}
}
#update categories via rsync
$update_select = array();
$update_select[0] = "";
$update_select[1] = "";
 
if ( 0 == filesize( $update_file_cat ) ) $update_select[0] = "checked";
else $update_select[1] = "checked";
}
else { echo "$l_error_open_file $conf_file";}
if (isset($_POST['choix'])){ $choix=$_POST['choix']; } else { $choix=""; }
switch ($choix)
253,7 → 243,7
{
$line=str_replace('chk-','',$key)."\n";
fwrite($pointeur,$line);
if(trim($line) == 'malware' && $update_select[1] == "checked")
if(trim($line) == 'malware' && $_POST['update_cat'] == 1)
{
fputs($fichier, "malware rsync://ftp.ut-capitole.fr/blacklist/dest/malware\n");
}
421,7 → 411,13
echo "$l_error_open_file $bl_categories";
}
 
#update categories via rsync
$update_select = array();
$update_select[0] = "";
$update_select[1] = "";
 
if ( 0 == filesize( $update_file_cat ) ) $update_select[0] = "checked";
else $update_select[1] = "checked";
echo "</td></tr>";
echo "<tr><td valign='middle' align='left' colspan=10>";