You are here

function visitors_get_ip_str in Visitors 7.2

Same name and namespace in other branches
  1. 8 visitors.exit.inc \visitors_get_ip_str()
  2. 7 visitors.exit.inc \visitors_get_ip_str()
  3. 7.0 visitors.exit.inc \visitors_get_ip_str()

Converts a string containing an visitors (IPv4) Internet Protocol dotted address into a proper address.

Return value

string

1 call to visitors_get_ip_str()
visitors_exit in ./visitors.exit.inc
Implements hook_exit().

File

./visitors.exit.inc, line 61
Implements hook_exit().

Code

function visitors_get_ip_str() {
  return sprintf("%u", ip2long(visitors_get_ip()));
}