Index
$#! · 0-9 · A · B · C · D · E · F · G · H · I · J · K · L · M · N · O · P · Q · R · S · T · U · V · W · X · Y · Z
C
 Components
D
 Description
E
 Example WhoIs-Query
F
 Functions
G
 GeoIP for Website Baker v2_7
 GeoIP-Functions
 GeoIP-Functions for phpwhois
 GeoIP-Functions from Maxmind's original include-file
 geoip.inc
 geoip_best_ip
 geoip_close_db
 geoip_country_code_by_addr
 geoip_country_code_by_addr_
 geoip_country_name_by_addr
 geoip_country_name_by_addr_
 GEOIP_DATABASE_LOADED
 geoip_fetch_hostname
 geoip_flag_html
 geoip_flag_link
 geoip_functions.php
 geoip_in_bogons_list
 geoip_in_drop_list
 geoip_is_proxy
 geoip_list_hostname
 geoip_list_ip
 geoip_open_db
 geoip_whois_link
 geoip_whois_link_
H
 History
 How to use the GeoIP-module for your own Website Baker Projects
I
 If GeoIP-module is optional:
 If GeoIP-Module is required:
 Introduction
L
 License(Documentation)
 License(Flags)
 License(GeoIP-Module)
 License(GeoLite Country)
 License(phpWhoIs)
 Licenses
P
 phpwhois_functions.php
Q
 Quick and Dirty way of usage
U
 Usage of phpwhois
W
 WHOIS_LOADED
List of Components
This file holds all extended functions which belongs to IP and GEOIP handling for use in Website Baker modules.
A typically WhoIs-Query may look like this
function geoip_best_ip()
Fetches best matching IP for actual connection.
function geoip_close_db($gi)
Closes GeoIP-database after use.
function geoip_country_code_by_addr($gi,
$addr)
Fetches country-code
Fetches country-code by ip.
function geoip_country_name_by_addr($gi,
$addr)
Fetches country-name
Fetches country-name by ip.
The Constant GEOIP_DATABASE_LOADED will be defined when the GeoIP-Database was opened successfully.
function geoip_fetch_hostname($ip)
Fetches hostname for given IP.
function geoip_flag_html($gi,
$src)
Returns a piece of HTML-code to display a flag.
function geoip_flag_link($gi,
$src)
Returns an absolute URL to a flag-image.
function geoip_in_bogons_list($ip)
Checks if the given IP is in an unallocated or private address range.
function geoip_in_drop_list($ip)
Checks if the given IP is in spamhaus' drop-list.
function geoip_is_proxy()
Checks if the actual user ( $_SERVER['REMOTE_ADDR'] ) is behind a proxy.
function geoip_list_hostname($ip)
Fetches and checks hostname for a given IP.
function geoip_list_ip()
Fetches user-ip and proxy-ip, if available.
function geoip_open_db($use_cache = FALSE)
Opens GeoIP-database for use.
function geoip_whois_link($ip_addr)
Create a clickable link for a WhoIs-Query.
Create a clickable link for a WhoIs-Query.
You have to include (per require_once() ) this file to use the geoip-module.
Example on how to load the GeoIP-Module, in case its optional.
Example on how to load the GeoIP-Module, in case its required.
GeoIP Internal Documentation is licensed under the Creative Commons Attribution ShareAlike License, v.3.0 Germany.
These flag icons are available for free use for any purpose with no requirement for attribution.
GeoIP is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version.
Copyright © 2007 MaxMind LLC.
copyright 1999-2009 easyDNS Technologies Inc.
to generate a clickable link which will open a popup-window use this
You have to include (per require_once() ) this file to use the WhoIs-Functions.
The Constant WHOIS_LOADED will be defined when phpwhois_functions.php was loaded successfully.
Close