23,7 → 23,7 |
//# reconstruction des ip |
$list = explode("\n", form_filter($form_content)); |
$new_list = ""; |
foreach($list as &$value) |
foreach ($list as &$value) |
{ |
if(preg_match('/([0-9]{1,3}.){3}[0-9]{1,3}/', $value)) |
{ |
330,7 → 330,7 |
exec ("sudo /usr/local/bin/alcasar-url_filter_bl.sh -safesearch_$bl_safesearch -pureip_$bl_pureip"); |
break; |
case 'MAJ_ossi_file' : |
foreach($_POST as $fichier => $value) |
foreach ($_POST as $fichier => $value) |
{ |
if($fichier != "choix" && $fichier != "update_cat") |
{ |
365,7 → 365,7 |
else |
{ |
echo "<p>".$l_update_failed.":</p>"; |
foreach($out as $line) |
foreach ($out as $line) |
{ |
echo "<p>".$line."</p>"; |
} |
382,7 → 382,7 |
$f = fopen($update_file_ossi_cat, 'w'); |
fclose($f); |
|
foreach($_POST as $fichier => $value) |
foreach ($_POST as $fichier => $value) |
{ |
// General BL |
if ($fichier == 'update_cat' && $value == 1) |
474,7 → 474,7 |
{ |
$bl_files = file($bl_categories); |
$bl_files = preg_grep("/ossi-/", $bl_files, 1); // don't display ossi custom categories |
foreach($bl_files as $fichier => $value) |
foreach ($bl_files as $fichier => $value) |
{ |
if ($cols == 1) { echo "<tr>";} |
$categorie=trim(basename($value)); |
538,7 → 538,7 |
//list OSSI custom categories |
$fichiersbl = array_diff(scandir($dir_blacklist), array('..','.','ossi-bl','ossi-wl')); |
$fichiersbl = preg_grep("/^ossi-bl-/",$fichiersbl); |
foreach($fichiersbl as $fichier => $value) |
foreach ($fichiersbl as $fichier => $value) |
{ |
echo "<tr><td><center><a href='bl_categories_help.php?liste=bl&cat=$value&filtre=domain' target='cat_help' onclick=\"window.open('bl_categories_help','cat_help','width=600,height=450,toolbar=no,scrollbars=yes,resizable=yes')\" title='categories help page'>".substr($value,8)."</a></center></td><td><center>".exec("wc -l $dir_bl_ip$value | cut -d\" \" -f1")."</center></td><td><center>".exec("wc -l $dir_bl_domain_names$value.conf | cut -d\" \" -f1")."</center></td><td><center><input type='submit' name='$value'"; |
if (file_exists ($dir_bl_domain_names_enabled.$value)) echo " value='$l_disable'>"; else echo " value='$l_enable'>"; |
584,7 → 584,7 |
echo "<input type='radio' name='update_cat' value=1 ".$update_select[1]." >".$l_enable; |
echo "</td>"; |
// Display update checkbox for each updateable ossi-bl |
foreach($updateable_ossi_bls as $value) |
foreach ($updateable_ossi_bls as $value) |
{ |
//check if autoupdate is enabled |
$update_ossi_select = ["", ""]; |