diff --git a/reference/geoip/functions/geoip-asnum-by-name.xml b/reference/geoip/functions/geoip-asnum-by-name.xml new file mode 100644 index 0000000000..d585c605cb --- /dev/null +++ b/reference/geoip/functions/geoip-asnum-by-name.xml @@ -0,0 +1,94 @@ + + + + + geoip_asnum_by_name + Get the Autonomous System Numbers (ASN) + + + &reftitle.description; + + stringgeoip_asnum_by_name + stringhostname + + + + The geoip_asnum_by_name function will return the Autonomous + System Numbers (ASN) associated with an IP address. + + + + + &reftitle.parameters; + + + + hostname + + + The hostname or IP address. + + + + + + + + &reftitle.returnvalues; + + Returns the ASN on success, or &false; if the address + cannot be found in the database. + + + + + &reftitle.examples; + + + A <function>geoip_asnum_by_name</function> example + + This will output the ASN of the host www.example.com. + + + +]]> + + &example.outputs; + + + + + + + + + + diff --git a/reference/geoip/functions/geoip-domain-by-name.xml b/reference/geoip/functions/geoip-domain-by-name.xml new file mode 100644 index 0000000000..2ea5f18a33 --- /dev/null +++ b/reference/geoip/functions/geoip-domain-by-name.xml @@ -0,0 +1,100 @@ + + + + + geoip_domain_by_name + Get the second level domain name + + + &reftitle.description; + + stringgeoip_domain_by_name + stringhostname + + + + The geoip_domain_by_name function will return the second level + domain names associated with a hostname or an IP address. + + + This function is currently only available to users who have bought a commercial + GeoIP Domain Edition. A warning will be issued if the proper database cannot be + located. + + + + + &reftitle.parameters; + + + + hostname + + + The hostname or IP address. + + + + + + + + &reftitle.returnvalues; + + Returns the domain name on success, or &false; if the address + cannot be found in the database. + + + + + &reftitle.examples; + + + A <function>geoip_domain_by_name</function> example + + This will output the domain associated with IP 61.106.139.1. + + + +]]> + + &example.outputs; + + + + + + + + + + diff --git a/reference/geoip/functions/geoip-netspeedcell-by-name.xml b/reference/geoip/functions/geoip-netspeedcell-by-name.xml new file mode 100644 index 0000000000..1588d9ce03 --- /dev/null +++ b/reference/geoip/functions/geoip-netspeedcell-by-name.xml @@ -0,0 +1,129 @@ + + + + + geoip_netspeedcell_by_name + Get the Internet connection speed + + + &reftitle.description; + + stringgeoip_netspeedcell_by_name + stringhostname + + + + The geoip_netspeedcell_by_name function will return the Internet + connection type and speed corresponding to a hostname or an IP address. + + + This function is only available if using GeoIP Library version 1.4.8 or newer. + + + This function is currently only available to users who have bought a commercial + GeoIP NetSpeedCell Edition. A warning will be issued if the proper database cannot be + located. + + + The return value is a string, common values are: + + + + + + Cable/DSL + + + + + Dialup + + + + + Cellular + + + + + Corporate + + + + + + + + &reftitle.parameters; + + + + hostname + + + The hostname or IP address. + + + + + + + + &reftitle.returnvalues; + + Returns the connection speed on success, or &false; if the address + cannot be found in the database. + + + + + &reftitle.examples; + + + A <function>geoip_netspeedcell_by_name</function> example + + This will output the connection speed of the host example.com. + + + +]]> + + &example.outputs; + + + + + + + + + + diff --git a/reference/geoip/functions/geoip-setup-custom-directory.xml b/reference/geoip/functions/geoip-setup-custom-directory.xml new file mode 100644 index 0000000000..6b99ccc8d1 --- /dev/null +++ b/reference/geoip/functions/geoip-setup-custom-directory.xml @@ -0,0 +1,94 @@ + + + + + geoip_setup_custom_directory + Set a custom directory for the GeoIP database. + + + &reftitle.description; + + voidgeoip_setup_custom_directory + stringpath + + + + The geoip_setup_custom_directory function will change the + default directory of the GeoIP database. This is equivalent to changing + geoip.custom_directory. + + + + + &reftitle.parameters; + + + + path + + + The full path of where the GeoIP database is on disk. + + + + + + + + &reftitle.returnvalues; + + &return.void; + + + + + &reftitle.examples; + + + A <function>geoip_setup_custom_directory</function> example + + This will change the GeoIP default database path. + + + +]]> + + &example.outputs; + + + + + + + + + +