Skip to content

Commit

Permalink
Updated get_geocity2.php to get .mmb database using new maxmind autho…
Browse files Browse the repository at this point in the history
…rization requirment.
  • Loading branch information
turnermm committed Feb 12, 2020
1 parent 8ea05d9 commit f739cba
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 5 deletions.
2 changes: 1 addition & 1 deletion plugin.info.txt
@@ -1,7 +1,7 @@
base quickstats
author Myron Turner
email turnermm02@shaw.ca
date 2019-11-08
date 2020-02-12
name QuickStats Plugin
desc Non-sql-based web traffic statistics
url http://www.dokuwiki.org/plugin:quickstats
Expand Down
7 changes: 4 additions & 3 deletions scripts/get_geocity2.php
Expand Up @@ -42,8 +42,9 @@ function __construct () {
function get_GeoLiteCity() {
@set_time_limit(120);

$url = "https://geolite.maxmind.com/download/geoip/database/GeoLite2-City.tar.gz";
if($this->testgLCity2) {
$url = "https://download.maxmind.com/app/geoip_download?edition_id=GeoLite2-City&license_key=J7if1Q83hu4tiUVS&suffix=tar.gz";
// "https://geolite.maxmind.com/download/geoip/database/GeoLite2-City.tar.gz";
if($this->testgLCity2) {
$url = "http://epicurus.bz/GeoLite2-City.tar.gz";
// $url = "https://mturner.org/userfiles/GeoLite2-City.tar.gz";
$this->qs_say("testing %s", $url);
Expand All @@ -52,7 +53,7 @@ function get_GeoLiteCity() {
$gzfile = $this->tempdir . '/GeoLite2-City.tar.gz';

$http = new DokuHTTPClient();
$http->max_bodysize = 32777216;
$http->max_bodysize = 36777216;
$http->timeout = 120;
$http->keep_alive = false;

Expand Down
2 changes: 1 addition & 1 deletion version
@@ -1,2 +1,2 @@
master_19-Nov_08-15_52
master_20-Feb_12-13_43

0 comments on commit f739cba

Please sign in to comment.