View emailTemplatesGenerator.php
This file contains 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 | |
/** | |
To run and send all emails: | |
php -f emailTemplateGenerator.php -- -email raphael@me.com | |
Tun run and send one email: | |
php -f emailTemplateGenerator.php -- -email raphael@me.com -template 46 | |
*/ | |
require_once 'abstract.php'; |
View diff
This file contains 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
diff --git a/app/code/core/Mage/Customer/Model/Session.php b/app/code/core/Mage/Customer/Model/Session.php | |
index 623fa39..b5e5eda 100644 | |
--- a/app/code/core/Mage/Customer/Model/Session.php | |
+++ b/app/code/core/Mage/Customer/Model/Session.php | |
@@ -222,6 +222,7 @@ class Mage_Customer_Model_Session extends Mage_Core_Model_Session_Abstract | |
{ | |
$this->setCustomer($customer); | |
$this->renewSession(); | |
+ Mage::getSingleton('core/session')->renewFormKey(); | |
Mage::dispatchEvent('customer_login', array('customer'=>$customer)); |
View Dynamic events
This file contains 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
$this->_eventPrefix.'_clear' // Mage_Core_Model_Abstract | |
$this->_eventPrefix.'_delete_after' // Mage_Core_Model_Abstract | |
$this->_eventPrefix.'_delete_before' // Mage_Core_Model_Abstract | |
$this->_eventPrefix.'_delete_commit_after' // Mage_Core_Model_Abstract | |
$this->_eventPrefix.'_load_after' // Mage_Core_Model_Abstract | |
$this->_eventPrefix.'_load_before' // Mage_Core_Model_Abstract | |
$this->_eventPrefix.'_save_after' // Mage_Core_Model_Abstract | |
$this->_eventPrefix.'_save_before' // Mage_Core_Model_Abstract | |
$this->_eventPrefix.'_save_commit_after' // Mage_Core_Model_Abstract | |
$this->_eventPrefix.'_load_after' // Mage_Core_Model_Resource_Db_Collection_Abstract |
View gist:14a15cd52baede0e5d600e8c653f33e9
This file contains 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
diff --git a/.htaccess b/.htaccess | |
index aca7f55..63e1729 100644 | |
--- a/.htaccess | |
+++ b/.htaccess | |
@@ -144,6 +144,21 @@ | |
RewriteCond %{REQUEST_METHOD} ^TRAC[EK] | |
RewriteRule .* - [L,R=405] | |
+<IfModule mod_setenvif.c> | |
+ <IfModule mod_headers.c> |