Version Notes
NOTE: Please download the Latest release 1.2.1 from Releases section!
Download this release
Release Info
| Developer | Magento Core Team |
| Extension | Banners |
| Version | 1.2.1 |
| Comparing to | |
| See all releases | |
Code changes from version 1.2.0 to 1.2.1
app/code/core/Mage/Adminhtml/controllers/System/ConfigController.php
ADDED
|
@@ -0,0 +1,323 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
<?php
|
| 2 |
+
/**
|
| 3 |
+
* Magento
|
| 4 |
+
*
|
| 5 |
+
* NOTICE OF LICENSE
|
| 6 |
+
*
|
| 7 |
+
* This source file is subject to the Open Software License (OSL 3.0)
|
| 8 |
+
* that is bundled with this package in the file LICENSE.txt.
|
| 9 |
+
* It is also available through the world-wide-web at this URL:
|
| 10 |
+
* http://opensource.org/licenses/osl-3.0.php
|
| 11 |
+
* If you did not receive a copy of the license and are unable to
|
| 12 |
+
* obtain it through the world-wide-web, please send an email
|
| 13 |
+
* to license@magentocommerce.com so we can send you a copy immediately.
|
| 14 |
+
*
|
| 15 |
+
* DISCLAIMER
|
| 16 |
+
*
|
| 17 |
+
* Do not edit or add to this file if you wish to upgrade Magento to newer
|
| 18 |
+
* versions in the future. If you wish to customize Magento for your
|
| 19 |
+
* needs please refer to http://www.magentocommerce.com for more information.
|
| 20 |
+
*
|
| 21 |
+
* @category Mage
|
| 22 |
+
* @package Mage_Adminhtml
|
| 23 |
+
* @copyright Copyright (c) 2009 Irubin Consulting Inc. DBA Varien (http://www.varien.com)
|
| 24 |
+
* @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0)
|
| 25 |
+
*/
|
| 26 |
+
|
| 27 |
+
|
| 28 |
+
/**
|
| 29 |
+
* config controller
|
| 30 |
+
*
|
| 31 |
+
* @category Mage
|
| 32 |
+
* @package Mage_Adminhtml
|
| 33 |
+
* @author Magento Core Team <core@magentocommerce.com>
|
| 34 |
+
*/
|
| 35 |
+
class Mage_Adminhtml_System_ConfigController extends Mage_Adminhtml_Controller_Action
|
| 36 |
+
{
|
| 37 |
+
/**
|
| 38 |
+
* Enter description here...
|
| 39 |
+
*
|
| 40 |
+
*/
|
| 41 |
+
public function indexAction()
|
| 42 |
+
{
|
| 43 |
+
$this->_forward('edit');
|
| 44 |
+
}
|
| 45 |
+
|
| 46 |
+
/**
|
| 47 |
+
* Enter description here...
|
| 48 |
+
*
|
| 49 |
+
*/
|
| 50 |
+
public function editAction()
|
| 51 |
+
{
|
| 52 |
+
$this->_title($this->__('System'))->_title($this->__('Configuration'));
|
| 53 |
+
|
| 54 |
+
$current = $this->getRequest()->getParam('section');
|
| 55 |
+
$website = $this->getRequest()->getParam('website');
|
| 56 |
+
$store = $this->getRequest()->getParam('store');
|
| 57 |
+
|
| 58 |
+
$configFields = Mage::getSingleton('adminhtml/config');
|
| 59 |
+
|
| 60 |
+
|
| 61 |
+
$sections = $configFields->getSections($current);
|
| 62 |
+
$section = $sections->$current;
|
| 63 |
+
$hasChildren = $configFields->hasChildren($section, $website, $store);
|
| 64 |
+
if (!$hasChildren && $current) {
|
| 65 |
+
$this->_redirect('*/*/', array('website'=>$website, 'store'=>$store));
|
| 66 |
+
}
|
| 67 |
+
|
| 68 |
+
$this->loadLayout();
|
| 69 |
+
|
| 70 |
+
$this->_setActiveMenu('system/config');
|
| 71 |
+
|
| 72 |
+
$this->_addBreadcrumb(Mage::helper('adminhtml')->__('System'), Mage::helper('adminhtml')->__('System'), $this->getUrl('*/system'));
|
| 73 |
+
|
| 74 |
+
$this->getLayout()->getBlock('left')
|
| 75 |
+
->append($this->getLayout()->createBlock('adminhtml/system_config_tabs')->initTabs());
|
| 76 |
+
|
| 77 |
+
if ($this->_isSectionAllowed($this->getRequest()->getParam('section'))) {
|
| 78 |
+
$this->_addContent($this->getLayout()->createBlock('adminhtml/system_config_edit')->initForm());
|
| 79 |
+
|
| 80 |
+
$this->_addJs($this->getLayout()->createBlock('adminhtml/template')->setTemplate('system/shipping/ups.phtml'));
|
| 81 |
+
$this->_addJs($this->getLayout()->createBlock('adminhtml/template')->setTemplate('system/config/js.phtml'));
|
| 82 |
+
$this->_addJs($this->getLayout()->createBlock('adminhtml/template')->setTemplate('system/shipping/applicable_country.phtml'));
|
| 83 |
+
|
| 84 |
+
$this->renderLayout();
|
| 85 |
+
}
|
| 86 |
+
}
|
| 87 |
+
|
| 88 |
+
/**
|
| 89 |
+
* Enter description here...
|
| 90 |
+
*
|
| 91 |
+
*/
|
| 92 |
+
public function saveAction()
|
| 93 |
+
{
|
| 94 |
+
$session = Mage::getSingleton('adminhtml/session');
|
| 95 |
+
/* @var $session Mage_Adminhtml_Model_Session */
|
| 96 |
+
|
| 97 |
+
$groups = $this->getRequest()->getPost('groups');
|
| 98 |
+
|
| 99 |
+
|
| 100 |
+
if (isset($_FILES['groups']['name']) && is_array($_FILES['groups']['name'])) {
|
| 101 |
+
/**
|
| 102 |
+
* Carefully merge $_FILES and $_POST information
|
| 103 |
+
* None of '+=' or 'array_merge_recursive' can do this correct
|
| 104 |
+
*/
|
| 105 |
+
foreach($_FILES['groups']['name'] as $groupName => $group) {
|
| 106 |
+
if (is_array($group)) {
|
| 107 |
+
foreach ($group['fields'] as $fieldName => $field) {
|
| 108 |
+
if (!empty($field['value'])) {
|
| 109 |
+
$groups[$groupName]['fields'][$fieldName] = array('value' => $field['value']);
|
| 110 |
+
}
|
| 111 |
+
}
|
| 112 |
+
}
|
| 113 |
+
}
|
| 114 |
+
}
|
| 115 |
+
|
| 116 |
+
try {
|
| 117 |
+
if (!$this->_isSectionAllowed($this->getRequest()->getParam('section'))) {
|
| 118 |
+
throw new Exception(Mage::helper('adminhtml')->__('This section is not allowed.'));
|
| 119 |
+
}
|
| 120 |
+
|
| 121 |
+
// custom save logic
|
| 122 |
+
$this->_saveSection();
|
| 123 |
+
$section = $this->getRequest()->getParam('section');
|
| 124 |
+
$website = $this->getRequest()->getParam('website');
|
| 125 |
+
$store = $this->getRequest()->getParam('store');
|
| 126 |
+
Mage::getModel('adminhtml/config_data')
|
| 127 |
+
->setSection($section)
|
| 128 |
+
->setWebsite($website)
|
| 129 |
+
->setStore($store)
|
| 130 |
+
->setGroups($groups)
|
| 131 |
+
->save();
|
| 132 |
+
|
| 133 |
+
// reinit configuration
|
| 134 |
+
Mage::getConfig()->reinit();
|
| 135 |
+
Mage::app()->reinitStores();
|
| 136 |
+
|
| 137 |
+
//Savce Banners data.xml file!
|
| 138 |
+
if($section == "banners") {
|
| 139 |
+
Mage::helper('banners')->generateXML();
|
| 140 |
+
}
|
| 141 |
+
|
| 142 |
+
// website and store codes can be used in event implementation, so set them as well
|
| 143 |
+
Mage::dispatchEvent("admin_system_config_changed_section_{$section}",
|
| 144 |
+
array('website' => $website, 'store' => $store)
|
| 145 |
+
);
|
| 146 |
+
$session->addSuccess(Mage::helper('adminhtml')->__('Configuration successfully saved'));
|
| 147 |
+
}
|
| 148 |
+
catch (Mage_Core_Exception $e) {
|
| 149 |
+
foreach(explode("\n", $e->getMessage()) as $message) {
|
| 150 |
+
$session->addError($message);
|
| 151 |
+
}
|
| 152 |
+
}
|
| 153 |
+
catch (Exception $e) {
|
| 154 |
+
$session->addException($e, Mage::helper('adminhtml')->__('Error while saving this configuration: '.$e->getMessage()));
|
| 155 |
+
}
|
| 156 |
+
|
| 157 |
+
$this->_saveState($this->getRequest()->getPost('config_state'));
|
| 158 |
+
|
| 159 |
+
$this->_redirect('*/*/edit', array('_current' => array('section', 'website', 'store')));
|
| 160 |
+
}
|
| 161 |
+
|
| 162 |
+
/**
|
| 163 |
+
* Custom save logic for section
|
| 164 |
+
*/
|
| 165 |
+
protected function _saveSection ()
|
| 166 |
+
{
|
| 167 |
+
$method = '_save' . uc_words($this->getRequest()->getParam('section'), '');
|
| 168 |
+
if (method_exists($this, $method)) {
|
| 169 |
+
$this->$method();
|
| 170 |
+
}
|
| 171 |
+
}
|
| 172 |
+
|
| 173 |
+
/**
|
| 174 |
+
* Description goes here...
|
| 175 |
+
*/
|
| 176 |
+
protected function _saveAdvanced ()
|
| 177 |
+
{
|
| 178 |
+
Mage::app()->cleanCache(
|
| 179 |
+
array(
|
| 180 |
+
'layout',
|
| 181 |
+
Mage_Core_Model_Layout_Update::LAYOUT_GENERAL_CACHE_TAG
|
| 182 |
+
)
|
| 183 |
+
);
|
| 184 |
+
}
|
| 185 |
+
|
| 186 |
+
/**
|
| 187 |
+
* action for ajax saving of fieldset state
|
| 188 |
+
*
|
| 189 |
+
*/
|
| 190 |
+
public function stateAction()
|
| 191 |
+
{
|
| 192 |
+
if ($this->getRequest()->getParam('isAjax') == 1
|
| 193 |
+
&& $this->getRequest()->getParam('container') != ''
|
| 194 |
+
&& $this->getRequest()->getParam('value') != '') {
|
| 195 |
+
|
| 196 |
+
$configState = array(
|
| 197 |
+
$this->getRequest()->getParam('container') => $this->getRequest()->getParam('value')
|
| 198 |
+
);
|
| 199 |
+
$this->_saveState($configState);
|
| 200 |
+
$this->getResponse()->setBody('success');
|
| 201 |
+
}
|
| 202 |
+
}
|
| 203 |
+
|
| 204 |
+
/**
|
| 205 |
+
* Enter description here...
|
| 206 |
+
*
|
| 207 |
+
*/
|
| 208 |
+
public function exportTableratesAction()
|
| 209 |
+
{
|
| 210 |
+
$websiteModel = Mage::app()->getWebsite($this->getRequest()->getParam('website'));
|
| 211 |
+
|
| 212 |
+
if ($this->getRequest()->getParam('conditionName')) {
|
| 213 |
+
$conditionName = $this->getRequest()->getParam('conditionName');
|
| 214 |
+
} else {
|
| 215 |
+
$conditionName = $websiteModel->getConfig('carriers/tablerate/condition_name');
|
| 216 |
+
}
|
| 217 |
+
|
| 218 |
+
$tableratesCollection = Mage::getResourceModel('shipping/carrier_tablerate_collection');
|
| 219 |
+
/* @var $tableratesCollection Mage_Shipping_Model_Mysql4_Carrier_Tablerate_Collection */
|
| 220 |
+
$tableratesCollection->setConditionFilter($conditionName);
|
| 221 |
+
$tableratesCollection->setWebsiteFilter($websiteModel->getId());
|
| 222 |
+
$tableratesCollection->load();
|
| 223 |
+
|
| 224 |
+
$csv = '';
|
| 225 |
+
|
| 226 |
+
$conditionName = Mage::getModel('shipping/carrier_tablerate')->getCode('condition_name_short', $conditionName);
|
| 227 |
+
|
| 228 |
+
$csvHeader = array('"'.Mage::helper('adminhtml')->__('Country').'"', '"'.Mage::helper('adminhtml')->__('Region/State').'"', '"'.Mage::helper('adminhtml')->__('Zip/Postal Code').'"', '"'.$conditionName.'"', '"'.Mage::helper('adminhtml')->__('Shipping Price').'"');
|
| 229 |
+
$csv .= implode(',', $csvHeader)."\n";
|
| 230 |
+
|
| 231 |
+
foreach ($tableratesCollection->getItems() as $item) {
|
| 232 |
+
if ($item->getData('dest_country') == '') {
|
| 233 |
+
$country = '*';
|
| 234 |
+
} else {
|
| 235 |
+
$country = $item->getData('dest_country');
|
| 236 |
+
}
|
| 237 |
+
if ($item->getData('dest_region') == '') {
|
| 238 |
+
$region = '*';
|
| 239 |
+
} else {
|
| 240 |
+
$region = $item->getData('dest_region');
|
| 241 |
+
}
|
| 242 |
+
if ($item->getData('dest_zip') == '') {
|
| 243 |
+
$zip = '*';
|
| 244 |
+
} else {
|
| 245 |
+
$zip = $item->getData('dest_zip');
|
| 246 |
+
}
|
| 247 |
+
|
| 248 |
+
$csvData = array($country, $region, $zip, $item->getData('condition_value'), $item->getData('price'));
|
| 249 |
+
foreach ($csvData as $cell) {
|
| 250 |
+
$cell = '"'.str_replace('"', '""', $cell).'"';
|
| 251 |
+
}
|
| 252 |
+
$csv .= implode(',', $csvData)."\n";
|
| 253 |
+
}
|
| 254 |
+
|
| 255 |
+
header('Pragma: public');
|
| 256 |
+
header('Cache-Control: must-revalidate, post-check=0, pre-check=0');
|
| 257 |
+
|
| 258 |
+
header("Content-type: application/octet-stream");
|
| 259 |
+
header("Content-disposition: attachment; filename=tablerates.csv");
|
| 260 |
+
echo $csv;
|
| 261 |
+
exit;
|
| 262 |
+
}
|
| 263 |
+
|
| 264 |
+
/**
|
| 265 |
+
* Enter description here...
|
| 266 |
+
*
|
| 267 |
+
*/
|
| 268 |
+
protected function _isAllowed()
|
| 269 |
+
{
|
| 270 |
+
return Mage::getSingleton('admin/session')->isAllowed('system/config');
|
| 271 |
+
}
|
| 272 |
+
|
| 273 |
+
/**
|
| 274 |
+
* Check if specified section allowed in ACL
|
| 275 |
+
*
|
| 276 |
+
* Will forward to deniedAction(), if not allowed.
|
| 277 |
+
*
|
| 278 |
+
* @param string $section
|
| 279 |
+
* @return bool
|
| 280 |
+
*/
|
| 281 |
+
protected function _isSectionAllowed($section)
|
| 282 |
+
{
|
| 283 |
+
try {
|
| 284 |
+
$session = Mage::getSingleton('admin/session');
|
| 285 |
+
$resourceLookup = "admin/system/config/{$section}";
|
| 286 |
+
$resourceId = $session->getData('acl')->get($resourceLookup)->getResourceId();
|
| 287 |
+
if (!$session->isAllowed($resourceId)) {
|
| 288 |
+
throw new Exception('');
|
| 289 |
+
}
|
| 290 |
+
return true;
|
| 291 |
+
}
|
| 292 |
+
catch (Exception $e) {
|
| 293 |
+
$this->_forward('denied');
|
| 294 |
+
return false;
|
| 295 |
+
}
|
| 296 |
+
}
|
| 297 |
+
|
| 298 |
+
/**
|
| 299 |
+
* saving state of config field sets
|
| 300 |
+
*
|
| 301 |
+
* @param array $configState
|
| 302 |
+
* @return bool
|
| 303 |
+
*/
|
| 304 |
+
protected function _saveState($configState = array())
|
| 305 |
+
{
|
| 306 |
+
$adminUser = Mage::getSingleton('admin/session')->getUser();
|
| 307 |
+
if (is_array($configState)) {
|
| 308 |
+
$extra = $adminUser->getExtra();
|
| 309 |
+
if (!is_array($extra)) {
|
| 310 |
+
$extra = array();
|
| 311 |
+
}
|
| 312 |
+
if (!isset($extra['configState'])) {
|
| 313 |
+
$extra['configState'] = array();
|
| 314 |
+
}
|
| 315 |
+
foreach ($configState as $fieldset => $state) {
|
| 316 |
+
$extra['configState'][$fieldset] = $state;
|
| 317 |
+
}
|
| 318 |
+
$adminUser->saveExtra($extra);
|
| 319 |
+
}
|
| 320 |
+
|
| 321 |
+
return true;
|
| 322 |
+
}
|
| 323 |
+
}
|
app/code/core/Mage/Adminhtml/controllers/SystemController.php
DELETED
|
@@ -1,57 +0,0 @@
|
|
| 1 |
-
<?php
|
| 2 |
-
/**
|
| 3 |
-
* Magento
|
| 4 |
-
*
|
| 5 |
-
* NOTICE OF LICENSE
|
| 6 |
-
*
|
| 7 |
-
* This source file is subject to the Open Software License (OSL 3.0)
|
| 8 |
-
* that is bundled with this package in the file LICENSE.txt.
|
| 9 |
-
* It is also available through the world-wide-web at this URL:
|
| 10 |
-
* http://opensource.org/licenses/osl-3.0.php
|
| 11 |
-
* If you did not receive a copy of the license and are unable to
|
| 12 |
-
* obtain it through the world-wide-web, please send an email
|
| 13 |
-
* to license@magentocommerce.com so we can send you a copy immediately.
|
| 14 |
-
*
|
| 15 |
-
* DISCLAIMER
|
| 16 |
-
*
|
| 17 |
-
* Do not edit or add to this file if you wish to upgrade Magento to newer
|
| 18 |
-
* versions in the future. If you wish to customize Magento for your
|
| 19 |
-
* needs please refer to http://www.magentocommerce.com for more information.
|
| 20 |
-
*
|
| 21 |
-
* @category Mage
|
| 22 |
-
* @package Mage_Adminhtml
|
| 23 |
-
* @copyright Copyright (c) 2009 Irubin Consulting Inc. DBA Varien (http://www.varien.com)
|
| 24 |
-
* @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0)
|
| 25 |
-
*/
|
| 26 |
-
|
| 27 |
-
/**
|
| 28 |
-
* System admin controller
|
| 29 |
-
*
|
| 30 |
-
* @category Mage
|
| 31 |
-
* @package Mage_Adminhtml
|
| 32 |
-
* @author Magento Core Team <core@magentocommerce.com>
|
| 33 |
-
*/
|
| 34 |
-
class Mage_Adminhtml_SystemController extends Mage_Adminhtml_Controller_Action
|
| 35 |
-
{
|
| 36 |
-
public function indexAction()
|
| 37 |
-
{
|
| 38 |
-
$this->loadLayout();
|
| 39 |
-
$this->_setActiveMenu('system');
|
| 40 |
-
$this->_addBreadcrumb(Mage::helper('adminhtml')->__('System'), Mage::helper('adminhtml')->__('System'));
|
| 41 |
-
$this->renderLayout();
|
| 42 |
-
}
|
| 43 |
-
|
| 44 |
-
public function setStoreAction()
|
| 45 |
-
{
|
| 46 |
-
$storeId = (int) $this->getRequest()->getParam('store');
|
| 47 |
-
if ($storeId) {
|
| 48 |
-
Mage::getSingleton('adminhtml/session')->setStoreId($storeId);
|
| 49 |
-
}
|
| 50 |
-
$this->_redirectReferer();
|
| 51 |
-
}
|
| 52 |
-
|
| 53 |
-
protected function _isAllowed()
|
| 54 |
-
{
|
| 55 |
-
return Mage::getSingleton('admin/session')->isAllowed('system');
|
| 56 |
-
}
|
| 57 |
-
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
media/Banners/images/Thumbs.db
CHANGED
|
Binary file
|
package.xml
CHANGED
|
@@ -1,18 +1,18 @@
|
|
| 1 |
<?xml version="1.0"?>
|
| 2 |
<package>
|
| 3 |
<name>Banners</name>
|
| 4 |
-
<version>1.2.
|
| 5 |
<stability>stable</stability>
|
| 6 |
<license uri="http://opensource.org/licenses/osl-3.0.php">OSL V3.0</license>
|
| 7 |
<channel>community</channel>
|
| 8 |
<extends/>
|
| 9 |
<summary>Banner is a flexible solution that allow to manage banners in the easiest way.</summary>
|
| 10 |
<description>Banner is a flexible solution that allow to manage banners in the easiest way.</description>
|
| 11 |
-
<notes>NOTE: Please download the Latest release 1.2.
|
| 12 |
<authors><author><name>Kamran Rafiq Malik</name><user>auto-converted</user><email>kamran.malik@unitedsol.net</email></author></authors>
|
| 13 |
<date>2010-04-19</date>
|
| 14 |
-
<time>
|
| 15 |
-
<contents><target name="mage"><dir name="media"><dir name="Banners"><dir name="images"><file name="logo.png" hash="e33c86d89150a2d02f293f99aad7c062"/><file name="Thumbs.db" hash="
|
| 16 |
<compatible/>
|
| 17 |
<dependencies/>
|
| 18 |
</package>
|
| 1 |
<?xml version="1.0"?>
|
| 2 |
<package>
|
| 3 |
<name>Banners</name>
|
| 4 |
+
<version>1.2.1</version>
|
| 5 |
<stability>stable</stability>
|
| 6 |
<license uri="http://opensource.org/licenses/osl-3.0.php">OSL V3.0</license>
|
| 7 |
<channel>community</channel>
|
| 8 |
<extends/>
|
| 9 |
<summary>Banner is a flexible solution that allow to manage banners in the easiest way.</summary>
|
| 10 |
<description>Banner is a flexible solution that allow to manage banners in the easiest way.</description>
|
| 11 |
+
<notes>NOTE: Please download the Latest release 1.2.1 from Releases section!</notes>
|
| 12 |
<authors><author><name>Kamran Rafiq Malik</name><user>auto-converted</user><email>kamran.malik@unitedsol.net</email></author></authors>
|
| 13 |
<date>2010-04-19</date>
|
| 14 |
+
<time>09:11:16</time>
|
| 15 |
+
<contents><target name="mage"><dir name="media"><dir name="Banners"><dir name="images"><file name="logo.png" hash="e33c86d89150a2d02f293f99aad7c062"/><file name="Thumbs.db" hash="b65211a9d1d1a9a7b7635037b76c66b5"/></dir><dir name="swf"><file name="banner.fla" hash="6c9b61429a2cf82af339e0dfe7b89911"/><file name="banner.swf" hash="3aa22fdf4e195134e9da0c781a5c6670"/><file name="swfobject.js" hash="b687734407abd950392ae2344b283b2c"/></dir><file name="banner.swf" hash="3aa22fdf4e195134e9da0c781a5c6670"/><file name="data.xml" hash="4ba9feb2b21520789678d4f95ebfe65e"/></dir></dir></target><target name="magedesign"><dir name="adminhtml"><dir name="default"><dir name="default"><dir name="layout"><file name="banners.xml" hash="f614af3a90e6ecadc2fea0a7bd1966a9"/></dir></dir></dir></dir><dir name="frontend"><dir name="default"><dir name="default"><dir name="layout"><file name="banners.xml" hash="eaeb8086698ff4465edebcd738ecda25"/></dir><dir name="template"><dir name="banners"><file name="banners.phtml" hash="1c513dc4115653293812e4103784d881"/></dir></dir></dir></dir></dir></target><target name="magecore"><dir name="Mage"><dir name="Adminhtml"><dir name="controllers"><dir name="System"><file name="ConfigController.php" hash="e5ae64d7fde4458fcb83d062abd80909"/></dir></dir></dir></dir></target><target name="magelocal"><dir name="Mage"><dir name="Banners"><dir name="Block"><dir name="Adminhtml"><dir name="Banners"><dir name="Edit"><dir name="Tab"><file name="Form.php" hash="e09386ac043a9d6fe402a3f8ff0bca25"/></dir><file name="Form.php" hash="5d28449951793e81ddbe3c5be99fad57"/><file name="Tabs.php" hash="f2bf342dfb322366e4d509a35aafd8d5"/></dir><file name="Edit.php" hash="4b31a335d0cce9c08c83033effd2ecd1"/><file name="Grid.php" hash="899bb9d583533515949c0ac2daea7c37"/></dir><file name="Banners.php" hash="f2445f14f813ce3276ddb6968112c0cc"/></dir><file name="Banners.php" hash="5cec22181d5bd36e46db16a37a53c2fe"/></dir><dir name="controllers"><dir name="Adminhtml"><file name="BannersController.php" hash="e5b325df277c81e64c26ba7127512eae"/></dir><file name="IndexController.php" hash="9ca1c7010326b5ce868c5158eef39411"/></dir><dir name="etc"><file name="config.xml" hash="c04d625b5ebb66928dd9b309a3c9b8fc"/><file name="system.xml" hash="9a264a9c392206ef61ed5e17139f9386"/></dir><dir name="Helper"><file name="Data.php" hash="987b8f60662e4122192f78288b632f2a"/></dir><dir name="Model"><dir name="Mysql4"><dir name="Banners"><file name="Collection.php" hash="3ba445eb7573d27e26f010b1eeadb043"/></dir><file name="Banners.php" hash="527016301edf177b1604dbe98c722756"/></dir><file name="Banners.php" hash="07374201a9f0549c2986f42ece034a8b"/><file name="Status.php" hash="3c3c447dadb5cd5e12308e5cf435d70c"/></dir><dir name="sql"><dir name="banners_setup"><file name="mysql4-install-0.1.0.php" hash="599bf22c4fd8376ee08358763b1f9052"/></dir></dir></dir></dir></target><target name="mageetc"><dir name="modules"><file name="Mage_Banners.xml" hash="00231c699a70c089c808243400500e5e"/></dir></target><target name="magelib"><dir name="Varien"><dir name="Data"><dir name="Form"><dir name="Element"><file name="Thumbnail.php" hash="8909f9c5df2188e6eefc3f6509cafa76"/></dir></dir></dir></dir></target></contents>
|
| 16 |
<compatible/>
|
| 17 |
<dependencies/>
|
| 18 |
</package>
|
