IncentiBox_Communityrewards - Version 1.0.8

Version Notes

Added a check for safe mode and open_basedir before setting CURLOPT_FOLLOWLOCATION. This caused errors for certain web-hosts

Download this release

Release Info

Developer Magento Core Team
Extension IncentiBox_Communityrewards
Version 1.0.8
Comparing to
See all releases


Code changes from version 1.0.7 to 1.0.8

app/code/community/IncentiBox/Communityrewards/etc/config.xml CHANGED
@@ -2,7 +2,7 @@
2
  <config>
3
  <modules>
4
  <IncentiBox_Communityrewards>
5
- <version>1.0.7</version>
6
  </IncentiBox_Communityrewards>
7
  </modules>
8
 
2
  <config>
3
  <modules>
4
  <IncentiBox_Communityrewards>
5
+ <version>1.0.8</version>
6
  </IncentiBox_Communityrewards>
7
  </modules>
8
 
lib/IncentiBox/incentibox_api.php CHANGED
@@ -51,7 +51,10 @@ $url .= '?'. http_build_query( $params );
51
  $options[CURLOPT_URL] = $url;
52
  $options[CURLOPT_PORT] = self::INCENTIBOX_API_PORT;
53
  $options[CURLOPT_USERAGENT] = $this->get_useragent();
54
- $options[CURLOPT_FOLLOWLOCATION] = true;
 
 
 
55
  $options[CURLOPT_RETURNTRANSFER] = true;
56
  $options[CURLOPT_TIMEOUT] = (int) $this->get_time_out();
57
 
@@ -148,4 +151,4 @@ throw new IncentiboxException($response_code . ' - ' . $response);
148
  // IncentiboxException
149
  class IncentiboxException extends Exception { }
150
 
151
- ?>
51
  $options[CURLOPT_URL] = $url;
52
  $options[CURLOPT_PORT] = self::INCENTIBOX_API_PORT;
53
  $options[CURLOPT_USERAGENT] = $this->get_useragent();
54
+ // follow on only if allowed - 20120221
55
+ if (ini_get('open_basedir') == '' && ini_get('safe_mode' == 'Off')){
56
+ $options[CURLOPT_FOLLOWLOCATION] = true;
57
+ }
58
  $options[CURLOPT_RETURNTRANSFER] = true;
59
  $options[CURLOPT_TIMEOUT] = (int) $this->get_time_out();
60
 
151
  // IncentiboxException
152
  class IncentiboxException extends Exception { }
153
 
154
+ ?>
package.xml CHANGED
@@ -1,7 +1,7 @@
1
  <?xml version="1.0"?>
2
  <package>
3
  <name>IncentiBox_Communityrewards</name>
4
- <version>1.0.7</version>
5
  <stability>stable</stability>
6
  <license uri="http://www.apache.org/licenses/LICENSE-2.0.html">Apache License 2.0</license>
7
  <channel>community</channel>
@@ -16,11 +16,11 @@ Coupon codes are auto-generated, and will show up in the admin panel, so you can
16
  &#x2028;&#x2028;Example: Give participants a $5 off coupon when they share about your products with their social networks. You gain valuable word-of-mouth advertising for your Magento store, AND generate additional sales when participants and their friends redeem their store credit!&#x2028;&#x2028;&#xD;
17
  &#xD;
18
  Notes: This extension interfaces with incentiBox, and communicates through the incentiBox API. For more information, and to sign up for incentiBox for API access, please see www.incentibox.com.</description>
19
- <notes>Sales tracking call was added to the order confirmation page.</notes>
20
  <authors><author><name>incentiBox</name><user>auto-converted</user><email>support@incentibox.com</email></author></authors>
21
- <date>2011-11-22</date>
22
- <time>07:27:03</time>
23
- <contents><target name="magelib"><dir name="IncentiBox"><file name="incentibox_api.php" hash="06490bf2d59166ab0ad4cec6f33d9398"/></dir></target><target name="magecommunity"><dir name="IncentiBox"><dir name="Communityrewards"><dir name="Block"><dir name="Communityrewards"><file name="Grid.php" hash="d3aed2d0bdcebcc08522f6786547db18"/></dir><file name="Communityrewards.php" hash="f6726f9479326221dbdffd3762f539c0"/></dir><dir name="Helper"><file name="Data.php" hash="13c5e3a3be9ffe04ba7c22c88e4fb4ee"/></dir><dir name="Model"><dir name="Mysql4"><dir name="Listener"><file name="Collection.php" hash="db440e47cbdef4a38e2465233eab31b4"/></dir><file name="Listener.php" hash="7ab66261411770446f6dd3a9ab6ce469"/></dir><file name="Listener.php" hash="ba27fae5d984f3f892fac14c6d644c9d"/></dir><dir name="controllers"><file name="CommunityrewardsController.php" hash="fec1796b16a7d13e0fd8d77e832b9081"/><file name="ListenerController.php" hash="ea26509860f67661f321ffb1983a2b0b"/></dir><dir name="etc"><file name="adminhtml.xml" hash="0e809c3d1e05c6cfce33cdf0c6fc1d95"/><file name="config.xml" hash="ea0a7496f4ba50b07f96194fb514a7cc"/><file name="system.xml" hash="b436d1b7d1f98e4b108b474102cdeb80"/></dir><dir name="sql"><dir name="communityrewards_setup"><file name="mysql4-install-1.0.1.php" hash="3ddbd3bcc4ec5ab995a52bcc0b563fe7"/></dir></dir></dir></dir></target><target name="magedesign"><dir name="adminhtml"><dir name="default"><dir name="default"><dir name="layout"><file name="communityrewards.xml" hash="384dd484ddce3264fb17cfb107c02f9a"/></dir></dir></dir></dir><dir name="frontend"><dir name="base"><dir name="default"><dir name="layout"><file name="communityrewards.xml" hash="3580cf8018e496ec48a8a799a92322e1"/></dir><dir name="template"><dir name="communityrewards"><dir name="checkout"><dir name="success"><file name="script.phtml" hash="40010de5b1c63ba4932eed4d4d1ab222"/></dir></dir><file name="footer_script.phtml" hash="4202d828ae1370916ba041c7bf4747f7"/></dir></dir></dir></dir></dir></target><target name="mageetc"><dir name="modules"><file name="IncentiBox_Communityrewards.xml" hash="13e38120f4fc14fde6f23c0b95e63ebf"/></dir></target><target name="magelocale"><dir name="en_US"><file name="IncentiBox_Communityrewards.csv" hash="b957c5e9040d798f9ce2a838fce55ee8"/></dir></target></contents>
24
  <compatible/>
