You are here

private static function HttpblResponse::honeypot_ipdata in http:BL 8

1 call to HttpblResponse::honeypot_ipdata()
HttpblResponse::buildHttpblResponse in src/HttpblResponse.php
Build a new HttpblResponse based on evaluation status.

File

src/HttpblResponse.php, line 139

Class

HttpblResponse
HttpblResponse builds the final response to request.

Namespace

Drupal\httpbl

Code

private static function honeypot_ipdata($ip, $anchor = TRUE) {
  if ($anchor) {
    return '<a href="http://www.projecthoneypot.org/search_ip.php?ip=' . $ip . '">IP data</a>';
  }
  else {
    return 'http://www.projecthoneypot.org/search_ip.php?ip=' . $ip;
  }
}