Sweetapple_Geotargeting - Version 0.1.4

Version Notes

Compatible with Magento Community Edition 1.7.0, 1.7.1 and 1.7.2.

Download this release

Release Info

Developer Sweet-Apple
Extension Sweetapple_Geotargeting
Version 0.1.4
Comparing to
See all releases


Code changes from version 0.1.3 to 0.1.4

app/code/local/Sweetapple/Geotargeting/.DS_Store CHANGED
Binary file
app/code/local/Sweetapple/Geotargeting/Helper/Data.php CHANGED
@@ -81,7 +81,7 @@ class Sweetapple_Geotargeting_Helper_Data extends Mage_Core_Helper_Abstract {
81
  $ip = Mage::getStoreConfig( self::XML_PATH_GEOIP_TEST_IP );
82
  }
83
  $validateIp = new Zend_Validate_Ip();
84
- return ( $validateIp->isValid( $ip) ) ? $ip : $_SERVER['REMOTE_ADDR'];
85
  }
86
 
87
 
81
  $ip = Mage::getStoreConfig( self::XML_PATH_GEOIP_TEST_IP );
82
  }
83
  $validateIp = new Zend_Validate_Ip();
84
+ return ( $validateIp->isValid( $ip) ) ? $ip : Mage::helper('core/http')->getRemoteAddr();
85
  }
86
 
87
 
app/code/local/Sweetapple/Geotargeting/etc/config.xml CHANGED
@@ -2,7 +2,7 @@
2
  <config>
3
  <modules>
4
  <Sweetapple_Geotargeting>
5
- <version>0.1.2</version>
6
  </Sweetapple_Geotargeting>
7
  </modules>
8
  <default>
2
  <config>
3
  <modules>
4
  <Sweetapple_Geotargeting>
5
+ <version>0.1.4</version>
6
  </Sweetapple_Geotargeting>
7
  </modules>
8
  <default>
package.xml CHANGED
@@ -1,7 +1,7 @@
1
  <?xml version="1.0"?>
2
  <package>
3
  <name>Sweetapple_Geotargeting</name>
4
- <version>0.1.3</version>
5
  <stability>stable</stability>
6
  <license uri="http://opensource.org/licenses/OSL-3.0">OSL v3.0 </license>
7
  <channel>community</channel>
@@ -23,9 +23,9 @@ echo $this-&gt;getLayout()-&gt;createBlock('cms/block')-&gt;setBlockId('home_pag
23
  </description>
24
  <notes>Compatible with Magento Community Edition 1.7.0, 1.7.1 and 1.7.2.</notes>
25
  <authors><author><name>Sweet-Apple</name><user>Sweet-Apple</user><email>info@sweet-apple.co.uk</email></author></authors>
26
- <date>2013-06-09</date>
27
- <time>11:24:09</time>
28
- <contents><target name="magelocal"><dir name="Sweetapple"><dir name="Geotargeting"><dir name="Block"><file name="Geotargeting.php" hash="e01db5ffd2619aea9ef77c56b57f108e"/></dir><dir name="GeoIP"><file name="GeoIP.dat" hash="acc4ad4f2f6078669cd0a7b44ba5a779"/><file name="geoip.class.php" hash="7d979a4e5e469cdc93033f53d31f4a3f"/><file name=".DS_Store" hash="194577a7e20bdcc7afbb718f502c134c"/></dir><dir name="Helper"><file name="Data.php" hash="71e3b7b4769f50261a7248e1498031eb"/></dir><dir name="Model"><dir name="Validator"><file name="Testip.php" hash="670b1a8ba14c544770702bc9322f8b94"/><file name="Updateurl.php" hash="2f4e919fe61414301cd03ab00479e7e3"/></dir></dir><dir name="etc"><file name="config.xml" hash="3a10bf4280a5a24429b3fefb7603adc1"/><file name="system.xml" hash="9c7967f5ce72fa392a96057e43e32e9b"/></dir><file name=".DS_Store" hash="194577a7e20bdcc7afbb718f502c134c"/></dir></dir></target><target name="mageetc"><dir name="modules"><file name="Sweetapple_Geotargeting.xml" hash="fa46b233d4234ecb58ce1a8ea97aeeaf"/></dir></target></contents>
29
  <compatible/>
30
  <dependencies><required><php><min>5.3.0</min><max>6.0.0</max></php></required></dependencies>
31
  </package>
1
  <?xml version="1.0"?>
2
  <package>
3
  <name>Sweetapple_Geotargeting</name>
4
+ <version>0.1.4</version>
5
  <stability>stable</stability>
6
  <license uri="http://opensource.org/licenses/OSL-3.0">OSL v3.0 </license>
7
  <channel>community</channel>
23
  </description>
24
  <notes>Compatible with Magento Community Edition 1.7.0, 1.7.1 and 1.7.2.</notes>
25
  <authors><author><name>Sweet-Apple</name><user>Sweet-Apple</user><email>info@sweet-apple.co.uk</email></author></authors>
26
+ <date>2014-02-20</date>
27
+ <time>16:55:13</time>
28
+ <contents><target name="magelocal"><dir name="Sweetapple"><dir name="Geotargeting"><dir name="Block"><file name="Geotargeting.php" hash="e01db5ffd2619aea9ef77c56b57f108e"/></dir><dir name="GeoIP"><file name="GeoIP.dat" hash="acc4ad4f2f6078669cd0a7b44ba5a779"/><file name="geoip.class.php" hash="7d979a4e5e469cdc93033f53d31f4a3f"/><file name=".DS_Store" hash="194577a7e20bdcc7afbb718f502c134c"/></dir><dir name="Helper"><file name="Data.php" hash="f462d64c7d86cb9257ec7090b850caf9"/></dir><dir name="Model"><dir name="Validator"><file name="Testip.php" hash="670b1a8ba14c544770702bc9322f8b94"/><file name="Updateurl.php" hash="2f4e919fe61414301cd03ab00479e7e3"/></dir></dir><dir name="etc"><file name="config.xml" hash="e005e098a2c2bb9955c1d57cca28a637"/><file name="system.xml" hash="9c7967f5ce72fa392a96057e43e32e9b"/></dir><file name=".DS_Store" hash="cfd80636a772a1c5fa8933e0b52a4504"/></dir></dir></target><target name="mageetc"><dir name="modules"><file name="Sweetapple_Geotargeting.xml" hash="fa46b233d4234ecb58ce1a8ea97aeeaf"/></dir></target></contents>
29
  <compatible/>
30
  <dependencies><required><php><min>5.3.0</min><max>6.0.0</max></php></required></dependencies>
31
  </package>