aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBrian Evans <grknight@gentoo.org>2018-01-29 16:04:13 -0500
committerBrian Evans <grknight@gentoo.org>2018-01-29 16:05:35 -0500
commit3c56284f7fe1926f6bf6ebd97ec72805d94df1e4 (patch)
tree805a3fb4cfb14519c0bebc3f1863f4759e916a82 /docs/mirror/lib/_php_lib_geo_php.html
downloadbouncer-3c56284f7fe1926f6bf6ebd97ec72805d94df1e4.tar.gz
bouncer-3c56284f7fe1926f6bf6ebd97ec72805d94df1e4.tar.bz2
bouncer-3c56284f7fe1926f6bf6ebd97ec72805d94df1e4.zip
Import existing bouncer.g.o into gitv1.0-20181208-IMPORT
Diffstat (limited to 'docs/mirror/lib/_php_lib_geo_php.html')
-rw-r--r--docs/mirror/lib/_php_lib_geo_php.html204
1 files changed, 204 insertions, 0 deletions
diff --git a/docs/mirror/lib/_php_lib_geo_php.html b/docs/mirror/lib/_php_lib_geo_php.html
new file mode 100644
index 0000000..a441634
--- /dev/null
+++ b/docs/mirror/lib/_php_lib_geo_php.html
@@ -0,0 +1,204 @@
+<?xml version="1.0" encoding="iso-8859-1"?>
+<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
+ <html xmlns="http://www.w3.org/1999/xhtml">
+ <head>
+ <!-- template designed by Marco Von Ballmoos -->
+ <title>Docs for page geo.php</title>
+ <link rel="stylesheet" href="../../media/stylesheet.css" />
+ <meta http-equiv='Content-Type' content='text/html; charset=iso-8859-1'/>
+ </head>
+ <body>
+ <div class="page-body">
+<h2 class="file-name">/php/lib/geo.php</h2>
+
+<a name="sec-description"></a>
+<div class="info-box">
+ <div class="info-box-title">Description</div>
+ <div class="nav-bar">
+ <span class="disabled">Description</span> |
+ <a href="#sec-functions">Functions</a>
+ </div>
+ <div class="info-box-body">
+ <!-- ========== Info from phpDoc block ========= -->
+<p class="short-description">Functions for netgeo lookups.</p>
+
+ </div>
+</div>
+
+
+
+
+
+ <a name="sec-functions"></a>
+ <div class="info-box">
+ <div class="info-box-title">Functions</div>
+ <div class="nav-bar">
+ <a href="#sec-description">Description</a> |
+ <span class="disabled">Functions</span>
+ </div>
+ <div class="info-box-body">
+ <a name="functiongeo_get_coordinates" id="functiongeo_get_coordinates"><!-- --></a>
+<div class="evenrow">
+
+ <div>
+ <span class="method-title">geo_get_coordinates</span> (line <span class="line-number">45</span>)
+ </div>
+
+ <!-- ========== Info from phpDoc block ========= -->
+<p class="short-description">Get longitude and latitude of an IP.</p>
+ <ul class="tags">
+ <li><span class="field">return:</span> array containing results or false on failure</li>
+ </ul>
+
+ <div class="method-signature">
+ <span class="method-result">array|false</span>
+ <span class="method-name">
+ geo_get_coordinates
+ </span>
+ (<span class="var-type">string</span>&nbsp;<span class="var-name">$ip</span>)
+ </div>
+
+ <ul class="parameters">
+ <li>
+ <span class="var-type">string</span>
+ <span class="var-name">$ip</span><span class="var-description">: an IP address</span> </li>
+ </ul>
+
+
+</div>
+<a name="functiongeo_get_country" id="functiongeo_get_country"><!-- --></a>
+<div class="oddrow">
+
+ <div>
+ <span class="method-title">geo_get_country</span> (line <span class="line-number">65</span>)
+ </div>
+
+ <!-- ========== Info from phpDoc block ========= -->
+<p class="short-description">Get country of an IP.</p>
+ <ul class="tags">
+ <li><span class="field">return:</span> array containing results or false on failure</li>
+ </ul>
+
+ <div class="method-signature">
+ <span class="method-result">string|false</span>
+ <span class="method-name">
+ geo_get_country
+ </span>
+ (<span class="var-type">string</span>&nbsp;<span class="var-name">$ip</span>)
+ </div>
+
+ <ul class="parameters">
+ <li>
+ <span class="var-type">string</span>
+ <span class="var-name">$ip</span><span class="var-description">: an IP address</span> </li>
+ </ul>
+
+
+</div>
+<a name="functiongeo_get_distance" id="functiongeo_get_distance"><!-- --></a>
+<div class="evenrow">
+
+ <div>
+ <span class="method-title">geo_get_distance</span> (line <span class="line-number">16</span>)
+ </div>
+
+ <!-- ========== Info from phpDoc block ========= -->
+<p class="short-description">Calculate the distance between two geo points.</p>
+ <ul class="tags">
+ <li><span class="field">return:</span> rounded distance in _km_ between these points</li>
+ </ul>
+
+ <div class="method-signature">
+ <span class="method-result">int</span>
+ <span class="method-name">
+ geo_get_distance
+ </span>
+ (<span class="var-type">int</span>&nbsp;<span class="var-name">$lat1</span>, <span class="var-type">int</span>&nbsp;<span class="var-name">$lon1</span>, <span class="var-type">int</span>&nbsp;<span class="var-name">$lat2</span>, <span class="var-type">int</span>&nbsp;<span class="var-name">$lon2</span>)
+ </div>
+
+ <ul class="parameters">
+ <li>
+ <span class="var-type">int</span>
+ <span class="var-name">$lat1</span><span class="var-description">: latitude of first point</span> </li>
+ <li>
+ <span class="var-type">int</span>
+ <span class="var-name">$lon1</span><span class="var-description">: longitude of first point</span> </li>
+ <li>
+ <span class="var-type">int</span>
+ <span class="var-name">$lat2</span><span class="var-description">: latitude of second point</span> </li>
+ <li>
+ <span class="var-type">int</span>
+ <span class="var-name">$lon2</span><span class="var-description">: longitude of second point</span> </li>
+ </ul>
+
+
+</div>
+<a name="functiongeo_get_record" id="functiongeo_get_record"><!-- --></a>
+<div class="oddrow">
+
+ <div>
+ <span class="method-title">geo_get_record</span> (line <span class="line-number">55</span>)
+ </div>
+
+ <!-- ========== Info from phpDoc block ========= -->
+<p class="short-description">Get complete record based on IP.</p>
+ <ul class="tags">
+ <li><span class="field">return:</span> array containing results or false on failure</li>
+ </ul>
+
+ <div class="method-signature">
+ <span class="method-result">array|false</span>
+ <span class="method-name">
+ geo_get_record
+ </span>
+ (<span class="var-type">string</span>&nbsp;<span class="var-name">$ip</span>)
+ </div>
+
+ <ul class="parameters">
+ <li>
+ <span class="var-type">string</span>
+ <span class="var-name">$ip</span><span class="var-description">: an IP address</span> </li>
+ </ul>
+
+
+</div>
+<a name="functiongeo_query" id="functiongeo_query"><!-- --></a>
+<div class="evenrow">
+
+ <div>
+ <span class="method-title">geo_query</span> (line <span class="line-number">27</span>)
+ </div>
+
+ <!-- ========== Info from phpDoc block ========= -->
+<p class="short-description">Query NetGeo based on API and parse results.</p>
+ <ul class="tags">
+ <li><span class="field">return:</span> array containing results or false on failure</li>
+ </ul>
+
+ <div class="method-signature">
+ <span class="method-result">array|false</span>
+ <span class="method-name">
+ geo_query
+ </span>
+ (<span class="var-type">string</span>&nbsp;<span class="var-name">$ip</span>, [<span class="var-type">string</span>&nbsp;<span class="var-name">$method</span> = <span class="var-default">'getRecord'</span>])
+ </div>
+
+ <ul class="parameters">
+ <li>
+ <span class="var-type">string</span>
+ <span class="var-name">$ip</span><span class="var-description">: an IP address</span> </li>
+ <li>
+ <span class="var-type">string</span>
+ <span class="var-name">$method</span><span class="var-description">: lookup method, based on NetGeo API.</span> </li>
+ </ul>
+
+
+</div>
+ </div>
+ </div>
+
+ <p class="notes" id="credit">
+ Documentation generated on Mon, 8 Nov 2004 13:43:04 -0800 by <a href="http://www.phpdoc.org" target="_blank">phpDocumentor 1.3.0RC3</a>
+ </p>
+ </div></body>
+</html> \ No newline at end of file