projects
/
Pman.Core
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
4f7e3e7
)
Import/Core_geoip.php
author
Edward
<edward@roojs.com>
Tue, 13 May 2014 11:17:43 +0000
(19:17 +0800)
committer
Edward
<edward@roojs.com>
Tue, 13 May 2014 11:17:43 +0000
(19:17 +0800)
Import/Core_geoip.php
patch
|
blob
|
history
diff --git
a/Import/Core_geoip.php
b/Import/Core_geoip.php
index
c922112
..
a43f3c6
100644
(file)
--- a/
Import/Core_geoip.php
+++ b/
Import/Core_geoip.php
@@
-39,7
+39,7
@@
class Pman_Core_Import_Core_geoip extends Pman_Roo
$this->log("Insert location data start");
$this->log("Insert location data start");
-
//
$this->insertLocation($location);
+ $this->insertLocation($location);
$this->log("Insert Block data start");
$this->log("Insert Block data start");
@@
-58,10
+58,6
@@
class Pman_Core_Import_Core_geoip extends Pman_Roo
$this->jerr("invalid location file");
}
$this->jerr("invalid location file");
}
- $linecount = count(file($csv));
-
- print_r($linecount);exit;
-
$req = array(
'GEONAME_ID', 'CONTINENT_CODE', 'CONTINENT_NAME',
'COUNTRY_ISO_CODE', 'COUNTRY_NAME', 'SUBDIVISION_ISO_CODE',
$req = array(
'GEONAME_ID', 'CONTINENT_CODE', 'CONTINENT_NAME',
'COUNTRY_ISO_CODE', 'COUNTRY_NAME', 'SUBDIVISION_ISO_CODE',
@@
-109,10
+105,6
@@
class Pman_Core_Import_Core_geoip extends Pman_Roo
{
ini_set("auto_detect_line_endings", true);
{
ini_set("auto_detect_line_endings", true);
- $linecount = count(file($csv));
-
- print_r($linecount);exit;
-
$fh = fopen($csv, 'r');
if (!$fh) {
$this->jerr("invalid location file");
$fh = fopen($csv, 'r');
if (!$fh) {
$this->jerr("invalid location file");