projects
/
Pman.Core
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
6292c7a
)
Import/Core_geoip.php
author
Edward
<edward@roojs.com>
Tue, 13 May 2014 08:50:45 +0000
(16:50 +0800)
committer
Edward
<edward@roojs.com>
Tue, 13 May 2014 08:50:45 +0000
(16:50 +0800)
Import/Core_geoip.php
patch
|
blob
|
history
diff --git
a/Import/Core_geoip.php
b/Import/Core_geoip.php
index
e32c527
..
8648b07
100644
(file)
--- 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');