mirror of
https://github.com/WhatCD/Gazelle.git
synced 2024-12-14 11:26:26 +00:00
Empty commit
This commit is contained in:
parent
f9db0dc08d
commit
8857234ac0
@ -7,12 +7,12 @@
|
|||||||
show_header();
|
show_header();
|
||||||
|
|
||||||
//requires wget, unzip commands to be installed
|
//requires wget, unzip commands to be installed
|
||||||
shell_exec('wget http://geolite.maxmind.com/download/geoip/database/GeoLiteCity_CSV/GeoLiteCity_'.date('Ym').'07.zip');
|
shell_exec('wget http://geolite.maxmind.com/download/geoip/database/GeoLiteCity_CSV/GeoLiteCity_'.date('Ym').'04.zip');
|
||||||
//shell_exec('wget http://debug.what.cd/GeoLiteCity_'.date('Ym').'01.zip');
|
//shell_exec('wget http://debug.what.cd/GeoLiteCity_'.date('Ym').'01.zip');
|
||||||
shell_exec('unzip GeoLiteCity_'.date('Ym').'07.zip');
|
shell_exec('unzip GeoLiteCity_'.date('Ym').'04.zip');
|
||||||
shell_exec('rm GeoLiteCity_'.date('Ym').'07.zip');
|
shell_exec('rm GeoLiteCity_'.date('Ym').'04.zip');
|
||||||
|
|
||||||
if(($Locations = file("GeoLiteCity_".date('Ym')."07/GeoLiteCity-Location.csv", FILE_IGNORE_NEW_LINES)) === false) {
|
if(($Locations = file("GeoLiteCity_".date('Ym')."04/GeoLiteCity-Location.csv", FILE_IGNORE_NEW_LINES)) === false) {
|
||||||
error("Download or extraction of maxmind database failed");
|
error("Download or extraction of maxmind database failed");
|
||||||
}
|
}
|
||||||
array_shift($Locations);
|
array_shift($Locations);
|
||||||
@ -31,7 +31,7 @@
|
|||||||
echo "There are ".count($CountryIDs)." CountryIDs";
|
echo "There are ".count($CountryIDs)." CountryIDs";
|
||||||
echo "<br />";
|
echo "<br />";
|
||||||
|
|
||||||
if(($Blocks = file("GeoLiteCity_".date('Ym')."07/GeoLiteCity-Blocks.csv", FILE_IGNORE_NEW_LINES)) === false) {
|
if(($Blocks = file("GeoLiteCity_".date('Ym')."04/GeoLiteCity-Blocks.csv", FILE_IGNORE_NEW_LINES)) === false) {
|
||||||
echo "Error";
|
echo "Error";
|
||||||
}
|
}
|
||||||
array_shift($Blocks);
|
array_shift($Blocks);
|
||||||
|
Loading…
Reference in New Issue
Block a user