forked from moodle/moodle
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
MDL-19874 updated geoip to 1.80 and fixed iplookup regressions
- Loading branch information
skodak
committed
Jul 19, 2009
1 parent
d5645d8
commit 48fb4cd
Showing
7 changed files
with
4,434 additions
and
4,055 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,41 @@ | ||
// This file is part of Moodle - http://moodle.org/ | ||
// | ||
// Moodle 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. | ||
// | ||
// Moodle is distributed in the hope that it will be useful, | ||
// but WITHOUT ANY WARRANTY; without even the implied warranty of | ||
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | ||
// GNU General Public License for more details. | ||
// | ||
// You should have received a copy of the GNU General Public License | ||
// along with Moodle. If not, see <http://www.gnu.org/licenses/>. | ||
|
||
/** | ||
* This script serves draft files of current user | ||
* | ||
* @package moodlecore | ||
* @subpackage iplookup | ||
* @copyright 2008 Petr Skoda (http://skodak.org) | ||
* @license http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later | ||
*/ | ||
|
||
function iplookup_load(latitude, longitude) { | ||
if (GBrowserIsCompatible()) { | ||
var map = new GMap2(document.getElementById("map")); | ||
map.addControl(new GSmallMapControl()); | ||
map.addControl(new GMapTypeControl()); | ||
var point = new GLatLng(latitude, longitude); | ||
map.setCenter(point, 4); | ||
map.addOverlay(new GMarker(point)); | ||
map.setMapType(G_HYBRID_MAP); | ||
} | ||
} | ||
|
||
function iplookup_unload() { | ||
if (GBrowserIsCompatible()) { | ||
GUnload(); | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,44 +1,61 @@ | ||
* Fix bug where PHP API didn't work with new edition of GeoIP ISP | ||
|
||
1.6 2007-1-10 | ||
* Added AX/Aland Islands, GG/Guernsey, IM/Isle of Man, JE/Jersey (ISO-3166-1 changes) | ||
* Replaced CS/Serbia and Montenegro with RS/Serbia, removed ZR/Zaire, added ME/Montenegro | ||
* geoip_country_(code|name)_by_addr now work against Geo(IP|Lite) City (Frank Mather) | ||
* Added code to lookup zoneinfo timezone given country and region (Frank Mather) | ||
* TP/East Timor changed to TL/Timor-Leste, reflecting changes in ISO-3166 | ||
|
||
1.5 2005-11-1 | ||
* Added Shared Memory support for GeoIP City (Frank Mather) | ||
* Replaced Yugoslavia with Serbia and Montenegro | ||
* Removed global declaration for $GEOIP_COUNTRY_CODE_TO_NUMBER, $GEOIP_COUNTRY_CODES, | ||
and $GEOIP_COUNTRY_CODES3 | ||
|
||
1.4 2005-01-13 Andrew Hill, Awarez Ltd. (http://www.awarez.net) | ||
1.8 2009-04-02 | ||
* Update FIPS codes 20090401 ( Boris Zentner ) | ||
* Fixed spelling of Kazakhstan, was Kazakstan | ||
* Fix TN FIPS codes and add two new TH79 and TH80 ( Boris Zentner ) | ||
* Fix geoip_country_code_by_addr when used with a city database for unknown or private records ( cpw ) | ||
* Update timezone.php | ||
* Sync geoipregionvars.php with fips codes from Jan, 14th 2009 ( Boris Zentner ) | ||
* use metro_code in sample_city.php ( Boris Zentner ) | ||
* replace the depreciated dma_code field with metro_code ( Boris Zentner ) | ||
* remove wrong but unreferenced Singapur SG fips regions codes ( Boris Zentner ) | ||
* update regions ( geoipregionvars.php ) ( Boris Zentner ) | ||
* Die when the database file is not found or readable ( Boris Zentner ) | ||
|
||
1.7 2008-1-8 | ||
* Added BL/Saint Barthelemy, MF/Saint Martin (ISO-3166-1 additions) | ||
* fixed bug with newlines in Country Name | ||
* replaced $s_array[size] with $s_array['size'] (Daniel Horchner) | ||
* Fix bug where PHP API didn't work with new edition of GeoIP ISP | ||
|
||
1.6 2007-1-10 | ||
* Added AX/Aland Islands, GG/Guernsey, IM/Isle of Man, JE/Jersey (ISO-3166-1 changes) | ||
* Replaced CS/Serbia and Montenegro with RS/Serbia, removed ZR/Zaire, added ME/Montenegro | ||
* geoip_country_(code|name)_by_addr now work against Geo(IP|Lite) City (Frank Mather) | ||
* Added code to lookup zoneinfo timezone given country and region (Frank Mather) | ||
* TP/East Timor changed to TL/Timor-Leste, reflecting changes in ISO-3166 | ||
|
||
1.5 2005-11-1 | ||
* Added Shared Memory support for GeoIP City (Frank Mather) | ||
* Replaced Yugoslavia with Serbia and Montenegro | ||
* Removed global declaration for $GEOIP_COUNTRY_CODE_TO_NUMBER, $GEOIP_COUNTRY_CODES, | ||
and $GEOIP_COUNTRY_CODES3 | ||
|
||
1.4 2005-01-13 Andrew Hill, Awarez Ltd. (http://www.awarez.net) | ||
* Formatted file according to PEAR library standards. | ||
* Moved $GEOIP_COUNTRY_CODE_TO_NUMBER, $GEOIP_COUNTRY_CODES, | ||
* $GEOIP_COUNTRY_CODES3 and $GEOIP_COUNTRY_NAMES into the | ||
* GeoIP class, so that library will still work even when | ||
* not included in the $GLOBAL context. | ||
|
||
* Updated geoip_country_code_by_addr to work with PHP5 (Eric of Host Ultra) | ||
* Replaced bit operators (| and &) with logical operators (|| and &&) | ||
* Defined GEOIP_ISP_EDITION | ||
* Updated geoip_country_code_by_addr to work with PHP5 (Eric of Host Ultra) | ||
* Replaced bit operators (| and &) with logical operators (|| and &&) | ||
* Defined GEOIP_ISP_EDITION | ||
|
||
1.3 2004-8-4 | ||
* Changed license from GPL to LGPL so code can be included in PEAR | ||
* added global definitions to prevent undefined variables error when including from function (Cédric Dufour) | ||
* Updated country names | ||
* Added support for GeoIP City, version 1 with DMA and Area codes | ||
1.3 2004-8-4 | ||
* Changed license from GPL to LGPL so code can be included in PEAR | ||
* added global definitions to prevent undefined variables error when including from function (Cédric Dufour) | ||
* Updated country names | ||
* Added support for GeoIP City, version 1 with DMA and Area codes | ||
|
||
1.2 2003-10-28 | ||
* Added support for Shared Memory (Jason Priebe) | ||
* Added support for Distributed queries | ||
* Added support for GeoIP Region, version 1 | ||
* Added Anonymous Proxy and Satellite Provider code/labels | ||
* Changed Taiwan, Province of China to Taiwan | ||
1.2 2003-10-28 | ||
* Added support for Shared Memory (Jason Priebe) | ||
* Added support for Distributed queries | ||
* Added support for GeoIP Region, version 1 | ||
* Added Anonymous Proxy and Satellite Provider code/labels | ||
* Changed Taiwan, Province of China to Taiwan | ||
|
||
1.1 2003-01-15 | ||
* Added support for GeoIP Region and GeoIP City | ||
1.1 2003-01-15 | ||
* Added support for GeoIP Region and GeoIP City | ||
|
||
1.0 2002-11-21 | ||
1.0 2002-11-21 | ||
* Initial checkin to CVS |
Oops, something went wrong.