25
  <dependencies/>
26
  </package>
1
  <?xml version="1.0"?>
2
  <package>
3
  <name>IncentiBox_Communityrewards</name>
4
+ <version>1.0.8</version>
5
  <stability>stable</stability>
6
  <license uri="http://www.apache.org/licenses/LICENSE-2.0.html">Apache License 2.0</license>
7
  <channel>community</channel>
16
  &#x2028;&#x2028;Example: Give participants a $5 off coupon when they share about your products with their social networks. You gain valuable word-of-mouth advertising for your Magento store, AND generate additional sales when participants and their friends redeem their store credit!&#x2028;&#x2028;&#xD;
17
  &#xD;
18
  Notes: This extension interfaces with incentiBox, and communicates through the incentiBox API. For more information, and to sign up for incentiBox for API access, please see www.incentibox.com.</description>
19
+ <notes>Added a check for safe mode and open_basedir before setting CURLOPT_FOLLOWLOCATION. This caused errors for certain web-hosts</notes>
20
  <authors><author><name>incentiBox</name><user>auto-converted</user><email>support@incentibox.com</email></author></authors>
21
+ <date>2012-02-22</date>
22
+ <time>02:45:08</time>
23
+ <contents><target name="magelib"><dir name="IncentiBox"><file name="incentibox_api.php" hash="de34be6eb20d7ed2c2b7f7bf6f3b59ec"/></dir></target><target name="magecommunity"><dir name="IncentiBox"><dir name="Communityrewards"><dir name="Block"><dir name="Communityrewards"><file name="Grid.php" hash="d3aed2d0bdcebcc08522f6786547db18"/></dir><file name="Communityrewards.php" hash="f6726f9479326221dbdffd3762f539c0"/></dir><dir name="Helper"><file name="Data.php" hash="13c5e3a3be9ffe04ba7c22c88e4fb4ee"/></dir><dir name="Model"><dir name="Mysql4"><dir name="Listener"><file name="Collection.php" hash="db440e47cbdef4a38e2465233eab31b4"/></dir><file name="Listener.php" hash="7ab66261411770446f6dd3a9ab6ce469"/></dir><file name="Listener.php" hash="ba27fae5d984f3f892fac14c6d644c9d"/></dir><dir name="controllers"><file name="CommunityrewardsController.php" hash="fec1796b16a7d13e0fd8d77e832b9081"/><file name="ListenerController.php" hash="ea26509860f67661f321ffb1983a2b0b"/></dir><dir name="etc"><file name="adminhtml.xml" hash="0e809c3d1e05c6cfce33cdf0c6fc1d95"/><file name="config.xml" hash="d22096f4dbe44893470783fa9957e844"/><file name="system.xml" hash="b436d1b7d1f98e4b108b474102cdeb80"/></dir><dir name="sql"><dir name="communityrewards_setup"><file name="mysql4-install-1.0.1.php" hash="3ddbd3bcc4ec5ab995a52bcc0b563fe7"/></dir></dir></dir></dir></target><target name="magedesign"><dir name="adminhtml"><dir name="default"><dir name="default"><dir name="layout"><file name="communityrewards.xml" hash="384dd484ddce3264fb17cfb107c02f9a"/></dir></dir></dir></dir><dir name="frontend"><dir name="base"><dir name="default"><dir name="layout"><file name="communityrewards.xml" hash="3580cf8018e496ec48a8a799a92322e1"/></dir><dir name="template"><dir name="communityrewards"><dir name="checkout"><dir name="success"><file name="script.phtml" hash="40010de5b1c63ba4932eed4d4d1ab222"/></dir></dir><file name="footer_script.phtml" hash="4202d828ae1370916ba041c7bf4747f7"/></dir></dir></dir></dir></dir></target><target name="mageetc"><dir name="modules"><file name="IncentiBox_Communityrewards.xml" hash="13e38120f4fc14fde6f23c0b95e63ebf"/></dir></target><target name="magelocale"><dir name="en_US"><file name="IncentiBox_Communityrewards.csv" hash="b957c5e9040d798f9ce2a838fce55ee8"/></dir></target></contents>
24
  <compatible/>
25
  <dependencies/>
26
  </package>