From: Edward Date: Tue, 13 May 2014 08:50:45 +0000 (+0800) Subject: Import/Core_geoip.php X-Git-Url: http://git.roojs.org/?p=Pman.Core;a=commitdiff_plain;h=138c5f431fcf658d25a0b58b4f5701b5924fc6e6 Import/Core_geoip.php --- diff --git a/Import/Core_geoip.php b/Import/Core_geoip.php index e32c5271..8648b07f 100644 --- a/Import/Core_geoip.php +++ b/Import/Core_geoip.php @@ -26,7 +26,11 @@ class Pman_Core_Import_Core_geoip extends Pman_Roo $location = '/tmp/GeoLite2-City-Locations.csv'; $block = '/tmp/GeoLite2-City-Blocks.csv'; + if(!file_exists($location) || !file_exists($block)){ + $this->jerr('GeoLite2-City-Locations.csv OR GeoLite2-City-Blocks.csv does not exists?!'); + } + $this->jerr('exists'); // $fc = new File_Convert($cp, 'application/vnd.ms-excel'); // //var_Dump($img->getStoreName()); // $csv = $fc->convert('text/csv');