cannot active curl option for followlocation
authorSteve Sutton <steve@gaslightmedia.com>
Wed, 15 Jul 2015 20:32:17 +0000 (16:32 -0400)
committerSteve Sutton <steve@gaslightmedia.com>
Wed, 15 Jul 2015 20:32:17 +0000 (16:32 -0400)
controllers/Import.php

index 9f29372..bdd801d 100644 (file)
             $ch = curl_init($fileUrl);
             curl_setopt($ch, CURLOPT_TIMEOUT, 50);
             curl_setopt($ch, CURLOPT_FILE, $fp);
-            curl_setopt($ch, CURLOPT_FOLLOWLOCATION, true);
+            //curl_setopt($ch, CURLOPT_FOLLOWLOCATION, true);
             $imgData = curl_exec($ch);
             $httpCode = curl_getinfo($ch);
             curl_close($ch);
             }
             switch($step) {
             case 0:
+                //$this->post = array();
+                //$this->_storePost();
+                //echo '<pre>'.print_r(get_option(GLM_WP_IMPORT_POST_OPTION), true).'</pre>';
                 $this->_greet();
                 $this->_readOptions();
                 echo '<p><a href="admin.php?import=toolbox&amp;step=1&start=0">Begin Import</a></p>';
-                echo '<p><a href="admin.php?import=toolbox&amp;step=1&start=70">Part 2</a></p>';
                 break;
             case 1:
                 $numPagesImported = $this->_import();