phpwhois_functions.php

Summary
phpwhois_functions.php
DescriptionThis file holds all extended functions which belongs to WhoIs handling.
GeoIP-Functions
geoip_whois_linkCreate a clickable link for a WhoIs-Query.

Description

This file holds all extended functions which belongs to WhoIs handling.

There is no API, yet.  See phpwhois/README on how to use it.

Quick and Dirty way of usage

to generate a clickable link use this

if(file_exists(WB_PATH.'/modules/geoip/phpwhois_functions.php')) {
  require_once(WB_PATH.'/modules/geoip/phpwhois_functions.php');
}
...
if(defined('WHOIS_LOADED')) {
  $whois_link = geoip_whois_link($ip_addr);
  echo $whois_link;
}

The generated link will open a plain popup window to display the whois-data.

<a href="http://www.example.org/modules/geoip/phpwhois_popup.php?IP=200.10.40.1" onclick="return geoip_popup(this.href);" title="WhoIsQuery" target="_blank">200.10.40.1</a>'

GeoIP-Functions

geoip_whois_link

function geoip_whois_link($ip_addr)

Create a clickable link for a WhoIs-Query.

Prototype

string geoip_whois_link( string $ip_addr )

Parameters

ip_addr(string) A IP-Address.

Returns

A string which holds a clickable link to perform a WhoIs-Query.

function geoip_whois_link($ip_addr)
Create a clickable link for a WhoIs-Query.
Close