306,7 → 306,7 |
if($action == $l_disable) //disable |
{ |
exec("mv -f $upload_dir_ip$fichier $dir_ip$fichier"); |
if($fichier!='ossi-tor_node.txt') |
if($fichier!='ossi-tor_node_ip') |
exec("mv -f $upload_dir_domain_names$fichier $dir_domain_names$fichier"); |
exec("sudo /usr/local/bin/alcasar-bl.sh --reload"); |
} |
313,7 → 313,7 |
if($action == $l_enable) //enable |
{ |
exec("mv -f $dir_ip$fichier $upload_dir_ip$fichier"); |
if($fichier!='ossi-tor_node.txt') |
if($fichier!='ossi-tor_node_ip') |
exec("mv -f $dir_domain_names$fichier $upload_dir_domain_names$fichier"); |
exec ("sudo /usr/local/bin/alcasar-bl.sh --reload"); |
} |
502,7 → 502,7 |
$fichiersIp = preg_grep("/^ossi-/",$fichiersIp); |
foreach($fichiersIp as $fichier => $value) |
{ |
if($value=='ossi-tor_node.txt') |
if($value=='ossi-tor_node_ip') |
echo "<tr><td><center><a href='bl_categories_help.php?liste=bl&cat=$value&ossi=yes&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'>".exec("sed 's/^.....//g' <<< $value")."</a></center></td><td><center>".exec("wc -l $upload_dir_ip$value | awk '{print $1}'")."</center></td><td><center>".exec("wc -l $upload_dir_domain_names$value | awk '{print $1}'")."</center></td><td><center><input type='submit' name='$value' value='$l_disable'></center></td><td><center><input type='submit' name='$value' value='$l_remove' disabled></center></td></tr>"; |
else |
echo "<tr><td><center><a href='bl_categories_help.php?liste=bl&cat=$value&ossi=yes&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'>".exec("sed 's/^.....//g' <<< $value")."</a></center></td><td><center>".exec("wc -l $upload_dir_ip$value | awk '{print $1}'")."</center></td><td><center>".exec("wc -l $upload_dir_domain_names$value | awk '{print $1}'")."</center></td><td><center><input type='submit' name='$value' value='$l_disable'></center></td><td><center><input type='submit' name='$value' value='$l_remove'></center></td></tr>"; |
513,7 → 513,7 |
$fichiersIp = preg_grep("/^ossi-/",$fichiersIp); |
foreach($fichiersIp as $fichier => $value) |
{ |
if($value=='ossi-tor_node.txt') |
if($value=='ossi-tor_node_ip') |
echo "<tr><td bgcolor='BEBEBE'><center><a href='bl_categories_help.php?liste=bl&cat=$value&ossi=yes&filtre=domain&state=disable' 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'>".exec("sed 's/^.....//g' <<< $value")."</a></center></td><td bgcolor='BEBEBE'><center>".exec("wc -l $dir_ip$value | awk '{print $1}'")."</center></td><td bgcolor='BEBEBE'><center>".exec("wc -l $dir_domain_names$value | awk '{print $1}'")."</center></td><td bgcolor='BEBEBE'><center><input type='submit' name='$value' value='$l_enable'></center></td><td bgcolor='BEBEBE'><center><input type='submit' name='$value' value='$l_remove' disabled></center></td></tr>"; |
else |
echo "<tr><td bgcolor='BEBEBE'><center><a href='bl_categories_help.php?liste=bl&cat=$value&ossi=yes&filtre=domain&state=disable' 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'>".exec("sed 's/^.....//g' <<< $value")."</a></center></td><td bgcolor='BEBEBE'><center>".exec("wc -l $dir_ip$value | awk '{print $1}'")."</center></td><td bgcolor='BEBEBE'><center>".exec("wc -l $dir_domain_names$value | awk '{print $1}'")."</center></td><td bgcolor='BEBEBE'><center><input type='submit' name='$value' value='$l_enable'></center></td><td bgcolor='BEBEBE'><center><input type='submit' name='$value' value='$l_remove'></center></td></tr>"; |