Empty commit

This commit is contained in:
Git 2012-06-12 08:00:11 +00:00
parent 2617c891e5
commit 24a2f6fe4c
3 changed files with 7 additions and 6 deletions

View File

@ -1,6 +1,7 @@
<?
if(isset($LoggedUser)) {
//Silly user, what are you doing here!
header('Location: index.php');
die();

View File

@ -7,12 +7,12 @@
show_header();
//requires wget, unzip commands to be installed
shell_exec('wget http://geolite.maxmind.com/download/geoip/database/GeoLiteCity_CSV/GeoLiteCity_'.date('Ym').'04.zip');
shell_exec('wget http://geolite.maxmind.com/download/geoip/database/GeoLiteCity_CSV/GeoLiteCity_'.date('Ym').'05.zip');
//shell_exec('wget http://debug.what.cd/GeoLiteCity_'.date('Ym').'01.zip');
shell_exec('unzip GeoLiteCity_'.date('Ym').'04.zip');
shell_exec('rm GeoLiteCity_'.date('Ym').'04.zip');
shell_exec('unzip GeoLiteCity_'.date('Ym').'05.zip');
shell_exec('rm GeoLiteCity_'.date('Ym').'05.zip');
if(($Locations = file("GeoLiteCity_".date('Ym')."04/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);
@ -31,7 +31,7 @@
echo "There are ".count($CountryIDs)." CountryIDs";
echo "<br />";
if(($Blocks = file("GeoLiteCity_".date('Ym')."04/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);

View File

@ -208,7 +208,7 @@ function AddArtistField() {
function RemoveArtistField() {
if(ArtistCount == 1) { return; }
var x = $('#artistfields').raw();
for (i=0; i<3; i++) { x.removeChild(x.lastChild); }
for (i=0; i<4; i++) { x.removeChild(x.lastChild); }
ArtistCount--;
}