Skip to content

Commit

Permalink
Update GeoIP database and update to use Composer.
Browse files Browse the repository at this point in the history
  • Loading branch information
kjotoole committed Jan 9, 2016
1 parent e29ca3f commit 8d2bf34
Show file tree
Hide file tree
Showing 57 changed files with 10,987 additions and 728 deletions.
5 changes: 5 additions & 0 deletions composer.json
@@ -0,0 +1,5 @@
{
"require": {
"geoip/geoip": "~1.14"
}
}
68 changes: 68 additions & 0 deletions composer.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Binary file added composer.phar
Binary file not shown.
Binary file modified geoip/GeoIP.dat
Binary file not shown.
727 changes: 0 additions & 727 deletions geoip/geoip.php

This file was deleted.

2 changes: 1 addition & 1 deletion main.php
Expand Up @@ -3,7 +3,7 @@

define('UPDATE_DOMAIN', 'raw.githubusercontent.com');
define('UPDATE_PATH', '/kevogod/cachechu/master/data/update.dat');
define('GEOIP_PATH', 'geoip/geoip.php');
define('GEOIP_PATH', 'vendor/autoload.php');
define('GEOIP_DATA_PATH', 'geoip/GeoIP.dat');

$config['Path']['Update'] = isset($config['Path']['Update']) ? $config['Path']['Update'] : 'data/update.dat';
Expand Down
7 changes: 7 additions & 0 deletions vendor/autoload.php
@@ -0,0 +1,7 @@
<?php

// autoload.php @generated by Composer

require_once __DIR__ . '/composer' . '/autoload_real.php';

return ComposerAutoloaderInit42d4dd1aad332470774a920028d52e89::getLoader();

0 comments on commit 8d2bf34

Please sign in to comment.