Subversion Repositories ALCASAR

Compare Revisions

Ignore whitespace Rev 1903 → Rev 1904

/web/acc/admin/bl_categories_help.php
90,7 → 90,7
}
else
{
if($categorie!='ossi-tor_node.txt')
if($categorie!='ossi-tor_node_ip')
{
$nb_domains = $l_error_open_file." ".$bl_categorie_domain_file;
}
229,7 → 229,7
{
$filtre = $liste == "bl" ? $bl_categorie_domain_file : $wl_categorie_domain_file;
}
if($categorie!='ossi-tor_node.txt')
if($categorie!='ossi-tor_node_ip')
$filtre_domain = $liste == "bl" ? $bl_categorie_domain_file : $wl_categorie_domain_file;
if(!isset($ossi))
$filtre_url = $liste == "bl" ? $bl_categorie_url_file : "";
245,7 → 245,7
}
else
{
if($categorie=='ossi-tor_node.txt')
if($categorie=='ossi-tor_node_ip')
{
echo $l_tor_node;
echo "$l_nb_ip <b><a href='?liste=$liste&cat=$categorie&filtre=$filtre_ip&titre=ip&nb_domains=$nb_domains&nb_ip=$nb_ip&ossi=yes'>$nb_ip</a></b><br>";
/web/acc/admin/bl_filter.php
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>";