Import/Core_geoip.php
authorEdward <edward@roojs.com>
Tue, 13 May 2014 11:17:18 +0000 (19:17 +0800)
committerEdward <edward@roojs.com>
Tue, 13 May 2014 11:17:18 +0000 (19:17 +0800)
Import/Core_geoip.php

index 3e35105..c922112 100644 (file)
@@ -39,7 +39,7 @@ class Pman_Core_Import_Core_geoip extends Pman_Roo
         
         $this->log("Insert location data start");
         
-        $this->insertLocation($location);
+//        $this->insertLocation($location);
         
         $this->log("Insert Block data start");
         
@@ -109,6 +109,10 @@ class Pman_Core_Import_Core_geoip extends Pman_Roo
     {
         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");