<?php /** * Product: Loyalty Program for Enterprise Edition * Package: Aitoc_Aitloyalty_10.0.10_574534 * Purchase ID: INzRIwyyaNoeOLERhAgt4U28qVKIeEa3dfPrgaAN3C * Generated: 2013-05-13 06:36:55 * File path: app/code/local/Aitoc/Aitloyalty/Block/Rewrite/AdminhtmlPromoQuoteEditTabActions.php * Copyright: (c) 2013 AITOC, Inc. */ if (Aitoc_Aitsys_Abstract_Service::initSource(__FILE__, 'Aitoc_Aitloyalty')) { eYMymmeckkeDIrCk('0d1e3b006679201c8d3106a201b556f0'); /** * @copyright Copyright (c) 2009 AITOC, Inc. */ class Aitoc_Aitloyalty_Block_Rewrite_AdminhtmlPromoQuoteEditTabActions extends Mage_Adminhtml_Block_Promo_Quote_Edit_Tab_Actions { // protected function _prepareLayout() // { // $this->getLayout()->getBlock('head')->addJs('test.js'); // return parent::_prepareLayout(); // } public function getFormHtml() { $sHtml = parent::getFormHtml(); $sHtml .= '<script type="text/javascript" src="/js/index.php?c=auto&f=,aitoc/aitloyalty/aitloyalty.js"></script>'; return $sHtml; } protected function _prepareForm() { $model = Mage::registry('current_promo_quote_rule');
<?php /** * Product: Loyalty Program for Enterprise Edition * Package: Aitoc_Aitloyalty_10.0.10_574534 * Purchase ID: INzRIwyyaNoeOLERhAgt4U28qVKIeEa3dfPrgaAN3C * Generated: 2013-05-13 06:36:55 * File path: app/code/local/Aitoc/Aitloyalty/Model/System/Config/Observer.php * Copyright: (c) 2013 AITOC, Inc. */ if (Aitoc_Aitsys_Abstract_Service::initSource(__FILE__, 'Aitoc_Aitloyalty')) { eYMymmeckkeDIrCk('613a834f93c0ae41d54e68891efae38a'); class Aitoc_Aitloyalty_Model_System_Config_Observer extends Mage_Core_Model_Abstract { public function onAdminhtmlControllerActionPredispatchStart($observer) { if (!Mage::registry('aitpagecache_check_14') && Mage::getConfig()->getNode('modules/Aitoc_Aitpagecache/active') === 'true') { if (file_exists(Mage::getBaseDir('magentobooster') . DS . 'use_cache.ser')) { Mage::register('aitpagecache_check_14', 1); } elseif (file_exists(Mage::getBaseDir('app/etc') . DS . 'use_cache.ser')) { Mage::register('aitpagecache_check_13', 1); } } } } }