diff options
author | Git <git@what.cd> | 2014-08-14 08:00:27 +0000 |
---|---|---|
committer | Git <git@what.cd> | 2014-08-14 08:00:27 +0000 |
commit | 4baa69eea96834d117868514230ac121063aeba0 (patch) | |
tree | 71560b6d88d69054b798400a4fc6964e46d87fcc | |
parent | 76490754e268e78d497706a60fa08785c89cbdd3 (diff) | |
download | Gazelle-4baa69eea96834d117868514230ac121063aeba0.zip Gazelle-4baa69eea96834d117868514230ac121063aeba0.tar.gz Gazelle-4baa69eea96834d117868514230ac121063aeba0.tar.bz2 |
Empty commit
-rw-r--r-- | sections/tools/development/update_geoip.php | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/sections/tools/development/update_geoip.php b/sections/tools/development/update_geoip.php index d421111..6ddfaaa 100644 --- a/sections/tools/development/update_geoip.php +++ b/sections/tools/development/update_geoip.php @@ -13,7 +13,7 @@ shell_exec('wget http://geolite.maxmind.com/download/geoip/database/GeoLiteCity_ shell_exec('unzip GeoLiteCity-latest.zip'); shell_exec('rm GeoLiteCity-latest.zip'); -if (($Locations = file("GeoLiteCity_".date('Ym')."02/GeoLiteCity-Location.csv", FILE_IGNORE_NEW_LINES)) === false) { +if (($Locations = file("GeoLiteCity_".date('Ym')."05/GeoLiteCity-Location.csv", FILE_IGNORE_NEW_LINES)) === false) { error('Download or extraction of maxmind database failed'); } array_shift($Locations); @@ -32,7 +32,7 @@ foreach ($Locations as $Location) { echo 'There are '.count($CountryIDs).' CountryIDs'; echo '<br />'; -if (($Blocks = file("GeoLiteCity_".date('Ym')."03/GeoLiteCity-Blocks.csv", FILE_IGNORE_NEW_LINES)) === false) { +if (($Blocks = file("GeoLiteCity_".date('Ym')."05/GeoLiteCity-Blocks.csv", FILE_IGNORE_NEW_LINES)) === false) { echo 'Error'; } array_shift($Blocks); |