phpwhois_functions.php | |
Description | This file holds all extended functions which belongs to WhoIs handling. |
GeoIP-Functions | |
geoip_whois_link | Create a clickable link for a WhoIs-Query. |
This file holds all extended functions which belongs to WhoIs handling.
There is no API, yet. See phpwhois/README on how to use it.
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>'
Create a clickable link for a WhoIs-Query.
function geoip_whois_link( $ip_addr )