Service VERIFICATION DANS LES BLACKLISTS
'Mon checkbox', 'checked'=>'oui')); echo checkbox('checkbox2', array('nom'=>'')); */ function checkbox($value, $param=''){ // image du checkbox $image_checked = 'Selectionne'; // image du checkbox coché $image_non_checked = 'Non'; // si dans les paramètre on a renseigné que le checkbox était coché if(isset($param['checked']) && ($param['checked']!='')) { $checked = 'checked'; $monimage = $image_checked; }else{ // si le checkbox n est pas coché $checked = ''; $monimage = $image_non_checked; } // si dans les paramètre on a renseigné la valeur if(isset($param['valeur'])) { $valeur = $param['valeur']; //** $monimage = $image_checked; } $retour = ''; // notre checkbox // lien sur le clique du checkbox ou de l image ou du texte $retour .= ''; // on affiche le nom ou l'image renseigné $retour .= '
'; if(isset($param['nom'])){ $retour_fin = '
'.$param['nom'].'
'; }else{ $retour_fin =''; } return $retour.$monimage.$retour_fin; } //=========================================================================================================// $req_blacklistes = " && xdnsbl NOT LIKE '%blackhole%' && xdnsbl NOT LIKE '%dnsbl%' && xdnsbl NOT LIKE '%mailpolice%' && xdnsbl NOT LIKE 'bl.%' && xdnsbl NOT LIKE 'rbl.%' "; $req_xdnsbl = MYSQL_QUERY("SELECT * FROM blacklist_dnsbl where valid = '1' $req_blacklistes order by nom ASC "); $res_xdnsbl = MYSQL_NUM_ROWS($req_xdnsbl); $req_xdnsblb = MYSQL_QUERY("SELECT * FROM blacklist_dnsbl where valid = '1' && xdnsbl LIKE '%blackholes%' order by nom ASC "); $res_xdnsblb = MYSQL_NUM_ROWS($req_xdnsblb); $req_xdnsbld = MYSQL_QUERY("SELECT * FROM blacklist_dnsbl where valid = '1' && xdnsbl LIKE '%dnsbl%' order by nom ASC "); $res_xdnsbld = MYSQL_NUM_ROWS($req_xdnsbld); $req_xdnsblm = MYSQL_QUERY("SELECT * FROM blacklist_dnsbl where valid = '1' && xdnsbl LIKE '%mailpolice%' order by nom ASC "); $res_xdnsblm = MYSQL_NUM_ROWS($req_xdnsblm); $req_xbl = MYSQL_QUERY("SELECT * FROM blacklist_dnsbl where valid = '1' && xdnsbl LIKE 'bl.%' order by nom ASC "); $res_xbl = MYSQL_NUM_ROWS($req_xbl); $req_xrbl = MYSQL_QUERY("SELECT * FROM blacklist_dnsbl where valid = '1' && xdnsbl LIKE 'rbl.%' order by nom ASC "); $res_xrbl = MYSQL_NUM_ROWS($req_xrbl); //=========================================================================================================// echo ""; echo ""; echo ""; echo ""; echo ""; echo ""; echo ""; echo "
Vérifier votre domaine dans les ".$res_xdnsbl." blacklists
 
"; echo ""; echo ""; /* echo ""; echo ""; echo ""; echo ""; echo ""; */ echo "
Domaine ou adresse ip
".checkbox('xxdnsbl', array('nom'=>'Inclure les blacklists DNSBL ('.$res_xdnsbld.')', 'checked'=>'', 'valeur'=>'1'))."
".checkbox('xblackholes', array('nom'=>'Inclure les blacklists Blackholes ('.$res_xdnsblb.')', 'checked'=>'', 'valeur'=>'1'))."
".checkbox('xmailpolice', array('nom'=>'Inclure les blacklists Mailpolice ('.$res_xdnsblm.')', 'checked'=>'', 'valeur'=>'1'))."
".checkbox('xbl', array('nom'=>'Inclure les blacklists BL ('.$res_xbl.')', 'checked'=>'', 'valeur'=>'1'))."
".checkbox('xrbl', array('nom'=>'Inclure les blacklists RBL ('.$res_xrbl.')', 'checked'=>'', 'valeur'=>'1'))."
"; echo "
"; ?>