1) { print "Houston, we have a problem!"; } else { $row = mysqli_fetch_array($result); list($count, $expiry_date) = $row; $rbled = 1; } $listed = array(); $rbls = array ("rbl.dont-spam.us", "cbl.abuseat.org", "dnsbl.sorbs.net", "spam.dnsbl.sorbs.net", "accredit.habeas.com", "plus.bondedsender.org", "iadb.isipp.com", "zen.spamhaus.org", "bl.spamcop.net", "b.barracudacentral.org", "psbl.surriel.com"); for ($i=0; $i Check RBL listing \n
\"Holtain
\n

Check RBL listing

"; if ($ip) { if ($rbled) { $otherrbls = "This ip is also listed in-"; if ($count == 1) { $violations = "violation"; } else { $violations = "violations"; } if (strtotime($expiry_date) < strtotime(date("d M Y"))) { print "

$ip was listed in rbl.holtain.net following $count $violations. The listing expired on $expiry_date\n"; } else { print "

$ip is listed in rbl.holtain.net following $count $violations. The listing will expire on $expiry_date\n"; print "

If you wish to have this IP address delisted prior to the expiry date, the owner of the IP address (as verified through the records of the appropriate regional registry- ARIN, RIPE, APNIC, AFRINIC, etc.) needs to contact the registered technical contact for holtain.net detailing what measures have been taken to prevent the future flow of spam."; } $query = "SELECT DATE_FORMAT(date, '%d %b %Y'), honey, address FROM violations WHERE ip_addr = INET_ATON('$ip') ORDER BY date ASC"; $result = querydb(); if (mysqli_num_rows($result) == 0) { print "Houston, we have a problem!"; } else { print ""; while($row = mysqli_fetch_array($result)) { list($logdate, $type, $address) = $row; if ($type == 1) { $txttype = "Honeypot"; print ""; } else { $txttype = "User"; $imagename = "images/".encdec($address, 'e').".png"; clearstatcache(); if (!file_exists($imagename)) { $font = 4; $im = imagecreate(imagefontwidth($font)*strlen($address), imagefontheight($font)); $black = imagecolorallocate($im, 0x00, 0x00, 0x00); $white = imagecolorallocate($im, 0xFF, 0xFF, 0xFF); imagefill($im,0,0,$white); imagestring($im, $font,0,0,$address,$black); // header("Content-type: image/png"); imagepng($im, $imagename); imagedestroy($im); } print ""; } } print "
Date loggedAddress typeAddress
$logdate$txttype$address
$logdate$txttype
"; } } else { $otherrbls = "However $ip is listed in-"; print "

$ip is not listed in rbl.holtain.net\n"; } if (!empty($listed)) { print "


\n"; print "

$otherrbls
"; for ($i=0; $i"; } print "

These lists are not administered by holtain.net and you should contact the relevant list owners with any matters concerning the listing of this IP on these lists."; } } print "


IP address:

Registered in Wales No. 646312 "; closedb($conn); ?>