projects
/
Pman.Core
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
e3d7da2
)
Import/Core_geoip.php
author
Edward
<edward@roojs.com>
Tue, 13 May 2014 11:23:33 +0000
(19:23 +0800)
committer
Edward
<edward@roojs.com>
Tue, 13 May 2014 11:23:33 +0000
(19:23 +0800)
Import/Core_geoip.php
patch
|
blob
|
history
diff --git
a/Import/Core_geoip.php
b/Import/Core_geoip.php
index
0a7c0e1
..
093ee0f
100644
(file)
--- a/
Import/Core_geoip.php
+++ b/
Import/Core_geoip.php
@@
-56,7
+56,7
@@
class Pman_Core_Import_Core_geoip extends Pman_Roo
{
ini_set("auto_detect_line_endings", true);
- $linecount = count(file($csv));
+
$fh = fopen($csv, 'r');
@@
-73,7
+73,9
@@
class Pman_Core_Import_Core_geoip extends Pman_Roo
$cols = false;
- $processed = 0
+ $this->processed = 0;
+ $this->total = count(file($csv));
+ $this->echo = '';
while(false !== ($n = fgetcsv($fh,10000, ',', '"'))) {
if(!array_filter($n)){ // empty row