This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| function addEvent(obj, evt, fn) { | |
| if (obj.addEventListener) { | |
| obj.addEventListener(evt, fn, false); | |
| } | |
| else if (obj.attachEvent) { | |
| obj.attachEvent("on" + evt, fn); | |
| } | |
| } |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| $last_update = get_option('twitter_feed_last_update', 0); | |
| if(time() - $last_update > 86400){ | |
| require_once('TwitterAPIExchange.php'); | |
| $settings = array( | |
| 'oauth_access_token' => "PASTE_VALUE_HERE", | |
| 'oauth_access_token_secret' => "PASTE_VALUE_HERE", | |
| 'consumer_key' => "PASTE_VALUE_HERE", | |
| 'consumer_secret' => "PASTE_VALUE_HERE" | |
| ); | |
| $fields = array( |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| <?php | |
| class Ip_Prohibited_Model_Onepage extends Mage_Checkout_Model_Type_Onepage | |
| { | |
| protected $Restricted_Countries = array( | |
| 'GB', // Country Codes | |
| 'CA' | |
| ); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| <?xml version="1.0"?> | |
| <config> | |
| <modules> | |
| <Ip_Prohibited> | |
| <version>0.1.0</version> | |
| </Ip_Prohibited> | |
| </modules> | |
| <global> | |
| <models> | |
| <prohibited> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| <?xml version="1.0" encoding="UTF-8"?> | |
| <config> | |
| <modules> | |
| <Ip_Prohibited> | |
| <active>true</active> | |
| <codePool>local</codePool> | |
| </Ip_Prohibited> | |
| </modules> | |
| </config> |
NewerOlder