iAdvize - Version 1.0.1

Version Notes

La version stable est désormais disponible.
Pour toute question technique:
contact@creadev.info ou www.creadev.info.

NB: on a retiré la dépendance du curl

Download this release

Release Info

Developer Magento Core Team
Extension iAdvize
Version 1.0.1
Comparing to
See all releases


Code changes from version 1.0.0 to 1.0.1

app/code/community/Creadev/Iadvize/Block/Ga.php CHANGED
@@ -47,6 +47,9 @@ class Creadev_Iadvize_Block_Ga extends Mage_Core_Block_Text
47
  protected function _toHtml()
48
  {
49
  $url = "http://www.iadvize.com/api/getcode.php?url=";
 
 
 
50
  $baseurl = str_replace("http://" , "", Mage::getBaseUrl());
51
  $lastIndexOf = strrpos($baseurl, '/');
52
  $length = strlen($baseurl);
@@ -66,19 +69,7 @@ class Creadev_Iadvize_Block_Ga extends Mage_Core_Block_Text
66
  ');
67
  **/
68
 
69
- if (function_exists('curl_init')) {
70
- $ch = curl_init($url);
71
- curl_setopt($ch, CURLOPT_HEADER, 0);
72
- curl_setopt($ch, CURLOPT_FOLLOWLOCATION, 1);
73
- curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1);
74
- // User agent that mimics a browser
75
- curl_setopt($ch, CURLOPT_USERAGENT, 'Mozilla/5.0 (Windows; U; WindowsNT 5.1; en-US; rv:1.7.5) Gecko/20041107 Firefox/1.0');
76
- $result = curl_exec($ch);
77
- curl_close($ch);
78
- } else {
79
- // curl library is not compiled in so use file_get_contents
80
- $result = file_get_contents($url);
81
- }
82
  $this->addText($result);
83
 
84
 
47
  protected function _toHtml()
48
  {
49
  $url = "http://www.iadvize.com/api/getcode.php?url=";
50
+ /*
51
+ Prendre en compte le https://
52
+ */
53
  $baseurl = str_replace("http://" , "", Mage::getBaseUrl());
54
  $lastIndexOf = strrpos($baseurl, '/');
55
  $length = strlen($baseurl);
69
  ');
70
  **/
71
 
72
+ $result = file_get_contents($url);
 
 
 
 
 
 
 
 
 
 
 
 
73
  $this->addText($result);
74
 
75
 
package.xml CHANGED
@@ -1,7 +1,7 @@
1
  <?xml version="1.0"?>
2
  <package>
3
  <name>iAdvize</name>
4
- <version>1.0.0</version>
5
  <stability>stable</stability>
6
  <license>Open Software License (OSL 3.0)</license>
7
  <channel>community</channel>
@@ -17,11 +17,13 @@ Cr&#xE9;ez un compte iadvize et t&#xE9;l&#xE9;chargez l'extension. Une fois inst
17
  Vous n'avez plus qu'&#xE0; vous connecter sur votre pupitre iAdvize pour communiquer avec vos clients.</description>
18
  <notes>La version stable est d&#xE9;sormais disponible.
19
  Pour toute question technique:
20
- contact@creadev.info ou www.creadev.info.</notes>
 
 
21
  <authors><author><name>Creadev</name><user>auto-converted</user><email>remi@creadev.info</email></author></authors>
22
- <date>2010-02-10</date>
23
- <time>16:04:54</time>
24
- <contents><target name="magecommunity"><dir name="Creadev"><dir name="Iadvize"><dir name="Block"><file name="Ga.php" hash="98376e7bb422ebc215a1b23a4dac47d3"/></dir><dir name="etc"><file name="config.xml" hash="45e62c91317c1b93abecfa7a4b5ca528"/></dir><dir name="Helper"><file name="Data.php" hash="b808c06ef222c57b24993afe2e979bf6"/></dir><dir name="Model"><file name="Observer.php" hash="226a93490faaa9c19b408b86e3bffd85"/></dir></dir></dir></target><target name="magedesign"><dir name="frontend"><dir name="default"><dir name="default"><dir name="layout"><file name="iadvize.xml" hash="e4515777fa6bda4771c9a45807702f89"/></dir></dir></dir></dir></target><target name="mageetc"><dir name="modules"><file name="Creadev_Iadvize.xml" hash="5faf919cb90b3b24efea8c6cccf70d85"/></dir></target></contents>
25
  <compatible/>
26
  <dependencies/>
27
  </package>
1
  <?xml version="1.0"?>
2
  <package>
3
  <name>iAdvize</name>
4
+ <version>1.0.1</version>
5
  <stability>stable</stability>
6
  <license>Open Software License (OSL 3.0)</license>
7
  <channel>community</channel>
17
  Vous n'avez plus qu'&#xE0; vous connecter sur votre pupitre iAdvize pour communiquer avec vos clients.</description>
18
  <notes>La version stable est d&#xE9;sormais disponible.
19
  Pour toute question technique:
20
+ contact@creadev.info ou www.creadev.info.
21
+
22
+ NB: on a retir&#xE9; la d&#xE9;pendance du curl</notes>
23
  <authors><author><name>Creadev</name><user>auto-converted</user><email>remi@creadev.info</email></author></authors>
24
+ <date>2010-02-15</date>
25
+ <time>14:13:09</time>
26
+ <contents><target name="magecommunity"><dir name="Creadev"><dir name="Iadvize"><dir name="Block"><file name="Ga.php" hash="554397c2e423d2fcff1cddf9a3c34062"/></dir><dir name="etc"><file name="config.xml" hash="45e62c91317c1b93abecfa7a4b5ca528"/></dir><dir name="Helper"><file name="Data.php" hash="b808c06ef222c57b24993afe2e979bf6"/></dir><dir name="Model"><file name="Observer.php" hash="226a93490faaa9c19b408b86e3bffd85"/></dir></dir></dir></target><target name="magedesign"><dir name="frontend"><dir name="default"><dir name="default"><dir name="layout"><file name="iadvize.xml" hash="e4515777fa6bda4771c9a45807702f89"/></dir></dir></dir></dir></target><target name="mageetc"><dir name="modules"><file name="Creadev_Iadvize.xml" hash="5faf919cb90b3b24efea8c6cccf70d85"/></dir></target></contents>
27
  <compatible/>
28
  <dependencies/>
29
  </package>