You are here

function _get_ip_address_from_comment in CloudFlare 6

Same name and namespace in other branches
  1. 7 cloudflare.module \_get_ip_address_from_comment()

Lookup the hostname/IP Address of the comment using the comment id.

2 calls to _get_ip_address_from_comment()
_cloudflare_ban_comment in ./cloudflare.module
_cloudflare_whitelist_comment in ./cloudflare.module

File

./cloudflare.module, line 474

Code

function _get_ip_address_from_comment($cid) {
  $comment = db_fetch_object(db_query('SELECT hostname FROM {comments} WHERE cid = %d', $cid));
  return $comment->hostname;
}