]> _ Git - cubeextranet.git/commitdiff
(no commit message)
authorvincent@cubedesigners.com <vincent@cubedesigners.com@f5622870-0f3c-0410-866d-9cb505b7a8ef>
Fri, 24 May 2013 09:25:38 +0000 (09:25 +0000)
committervincent@cubedesigners.com <vincent@cubedesigners.com@f5622870-0f3c-0410-866d-9cb505b7a8ef>
Fri, 24 May 2013 09:25:38 +0000 (09:25 +0000)
inc/ws/Controlleur/class.ws.services.php
inc/ws/Util/class.ws.exporter.php

index d6f94fc68871edd0cc2aefd3a29ec962e7dc27f3..12f11cfaed72af27600a0d76f141f63fef110c27 100644 (file)
@@ -529,19 +529,20 @@ class wsServices extends cubeFlashGateway {
 \r
        public function wescoRef() {\r
                global $core;\r
-               $r = $core->con->select('SELECT url FROM wescoref WHERE ref="' . $core->con->escape($this->args['ref']) . '"');\r
+\r
+               $ref = ltrim(substr($this->args['ref'], 4), '0');\r
+\r
+               $r = $core->con->select('SELECT url FROM wescoref WHERE ref="' . $core->con->escape($ref) . '"');\r
                if ($r->count()) {\r
                        header('Location: ' . $r->url);\r
                        exit;\r
                }\r
-\r
-\r
                $cache = ROOT . '/cache/wesco/' . $this->args['ref'];\r
                if (file_exists($cache)) {\r
                        header('Location: ' . file_get_contents($cache));\r
                        exit;\r
                }\r
-               $url = 'http://www.wesco-eshop.fr/catalogsearch/result/?q=' . $this->args['ref'];\r
+               $url = 'http://www.wesco-eshop.fr/catalogsearch/result/?q=' . $ref;\r
                $doc = new DOMDocument();\r
                $doc->loadHTML(file_get_contents($url));\r
                $x = simplexml_import_dom($doc);\r
index cc0495aed2df0cd105d0d1632cc2b171481982c2..9f1959a959ac8195d079dbd7d910f1c2a1fe351a 100644 (file)
@@ -113,7 +113,7 @@ class wsExporter {
 
        protected function _transfertPhonegap($os, $package, $destination) {
                if ($os == 'android') {
-                       $this->_rsync($package, '/home/dev/Works/Phonegap/Projects/' . $destination, true);
+                       $this->_rsync($package, '/home/dev/Phonegap/Projects/' . $destination, true);
                        `/usr/local/bin/updatephonegapandroid`;
                } else if ($os == 'ios') {
                        `sudo /usr/local/bin/remountmac`;