Version Notes
+ Enable/Disable Direct link Login
+ Ability to select order statuses are displayed in the statistics.
minor bugfixes
Download this release
Release Info
Developer | AW_Core_Team |
Extension | AW_Onpulse |
Version | 1.0.8 |
Comparing to | |
See all releases |
Code changes from version 1.0.7 to 1.0.8
- app/code/local/AW/All/Block/Jsinit.php +0 -227
- app/code/local/AW/All/Block/Notification/Window.php +0 -62
- app/code/local/AW/All/Block/System/Config/Form/Fieldset/Awall/Extensions.php +0 -194
- app/code/local/AW/All/Block/System/Config/Form/Fieldset/Awall/Store.php +0 -33
- app/code/local/AW/All/Helper/Config.php +0 -31
- app/code/local/AW/All/Helper/Data.php +0 -24
- app/code/local/AW/All/Helper/Versions.php +0 -94
- app/code/local/AW/All/Model/Feed.php +0 -91
- app/code/local/AW/All/Model/Feed/Abstract.php +0 -64
- app/code/local/AW/All/Model/Feed/Extensions.php +0 -122
- app/code/local/AW/All/Model/Feed/Updates.php +0 -129
- app/code/local/AW/All/Model/Source/Updates/Type.php +0 -80
- app/code/local/AW/All/etc/adminhtml.xml +0 -49
- app/code/local/AW/All/etc/config.xml +0 -122
- app/code/local/AW/All/etc/system.xml +0 -84
- app/code/local/AW/Onpulse/Model/Aggregator/Components/Statistics.php +13 -4
- app/code/local/AW/Onpulse/Model/Credentials.php +59 -33
- app/code/local/AW/Onpulse/etc/config.xml +7 -2
- app/code/local/AW/Onpulse/etc/system.xml +19 -0
- app/design/adminhtml/default/default/layout/aw_all.xml +0 -17
- app/design/adminhtml/default/default/template/aw_all/jsinit.phtml +0 -32
- app/design/adminhtml/default/default/template/aw_all/notification/window.phtml +0 -74
- app/design/adminhtml/default/default/template/aw_all/notification/window/first-run.phtml +0 -65
- app/design/adminhtml/default/default/template/aw_onpulse/settings.phtml +38 -2
- app/etc/modules/AW_All.xml +0 -9
- app/locale/en_US/AW_Onpulse.csv +11 -7
- js/aw_all/aw_all.js +0 -11
- package.xml +7 -5
- skin/adminhtml/default/default/aw_all/css/window.css +0 -94
- skin/adminhtml/default/default/aw_all/images/bad.gif +0 -0
- skin/adminhtml/default/default/aw_all/images/delete.jpg +0 -0
- skin/adminhtml/default/default/aw_all/images/info.gif +0 -0
- skin/adminhtml/default/default/aw_all/images/ok.gif +0 -0
- skin/adminhtml/default/default/aw_all/images/readme.png +0 -0
- skin/adminhtml/default/default/aw_all/images/store.png +0 -0
- skin/adminhtml/default/default/aw_all/images/update.gif +0 -0
- skin/adminhtml/default/default/aw_all/images/window/arrow.gif +0 -0
- skin/adminhtml/default/default/aw_all/images/window/btn-close.gif +0 -0
app/code/local/AW/All/Block/Jsinit.php
DELETED
@@ -1,227 +0,0 @@
|
|
1 |
-
<?php
|
2 |
-
/**
|
3 |
-
* aheadWorks Co.
|
4 |
-
*
|
5 |
-
* NOTICE OF LICENSE
|
6 |
-
*
|
7 |
-
* This source file is subject to the EULA
|
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://ecommerce.aheadworks.com/LICENSE-M1.txt
|
11 |
-
*
|
12 |
-
* @category AW
|
13 |
-
* @package AW_All
|
14 |
-
* @copyright Copyright (c) 2009-2010 aheadWorks Co. (http://www.aheadworks.com)
|
15 |
-
* @license http://ecommerce.aheadworks.com/LICENSE-M1.txt
|
16 |
-
*/
|
17 |
-
class AW_All_Block_Jsinit extends Mage_Adminhtml_Block_Template
|
18 |
-
{
|
19 |
-
|
20 |
-
|
21 |
-
protected $_platform = -1;
|
22 |
-
protected $_extensions_cache = array();
|
23 |
-
protected $_extensions;
|
24 |
-
|
25 |
-
protected $_section = '';
|
26 |
-
protected $_store_data = null;
|
27 |
-
|
28 |
-
/**
|
29 |
-
* Include JS in head if section is moneybookers
|
30 |
-
*/
|
31 |
-
protected function _prepareLayout()
|
32 |
-
{
|
33 |
-
$this->_section = $this->getAction()->getRequest()->getParam('section', false);
|
34 |
-
if ($this->_section == 'awall') {
|
35 |
-
$this->getLayout()
|
36 |
-
->getBlock('head')
|
37 |
-
->addJs('aw_all/aw_all.js');
|
38 |
-
$this->setData('extensions', $this->_initExtensions());
|
39 |
-
} elseif ($this->_section == 'awstore') {
|
40 |
-
// AW extensions store
|
41 |
-
$this->getLayout()
|
42 |
-
->getBlock('head')
|
43 |
-
->addJs('aw_all/aw_all.js');
|
44 |
-
$this->setData('store_data', $this->_getStoreData());
|
45 |
-
}
|
46 |
-
parent::_prepareLayout();
|
47 |
-
}
|
48 |
-
|
49 |
-
/**
|
50 |
-
* Print init JS script into body
|
51 |
-
* @return string
|
52 |
-
*/
|
53 |
-
protected function _toHtml()
|
54 |
-
{
|
55 |
-
if ($this->_section == 'awall' || $this->_section == 'awstore') {
|
56 |
-
return parent::_toHtml();
|
57 |
-
} else {
|
58 |
-
return '';
|
59 |
-
}
|
60 |
-
}
|
61 |
-
|
62 |
-
protected function _initExtensions()
|
63 |
-
{
|
64 |
-
|
65 |
-
$extensions = array();
|
66 |
-
|
67 |
-
$modules = array_keys((array)Mage::getConfig()->getNode('modules')->children());
|
68 |
-
sort($modules);
|
69 |
-
|
70 |
-
foreach ($modules as $moduleName) {
|
71 |
-
if (strstr($moduleName, 'AW_') === false) {
|
72 |
-
continue;
|
73 |
-
}
|
74 |
-
|
75 |
-
if ($moduleName == 'AW_Core' || $moduleName == 'AW_All') {
|
76 |
-
continue;
|
77 |
-
}
|
78 |
-
// Detect extension platform
|
79 |
-
try {
|
80 |
-
if ($platform = Mage::getConfig()->getNode("modules/$moduleName/platform")) {
|
81 |
-
$platform = strtolower($platform);
|
82 |
-
$ignore_platform = false;
|
83 |
-
} else {
|
84 |
-
throw new Exception();
|
85 |
-
}
|
86 |
-
} catch (Exception $e) {
|
87 |
-
$platform = "ce";
|
88 |
-
$ignore_platform = true;
|
89 |
-
}
|
90 |
-
$platform = AW_All_Helper_Versions::convertPlatform($platform);
|
91 |
-
|
92 |
-
// Detect installed version
|
93 |
-
$ver = (Mage::getConfig()->getModuleConfig($moduleName)->version);
|
94 |
-
$isPlatformValid = $platform >= $this->getPlatform();
|
95 |
-
$feedInfo = $this->getExtensionInfo($moduleName);
|
96 |
-
|
97 |
-
$upgradeAvailable = ($this->_convertVersion($feedInfo->getLatestVersion()) - $this->_convertVersion($ver)) > 0;
|
98 |
-
|
99 |
-
$extensions[] = new Varien_Object(array(
|
100 |
-
'version' => $ver,
|
101 |
-
'name' => $moduleName,
|
102 |
-
'is_platform_valid' => $isPlatformValid,
|
103 |
-
'platform' => $platform,
|
104 |
-
'feed_info' => $feedInfo,
|
105 |
-
'upgrade_available' => $upgradeAvailable
|
106 |
-
));
|
107 |
-
}
|
108 |
-
return $extensions;
|
109 |
-
}
|
110 |
-
|
111 |
-
/**
|
112 |
-
* Convert version to comparable integer
|
113 |
-
* @param $v
|
114 |
-
* @return int
|
115 |
-
*/
|
116 |
-
protected function _convertVersion($v)
|
117 |
-
{
|
118 |
-
$digits = @explode(".", $v);
|
119 |
-
$version = 0;
|
120 |
-
if (is_array($digits)) {
|
121 |
-
foreach ($digits as $k => $v) {
|
122 |
-
$version += ($v * pow(10, max(0, (3 - $k))));
|
123 |
-
}
|
124 |
-
}
|
125 |
-
return $version;
|
126 |
-
}
|
127 |
-
|
128 |
-
|
129 |
-
/**
|
130 |
-
* Get extension info from cached feed
|
131 |
-
* @param $moduleName
|
132 |
-
* @return bool|Varien_Object
|
133 |
-
*/
|
134 |
-
public function getExtensionInfo($moduleName)
|
135 |
-
{
|
136 |
-
if (!sizeof($this->_extensions_cache)) {
|
137 |
-
if ($displayNames = Mage::app()->loadCache('aw_all_extensions_feed')) {
|
138 |
-
$this->_extensions_cache = @unserialize($displayNames);
|
139 |
-
}
|
140 |
-
}
|
141 |
-
if (array_key_exists($moduleName, $this->_extensions_cache)) {
|
142 |
-
$data = array(
|
143 |
-
'url' => @$this->_extensions_cache[$moduleName]['url'],
|
144 |
-
'display_name' => @$this->_extensions_cache[$moduleName]['display_name'],
|
145 |
-
'latest_version' => @$this->_extensions_cache[$moduleName]['version']
|
146 |
-
);
|
147 |
-
return new Varien_Object($data);
|
148 |
-
}
|
149 |
-
return new Varien_Object();
|
150 |
-
}
|
151 |
-
|
152 |
-
/**
|
153 |
-
* Return icon for installed extension
|
154 |
-
* @param $Extension
|
155 |
-
* @return Varien_Object
|
156 |
-
*/
|
157 |
-
public function getIcon($Extension)
|
158 |
-
{
|
159 |
-
if ($Extension->getUpgradeAvailable()) {
|
160 |
-
$icon = 'aw_all/images/update.gif';
|
161 |
-
$title = "Update available";
|
162 |
-
} elseif (!$Extension->getIsPlatformValid()) {
|
163 |
-
$icon = 'aw_all/images/bad.gif';
|
164 |
-
$title = "Wrong Extension Platform";
|
165 |
-
} else {
|
166 |
-
$icon = 'aw_all/images/ok.gif';
|
167 |
-
$title = "Installed and up to date";
|
168 |
-
}
|
169 |
-
return new Varien_Object(array('title' => $title, 'source' => $this->getSkinUrl($icon)));
|
170 |
-
}
|
171 |
-
|
172 |
-
/**
|
173 |
-
* Fetch store data and return as Varien Object
|
174 |
-
* @return Varien_Object
|
175 |
-
*/
|
176 |
-
protected function _getStoreData()
|
177 |
-
{
|
178 |
-
if (!is_null($this->_store_data))
|
179 |
-
return $this->_store_data;
|
180 |
-
$storeData = array();
|
181 |
-
$connection = $this->_getStoreConnection();
|
182 |
-
$storeResponse = $connection->read();
|
183 |
-
|
184 |
-
if ($storeResponse !== false) {
|
185 |
-
$storeResponse = preg_split('/^\r?$/m', $storeResponse, 2);
|
186 |
-
$storeResponse = trim($storeResponse[1]);
|
187 |
-
Mage::app()->saveCache($storeResponse, AW_All_Helper_Config::STORE_RESPONSE_CACHE_KEY);
|
188 |
-
}
|
189 |
-
else {
|
190 |
-
$storeResponse = Mage::app()->loadCache(AW_All_Helper_Config::STORE_RESPONSE_CACHE_KEY);
|
191 |
-
if (!$storeResponse) {
|
192 |
-
Mage::getSingleton('adminhtml/session')->addError($this->__('Sorry, but Extensions Store is not available now. Please try again in a few minutes.'));
|
193 |
-
}
|
194 |
-
}
|
195 |
-
|
196 |
-
$connection->close();
|
197 |
-
$this->_store_data = new Varien_Object(array('text_response' => $storeResponse));
|
198 |
-
return $this->_store_data;
|
199 |
-
}
|
200 |
-
|
201 |
-
/**
|
202 |
-
* Returns URL to store
|
203 |
-
* @return Varien_Http_Adapter_Curl
|
204 |
-
*/
|
205 |
-
protected function _getStoreConnection()
|
206 |
-
{
|
207 |
-
$params = array(
|
208 |
-
|
209 |
-
);
|
210 |
-
$url = array();
|
211 |
-
foreach ($params as $k => $v) {
|
212 |
-
$url[] = urlencode($k) . "=" . urlencode($v);
|
213 |
-
}
|
214 |
-
$url = rtrim(AW_All_Helper_Config::STORE_URL) . (sizeof($url) ? ("?" . implode("&", $url)) : "");
|
215 |
-
|
216 |
-
$curl = new Varien_Http_Adapter_Curl();
|
217 |
-
$curl->setConfig(array(
|
218 |
-
'timeout' => 5
|
219 |
-
));
|
220 |
-
$curl->write(Zend_Http_Client::GET, $url, '1.0');
|
221 |
-
|
222 |
-
return $curl;
|
223 |
-
}
|
224 |
-
|
225 |
-
|
226 |
-
}
|
227 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
app/code/local/AW/All/Block/Notification/Window.php
DELETED
@@ -1,62 +0,0 @@
|
|
1 |
-
<?php
|
2 |
-
/**
|
3 |
-
* aheadWorks Co.
|
4 |
-
*
|
5 |
-
* NOTICE OF LICENSE
|
6 |
-
*
|
7 |
-
* This source file is subject to the EULA
|
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://ecommerce.aheadworks.com/LICENSE-M1.txt
|
11 |
-
*
|
12 |
-
* @category AW
|
13 |
-
* @package AW_All
|
14 |
-
* @copyright Copyright (c) 2009-2010 aheadWorks Co. (http://www.aheadworks.com)
|
15 |
-
* @license http://ecommerce.aheadworks.com/LICENSE-M1.txt
|
16 |
-
*/
|
17 |
-
|
18 |
-
class AW_All_Block_Notification_Window extends Mage_Adminhtml_Block_Notification_Window
|
19 |
-
{
|
20 |
-
protected function _construct()
|
21 |
-
{
|
22 |
-
parent::_construct();
|
23 |
-
|
24 |
-
if (!Mage::getStoreConfig('awall/install/run')) {
|
25 |
-
$c = Mage::getModel('core/config_data');
|
26 |
-
$c
|
27 |
-
->setScope('default')
|
28 |
-
->setPath('awall/install/run')
|
29 |
-
->setValue(time())
|
30 |
-
->save();
|
31 |
-
$this->setHeaderText($this->__("aheadWorks Notifications Setup"));
|
32 |
-
$this->setIsFirstRun(1);
|
33 |
-
$this->setIsHtml(1);
|
34 |
-
|
35 |
-
}
|
36 |
-
}
|
37 |
-
|
38 |
-
protected function _toHtml()
|
39 |
-
{
|
40 |
-
if ($this->getIsHtml()) {
|
41 |
-
$this->setTemplate('aw_all/notification/window.phtml');
|
42 |
-
}
|
43 |
-
return parent::_toHtml();
|
44 |
-
}
|
45 |
-
|
46 |
-
public function presetFirstSetup()
|
47 |
-
{
|
48 |
-
|
49 |
-
}
|
50 |
-
|
51 |
-
public function getNoticeMessageText()
|
52 |
-
{
|
53 |
-
if ($this->getIsFirstRun()) {
|
54 |
-
$child = $this->getLayout()->createBlock('core/template')->setTemplate('aw_all/notification/window/first-run.phtml')->toHtml();
|
55 |
-
return $child;
|
56 |
-
} else {
|
57 |
-
return $this->getData('notice_message_text');
|
58 |
-
}
|
59 |
-
}
|
60 |
-
|
61 |
-
|
62 |
-
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
app/code/local/AW/All/Block/System/Config/Form/Fieldset/Awall/Extensions.php
DELETED
@@ -1,194 +0,0 @@
|
|
1 |
-
<?php
|
2 |
-
/**
|
3 |
-
* aheadWorks Co.
|
4 |
-
*
|
5 |
-
* NOTICE OF LICENSE
|
6 |
-
*
|
7 |
-
* This source file is subject to the EULA
|
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://ecommerce.aheadworks.com/LICENSE-M1.txt
|
11 |
-
*
|
12 |
-
* @category AW
|
13 |
-
* @package AW_All
|
14 |
-
* @copyright Copyright (c) 2009-2010 aheadWorks Co. (http://www.aheadworks.com)
|
15 |
-
* @license http://ecommerce.aheadworks.com/LICENSE-M1.txt
|
16 |
-
*/
|
17 |
-
|
18 |
-
|
19 |
-
class AW_All_Block_System_Config_Form_Fieldset_Awall_Extensions extends Mage_Adminhtml_Block_System_Config_Form_Fieldset
|
20 |
-
{
|
21 |
-
|
22 |
-
protected $_dummyElement;
|
23 |
-
protected $_fieldRenderer;
|
24 |
-
protected $_values;
|
25 |
-
|
26 |
-
public function render(Varien_Data_Form_Element_Abstract $element)
|
27 |
-
{
|
28 |
-
$html = $this->_getHeaderHtml($element);
|
29 |
-
/*$modules = array_keys((array)Mage::getConfig()->getNode('modules')->children());
|
30 |
-
sort($modules);
|
31 |
-
|
32 |
-
foreach ($modules as $moduleName) {
|
33 |
-
if (strstr($moduleName,'AW_') === false) {
|
34 |
-
continue;
|
35 |
-
}
|
36 |
-
|
37 |
-
if($moduleName == 'AW_Core' || $moduleName == 'AW_All'){
|
38 |
-
continue;
|
39 |
-
}
|
40 |
-
|
41 |
-
$html.= $this->_getFieldHtml($element, $moduleName);
|
42 |
-
}*/
|
43 |
-
$html .= $this->_getFooterHtml($element);
|
44 |
-
|
45 |
-
return $html;
|
46 |
-
}
|
47 |
-
|
48 |
-
/**
|
49 |
-
* @deprecated
|
50 |
-
* @return
|
51 |
-
*/
|
52 |
-
protected function _getDummyElement()
|
53 |
-
{
|
54 |
-
if (empty($this->_dummyElement)) {
|
55 |
-
$this->_dummyElement = new Varien_Object(array('show_in_default' => 1, 'show_in_website' => 1));
|
56 |
-
}
|
57 |
-
return $this->_dummyElement;
|
58 |
-
}
|
59 |
-
|
60 |
-
/**
|
61 |
-
* @deprecated
|
62 |
-
* @return
|
63 |
-
*/
|
64 |
-
protected function _getFieldRenderer()
|
65 |
-
{
|
66 |
-
if (empty($this->_fieldRenderer)) {
|
67 |
-
$this->_fieldRenderer = Mage::getBlockSingleton('adminhtml/system_config_form_field');
|
68 |
-
}
|
69 |
-
return $this->_fieldRenderer;
|
70 |
-
}
|
71 |
-
|
72 |
-
/**
|
73 |
-
* @deprecated
|
74 |
-
* @throws Exception
|
75 |
-
* @param $fieldset
|
76 |
-
* @param $moduleName
|
77 |
-
* @return string
|
78 |
-
*/
|
79 |
-
protected function _getFieldHtml($fieldset, $moduleName)
|
80 |
-
{
|
81 |
-
|
82 |
-
|
83 |
-
$configData = $this->getConfigData();
|
84 |
-
|
85 |
-
try {
|
86 |
-
if ($platform = Mage::getConfig()->getNode("modules/$moduleName/platform")) {
|
87 |
-
$platform = strtolower($platform);
|
88 |
-
$ignore_platform = false;
|
89 |
-
} else {
|
90 |
-
throw new Exception();
|
91 |
-
}
|
92 |
-
} catch (Exception $e) {
|
93 |
-
$platform = "ce";
|
94 |
-
$ignore_platform = true;
|
95 |
-
}
|
96 |
-
|
97 |
-
|
98 |
-
$path = 'advanced/modules_disable_output/' . $moduleName; //TODO: move as property of form
|
99 |
-
$data = isset($configData[$path]) ? $configData[$path] : array();
|
100 |
-
|
101 |
-
$e = $this->_getDummyElement();
|
102 |
-
|
103 |
-
$moduleKey = substr($moduleName, strpos($moduleName, '_') + 1);
|
104 |
-
$ver = (Mage::getConfig()->getModuleConfig($moduleName)->version);
|
105 |
-
$id = $moduleName;
|
106 |
-
|
107 |
-
$warning = "";
|
108 |
-
if (!$ignore_platform) {
|
109 |
-
$magentoVersion = $this->_convertVersion(Mage::getVersion());
|
110 |
-
|
111 |
-
if ($magentoVersion >= $this->_convertVersion(AW_All_Helper_Config::ENTERPRISE_VERSION)) {
|
112 |
-
// EE
|
113 |
-
if ($platform == 'ce' || $platform == 'pe') {
|
114 |
-
$warning = $this->__("This extension can't be run under Magento Enterprise platform. You need Enterprise version of the extension.");
|
115 |
-
}
|
116 |
-
|
117 |
-
} elseif ($magentoVersion >= $this->_convertVersion(AW_All_Helper_Config::PROFESSIONAL_EDITION)) {
|
118 |
-
// PE
|
119 |
-
if ($platform == 'ce') {
|
120 |
-
$warning = $this->__("This extension can't be run under Magento Professional platform. You need Professional version of the extension.");
|
121 |
-
}
|
122 |
-
} else {
|
123 |
-
// CE
|
124 |
-
}
|
125 |
-
}
|
126 |
-
|
127 |
-
|
128 |
-
$hasUpdate = false;
|
129 |
-
if ($displayNames = Mage::app()->loadCache('aw_all_extensions_feed')) {
|
130 |
-
if ($displayNames = unserialize($displayNames)) {
|
131 |
-
if (isset($displayNames[$moduleName])) {
|
132 |
-
$url = @$displayNames[$moduleName]['url'];
|
133 |
-
$name = @$displayNames[$moduleName]['display_name'];
|
134 |
-
$version = @$displayNames[$moduleName]['version'];
|
135 |
-
|
136 |
-
$moduleName = '<a href="' . $url . '" target="_blank" title="' . $name . '">' . $name . "</a>";
|
137 |
-
|
138 |
-
if ($warning) {
|
139 |
-
$update = '<a target="_blank"><img src="' . $this->getSkinUrl('aw_all/images/bad.gif') . '" title="' . $this->__("Wrong Extension Platform") . '"/></a>';
|
140 |
-
$moduleName = "$update $moduleName";
|
141 |
-
} else {
|
142 |
-
|
143 |
-
if ($this->_convertVersion($ver) < $this->_convertVersion($version)) {
|
144 |
-
$update = '<a href="' . $url . '" target="_blank"><img src="' . $this->getSkinUrl('aw_all/images/update.gif') . '" title="' . $this->__("Update available") . '"/></a>';
|
145 |
-
$hasUpdate = 1;
|
146 |
-
$moduleName = "$update $moduleName";
|
147 |
-
}
|
148 |
-
}
|
149 |
-
}
|
150 |
-
}
|
151 |
-
}
|
152 |
-
|
153 |
-
if (!$hasUpdate && !$warning) {
|
154 |
-
$update = '<a target="_blank"><img src="' . $this->getSkinUrl('aw_all/images/ok.gif') . '" title="' . $this->__("Installed") . '"/></a>';
|
155 |
-
$moduleName = "$update $moduleName";
|
156 |
-
} elseif ($warning && (!@$displayNames || !@$name)) {
|
157 |
-
$update = '<a target="_blank"><img src="' . $this->getSkinUrl('aw_all/images/bad.gif') . '" title="' . $this->__("Wrong Extension Platform") . '"/></a>';
|
158 |
-
$moduleName = "$update $moduleName";
|
159 |
-
}
|
160 |
-
|
161 |
-
|
162 |
-
if ($ver) {
|
163 |
-
$field = $fieldset->addField($id, 'label',
|
164 |
-
array(
|
165 |
-
'name' => 'ssssss',
|
166 |
-
'label' => $moduleName,
|
167 |
-
'value' => $warning ? $warning : $ver,
|
168 |
-
|
169 |
-
))->setRenderer($this->_getFieldRenderer());
|
170 |
-
return $field->toHtml();
|
171 |
-
}
|
172 |
-
return '';
|
173 |
-
|
174 |
-
}
|
175 |
-
|
176 |
-
|
177 |
-
/**
|
178 |
-
* @deprecated
|
179 |
-
* @param $v
|
180 |
-
* @return int
|
181 |
-
*/
|
182 |
-
protected function _convertVersion($v)
|
183 |
-
{
|
184 |
-
$digits = @explode(".", $v);
|
185 |
-
$version = 0;
|
186 |
-
if (is_array($digits)) {
|
187 |
-
foreach ($digits as $k => $v) {
|
188 |
-
$version += ($v * pow(10, max(0, (3 - $k))));
|
189 |
-
}
|
190 |
-
|
191 |
-
}
|
192 |
-
return $version;
|
193 |
-
}
|
194 |
-
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
app/code/local/AW/All/Block/System/Config/Form/Fieldset/Awall/Store.php
DELETED
@@ -1,33 +0,0 @@
|
|
1 |
-
<?php
|
2 |
-
/**
|
3 |
-
* aheadWorks Co.
|
4 |
-
*
|
5 |
-
* NOTICE OF LICENSE
|
6 |
-
*
|
7 |
-
* This source file is subject to the EULA
|
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://ecommerce.aheadworks.com/LICENSE-M1.txt
|
11 |
-
*
|
12 |
-
* @category AW
|
13 |
-
* @package AW_All
|
14 |
-
* @copyright Copyright (c) 2009-2010 aheadWorks Co. (http://www.aheadworks.com)
|
15 |
-
* @license http://ecommerce.aheadworks.com/LICENSE-M1.txt
|
16 |
-
*/
|
17 |
-
|
18 |
-
|
19 |
-
class AW_All_Block_System_Config_Form_Fieldset_Awall_Store extends Mage_Adminhtml_Block_System_Config_Form_Fieldset
|
20 |
-
{
|
21 |
-
|
22 |
-
protected $_dummyElement;
|
23 |
-
protected $_fieldRenderer;
|
24 |
-
protected $_values;
|
25 |
-
|
26 |
-
public function render(Varien_Data_Form_Element_Abstract $element)
|
27 |
-
{
|
28 |
-
return '<div id="' . $element->getId() . '"></div>';
|
29 |
-
return $html;
|
30 |
-
}
|
31 |
-
|
32 |
-
|
33 |
-
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
app/code/local/AW/All/Helper/Config.php
DELETED
@@ -1,31 +0,0 @@
|
|
1 |
-
<?php
|
2 |
-
/**
|
3 |
-
* aheadWorks Co.
|
4 |
-
*
|
5 |
-
* NOTICE OF LICENSE
|
6 |
-
*
|
7 |
-
* This source file is subject to the EULA
|
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://ecommerce.aheadworks.com/LICENSE-M1.txt
|
11 |
-
*
|
12 |
-
* @category AW
|
13 |
-
* @package AW_All
|
14 |
-
* @copyright Copyright (c) 2009-2010 aheadWorks Co. (http://www.aheadworks.com)
|
15 |
-
* @license http://ecommerce.aheadworks.com/LICENSE-M1.txt
|
16 |
-
*/
|
17 |
-
|
18 |
-
class AW_All_Helper_Config extends Mage_Core_Helper_Abstract
|
19 |
-
{
|
20 |
-
/** Extensions feed path */
|
21 |
-
const EXTENSIONS_FEED_URL = 'http://media.aheadworks.com/feeds/extensions.xml';
|
22 |
-
/** Updates Feed path */
|
23 |
-
const UPDATES_FEED_URL = 'http://media.aheadworks.com/feeds/updates.xml';
|
24 |
-
/** Estore URL */
|
25 |
-
const STORE_URL = 'http://ecommerce.aheadworks.com/estore/';
|
26 |
-
|
27 |
-
/** EStore response cache key*/
|
28 |
-
const STORE_RESPONSE_CACHE_KEY = 'aw_all_store_response_cache_key';
|
29 |
-
|
30 |
-
|
31 |
-
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
app/code/local/AW/All/Helper/Data.php
DELETED
@@ -1,24 +0,0 @@
|
|
1 |
-
<?php
|
2 |
-
/**
|
3 |
-
* aheadWorks Co.
|
4 |
-
*
|
5 |
-
* NOTICE OF LICENSE
|
6 |
-
*
|
7 |
-
* This source file is subject to the EULA
|
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://ecommerce.aheadworks.com/LICENSE-M1.txt
|
11 |
-
*
|
12 |
-
* @category AW
|
13 |
-
* @package AW_All
|
14 |
-
* @copyright Copyright (c) 2009-2010 aheadWorks Co. (http://www.aheadworks.com)
|
15 |
-
* @license http://ecommerce.aheadworks.com/LICENSE-M1.txt
|
16 |
-
*/
|
17 |
-
|
18 |
-
class AW_All_Helper_Data extends Mage_Core_Helper_Abstract
|
19 |
-
{
|
20 |
-
|
21 |
-
|
22 |
-
}
|
23 |
-
|
24 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
app/code/local/AW/All/Helper/Versions.php
DELETED
@@ -1,94 +0,0 @@
|
|
1 |
-
<?php
|
2 |
-
/**
|
3 |
-
* aheadWorks Co.
|
4 |
-
*
|
5 |
-
* NOTICE OF LICENSE
|
6 |
-
*
|
7 |
-
* This source file is subject to the EULA
|
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://ecommerce.aheadworks.com/LICENSE-M1.txt
|
11 |
-
*
|
12 |
-
* @category AW
|
13 |
-
* @package AW_All
|
14 |
-
* @copyright Copyright (c) 2009-2010 aheadWorks Co. (http://www.aheadworks.com)
|
15 |
-
* @license http://ecommerce.aheadworks.com/LICENSE-M1.txt
|
16 |
-
*/
|
17 |
-
|
18 |
-
class AW_All_Helper_Versions extends Mage_Core_Helper_Abstract
|
19 |
-
{
|
20 |
-
|
21 |
-
const EE_PLATFORM = 100;
|
22 |
-
const PE_PLATFORM = 10;
|
23 |
-
const CE_PLATFORM = 0;
|
24 |
-
|
25 |
-
const ENTERPRISE_DETECT_COMPANY = 'Enterprise';
|
26 |
-
const ENTERPRISE_DETECT_EXTENSION = 'Enterprise';
|
27 |
-
const ENTERPRISE_DESIGN_NAME = "enterprise";
|
28 |
-
const PROFESSIONAL_DESIGN_NAME = "pro";
|
29 |
-
|
30 |
-
protected static $_platform = -1;
|
31 |
-
|
32 |
-
/**
|
33 |
-
* Checks which edition is used
|
34 |
-
* @return int
|
35 |
-
*/
|
36 |
-
public static function getPlatform()
|
37 |
-
{
|
38 |
-
if (self::$_platform == -1) {
|
39 |
-
$pathToClaim = BP . DS . "app" . DS . "etc" . DS . "modules" . DS . self::ENTERPRISE_DETECT_COMPANY . "_" . self::ENTERPRISE_DETECT_EXTENSION . ".xml";
|
40 |
-
$pathToEEConfig = BP . DS . "app" . DS . "code" . DS . "core" . DS . self::ENTERPRISE_DETECT_COMPANY . DS . self::ENTERPRISE_DETECT_EXTENSION . DS . "etc" . DS . "config.xml";
|
41 |
-
$isCommunity = !file_exists($pathToClaim) || !file_exists($pathToEEConfig);
|
42 |
-
if ($isCommunity) {
|
43 |
-
self::$_platform = self::CE_PLATFORM;
|
44 |
-
} else {
|
45 |
-
$_xml = @simplexml_load_file($pathToEEConfig,'SimpleXMLElement', LIBXML_NOCDATA);
|
46 |
-
if(!$_xml===FALSE) {
|
47 |
-
$package = (string)$_xml->default->design->package->name;
|
48 |
-
$theme = (string)$_xml->install->design->theme->default;
|
49 |
-
$skin = (string)$_xml->stores->admin->design->theme->skin;
|
50 |
-
$isProffessional = ($package == self::PROFESSIONAL_DESIGN_NAME) && ($theme == self::PROFESSIONAL_DESIGN_NAME) && ($skin == self::PROFESSIONAL_DESIGN_NAME);
|
51 |
-
if ($isProffessional) {
|
52 |
-
self::$_platform = self::PE_PLATFORM;
|
53 |
-
return self::$_platform;
|
54 |
-
}
|
55 |
-
}
|
56 |
-
self::$_platform = self::EE_PLATFORM;
|
57 |
-
}
|
58 |
-
}
|
59 |
-
return self::$_platform;
|
60 |
-
}
|
61 |
-
|
62 |
-
/**
|
63 |
-
* Convert platform from string to int and backwards
|
64 |
-
* @static
|
65 |
-
* @param $platformCode
|
66 |
-
* @return int|string
|
67 |
-
*/
|
68 |
-
public static function convertPlatform($platformCode)
|
69 |
-
{
|
70 |
-
if (is_numeric($platformCode)) {
|
71 |
-
// Convert predefined to letters code
|
72 |
-
$platform = ($platformCode == self::EE_PLATFORM ? 'ee' : ($platformCode == self::PE_PLATFORM ? 'pe'
|
73 |
-
: 'ce'));
|
74 |
-
} elseif (is_string($platformCode)) {
|
75 |
-
$platformCode = strtolower($platformCode);
|
76 |
-
$platform = ($platformCode == 'ee' ? self::EE_PLATFORM : ($platformCode == 'pe' ? self::PE_PLATFORM
|
77 |
-
: self::CE_PLATFORM));
|
78 |
-
}else{$platform = self::CE_PLATFORM;}
|
79 |
-
return $platform;
|
80 |
-
}
|
81 |
-
|
82 |
-
public static function convertVersion($v)
|
83 |
-
{
|
84 |
-
$digits = @explode(".", $v);
|
85 |
-
$version = 0;
|
86 |
-
if (is_array($digits)) {
|
87 |
-
foreach ($digits as $k => $v) {
|
88 |
-
$version += ($v * pow(10, max(0, (3 - $k))));
|
89 |
-
}
|
90 |
-
|
91 |
-
}
|
92 |
-
return $version;
|
93 |
-
}
|
94 |
-
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
app/code/local/AW/All/Model/Feed.php
DELETED
@@ -1,91 +0,0 @@
|
|
1 |
-
<?php
|
2 |
-
/**
|
3 |
-
* aheadWorks Co.
|
4 |
-
*
|
5 |
-
* NOTICE OF LICENSE
|
6 |
-
*
|
7 |
-
* This source file is subject to the EULA
|
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://ecommerce.aheadworks.com/LICENSE-M1.txt
|
11 |
-
*
|
12 |
-
* @category AW
|
13 |
-
* @package AW_All
|
14 |
-
* @copyright Copyright (c) 2009-2010 aheadWorks Co. (http://www.aheadworks.com)
|
15 |
-
* @license http://ecommerce.aheadworks.com/LICENSE-M1.txt
|
16 |
-
*/
|
17 |
-
|
18 |
-
class AW_All_Model_Feed extends Mage_AdminNotification_Model_Feed
|
19 |
-
{
|
20 |
-
const XML_USE_HTTPS_PATH = 'awall/feed/use_https';
|
21 |
-
const XML_FEED_URL_PATH = 'awall/feed/url';
|
22 |
-
const XML_FREQUENCY_PATH = 'awall/feed/check_frequency';
|
23 |
-
const XML_FREQUENCY_ENABLE = 'awall/feed/enabled';
|
24 |
-
const XML_LAST_UPDATE_PATH = 'awall/feed/last_update';
|
25 |
-
|
26 |
-
|
27 |
-
public static function check()
|
28 |
-
{
|
29 |
-
if (!Mage::getStoreConfig(self::XML_FREQUENCY_ENABLE)) {
|
30 |
-
return;
|
31 |
-
}
|
32 |
-
return Mage::getModel('awall/feed')->checkUpdate();
|
33 |
-
}
|
34 |
-
|
35 |
-
public function getFrequency()
|
36 |
-
{
|
37 |
-
return Mage::getStoreConfig(self::XML_FREQUENCY_PATH) * 3600;
|
38 |
-
}
|
39 |
-
|
40 |
-
public function getLastUpdate()
|
41 |
-
{
|
42 |
-
//return 100;
|
43 |
-
return Mage::app()->loadCache('awall_notifications_lastcheck');
|
44 |
-
}
|
45 |
-
|
46 |
-
public function setLastUpdate()
|
47 |
-
{
|
48 |
-
Mage::app()->saveCache(time(), 'awall_notifications_lastcheck');
|
49 |
-
return $this;
|
50 |
-
}
|
51 |
-
|
52 |
-
public function getFeedUrl()
|
53 |
-
{
|
54 |
-
if (is_null($this->_feedUrl)) {
|
55 |
-
$this->_feedUrl = (Mage::getStoreConfigFlag(self::XML_USE_HTTPS_PATH) ? 'https://' : 'http://')
|
56 |
-
. Mage::getStoreConfig(self::XML_FEED_URL_PATH);
|
57 |
-
}
|
58 |
-
return $this->_feedUrl;
|
59 |
-
}
|
60 |
-
|
61 |
-
public function checkUpdate()
|
62 |
-
{
|
63 |
-
if (($this->getFrequency() + $this->getLastUpdate()) > time()) {
|
64 |
-
return $this;
|
65 |
-
}
|
66 |
-
|
67 |
-
$feedData = array();
|
68 |
-
|
69 |
-
$feedXml = $this->getFeedData();
|
70 |
-
|
71 |
-
if ($feedXml && $feedXml->channel && $feedXml->channel->item) {
|
72 |
-
foreach ($feedXml->channel->item as $item) {
|
73 |
-
$feedData[] = array(
|
74 |
-
'severity' => (int)$item->severity ? (int)$item->severity : 3,
|
75 |
-
'date_added' => $this->getDate((string)$item->pubDate),
|
76 |
-
'title' => (string)$item->title,
|
77 |
-
'description' => (string)$item->description,
|
78 |
-
'url' => (string)$item->link,
|
79 |
-
);
|
80 |
-
}
|
81 |
-
if ($feedData) {
|
82 |
-
Mage::getModel('adminnotification/inbox')->parse(array_reverse($feedData));
|
83 |
-
}
|
84 |
-
|
85 |
-
}
|
86 |
-
$this->setLastUpdate();
|
87 |
-
|
88 |
-
return $this;
|
89 |
-
}
|
90 |
-
|
91 |
-
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
app/code/local/AW/All/Model/Feed/Abstract.php
DELETED
@@ -1,64 +0,0 @@
|
|
1 |
-
<?php
|
2 |
-
/**
|
3 |
-
* aheadWorks Co.
|
4 |
-
*
|
5 |
-
* NOTICE OF LICENSE
|
6 |
-
*
|
7 |
-
* This source file is subject to the EULA
|
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://ecommerce.aheadworks.com/LICENSE-M1.txt
|
11 |
-
*
|
12 |
-
* @category AW
|
13 |
-
* @package AW_All
|
14 |
-
* @copyright Copyright (c) 2009-2010 aheadWorks Co. (http://www.aheadworks.com)
|
15 |
-
* @license http://ecommerce.aheadworks.com/LICENSE-M1.txt
|
16 |
-
*/
|
17 |
-
|
18 |
-
class AW_All_Model_Feed_Abstract extends Mage_Core_Model_Abstract
|
19 |
-
{
|
20 |
-
|
21 |
-
/**
|
22 |
-
* Retrieve feed data as XML element
|
23 |
-
*
|
24 |
-
* @return SimpleXMLElement
|
25 |
-
*/
|
26 |
-
public function getFeedData()
|
27 |
-
{
|
28 |
-
$curl = new Varien_Http_Adapter_Curl();
|
29 |
-
$curl->setConfig(array(
|
30 |
-
'timeout' => 1
|
31 |
-
));
|
32 |
-
$curl->write(Zend_Http_Client::GET, $this->getFeedUrl(), '1.0');
|
33 |
-
$data = $curl->read();
|
34 |
-
if ($data === false) {
|
35 |
-
return false;
|
36 |
-
}
|
37 |
-
$data = preg_split('/^\r?$/m', $data, 2);
|
38 |
-
$data = trim($data[1]);
|
39 |
-
$curl->close();
|
40 |
-
|
41 |
-
try {
|
42 |
-
$xml = new SimpleXMLElement($data);
|
43 |
-
}
|
44 |
-
catch (Exception $e) {
|
45 |
-
return false;
|
46 |
-
}
|
47 |
-
|
48 |
-
return $xml;
|
49 |
-
}
|
50 |
-
|
51 |
-
|
52 |
-
/**
|
53 |
-
* Retrieve DB date from RSS date
|
54 |
-
*
|
55 |
-
* @param string $rssDate
|
56 |
-
* @return string YYYY-MM-DD YY:HH:SS
|
57 |
-
*/
|
58 |
-
public function getDate($rssDate)
|
59 |
-
{
|
60 |
-
return gmdate('Y-m-d H:i:s', strtotime($rssDate));
|
61 |
-
}
|
62 |
-
|
63 |
-
|
64 |
-
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
app/code/local/AW/All/Model/Feed/Extensions.php
DELETED
@@ -1,122 +0,0 @@
|
|
1 |
-
<?php
|
2 |
-
/**
|
3 |
-
* aheadWorks Co.
|
4 |
-
*
|
5 |
-
* NOTICE OF LICENSE
|
6 |
-
*
|
7 |
-
* This source file is subject to the EULA
|
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://ecommerce.aheadworks.com/LICENSE-M1.txt
|
11 |
-
*
|
12 |
-
* @category AW
|
13 |
-
* @package AW_All
|
14 |
-
* @copyright Copyright (c) 2009-2010 aheadWorks Co. (http://www.aheadworks.com)
|
15 |
-
* @license http://ecommerce.aheadworks.com/LICENSE-M1.txt
|
16 |
-
*/
|
17 |
-
|
18 |
-
class AW_All_Model_Feed_Extensions extends AW_All_Model_Feed_Abstract
|
19 |
-
{
|
20 |
-
|
21 |
-
/**
|
22 |
-
* Retrieve feed url
|
23 |
-
*
|
24 |
-
* @return string
|
25 |
-
*/
|
26 |
-
public function getFeedUrl()
|
27 |
-
{
|
28 |
-
return AW_All_Helper_Config::EXTENSIONS_FEED_URL;
|
29 |
-
}
|
30 |
-
|
31 |
-
|
32 |
-
/**
|
33 |
-
* Checks feed
|
34 |
-
* @return
|
35 |
-
*/
|
36 |
-
public function check()
|
37 |
-
{
|
38 |
-
if (!(Mage::app()->loadCache('aw_all_extensions_feed')) || (time() - Mage::app()->loadCache('aw_all_extensions_feed_lastcheck')) > Mage::getStoreConfig('awall/feed/check_frequency')) {
|
39 |
-
$this->refresh();
|
40 |
-
}
|
41 |
-
}
|
42 |
-
|
43 |
-
public function refresh()
|
44 |
-
{
|
45 |
-
$exts = array();
|
46 |
-
try {
|
47 |
-
$Node = $this->getFeedData();
|
48 |
-
if (!$Node) return false;
|
49 |
-
foreach ($Node->children() as $ext) {
|
50 |
-
$exts[(string)$ext->name] = array(
|
51 |
-
'display_name' => (string)$ext->display_name,
|
52 |
-
'version' => (string)$ext->version,
|
53 |
-
'url' => (string)$ext->url
|
54 |
-
);
|
55 |
-
}
|
56 |
-
|
57 |
-
Mage::app()->saveCache(serialize($exts), 'aw_all_extensions_feed');
|
58 |
-
Mage::app()->saveCache(time(), 'aw_all_extensions_feed_lastcheck');
|
59 |
-
return true;
|
60 |
-
} catch (Exception $E) {
|
61 |
-
return false;
|
62 |
-
}
|
63 |
-
}
|
64 |
-
|
65 |
-
public function checkExtensions()
|
66 |
-
{
|
67 |
-
$modules = array_keys((array)Mage::getConfig()->getNode('modules')->children());
|
68 |
-
sort($modules);
|
69 |
-
|
70 |
-
$magentoPlatform = AW_All_Helper_Versions::getPlatform();
|
71 |
-
foreach ($modules as $extensionName) {
|
72 |
-
if (strstr($extensionName, 'AW_') === false) {
|
73 |
-
continue;
|
74 |
-
}
|
75 |
-
if ($extensionName == 'AW_Core' || $extensionName == 'AW_All') {
|
76 |
-
continue;
|
77 |
-
}
|
78 |
-
if ($platformNode = $this->getExtensionPlatform($extensionName)) {
|
79 |
-
$extensionPlatform = AW_All_Helper_Versions::convertPlatform($platformNode);
|
80 |
-
if ($extensionPlatform < $magentoPlatform) {
|
81 |
-
$this->disableExtensionOutput($extensionName);
|
82 |
-
}
|
83 |
-
}
|
84 |
-
}
|
85 |
-
return $this;
|
86 |
-
}
|
87 |
-
|
88 |
-
public function getExtensionPlatform($extensionName)
|
89 |
-
{
|
90 |
-
try {
|
91 |
-
if ($platform = Mage::getConfig()->getNode("modules/$extensionName/platform")) {
|
92 |
-
$platform = strtolower($platform);
|
93 |
-
return $platform;
|
94 |
-
} else {
|
95 |
-
throw new Exception();
|
96 |
-
}
|
97 |
-
} catch (Exception $e) {
|
98 |
-
return false;
|
99 |
-
}
|
100 |
-
}
|
101 |
-
|
102 |
-
|
103 |
-
public function disableExtensionOutput($extensionName)
|
104 |
-
{
|
105 |
-
$coll = Mage::getModel('core/config_data')->getCollection();
|
106 |
-
$coll->getSelect()->where("path='advanced/modules_disable_output/$extensionName'");
|
107 |
-
$i = 0;
|
108 |
-
foreach ($coll as $cd) {
|
109 |
-
$i++;
|
110 |
-
$cd->setValue(1)->save();
|
111 |
-
}
|
112 |
-
if ($i == 0) {
|
113 |
-
Mage::getModel('core/config_data')
|
114 |
-
->setPath("advanced/modules_disable_output/$extensionName")
|
115 |
-
->setValue(1)
|
116 |
-
->save();
|
117 |
-
}
|
118 |
-
return $this;
|
119 |
-
}
|
120 |
-
|
121 |
-
|
122 |
-
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
app/code/local/AW/All/Model/Feed/Updates.php
DELETED
@@ -1,129 +0,0 @@
|
|
1 |
-
<?php
|
2 |
-
/**
|
3 |
-
* aheadWorks Co.
|
4 |
-
*
|
5 |
-
* NOTICE OF LICENSE
|
6 |
-
*
|
7 |
-
* This source file is subject to the EULA
|
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://ecommerce.aheadworks.com/LICENSE-M1.txt
|
11 |
-
*
|
12 |
-
* @category AW
|
13 |
-
* @package AW_All
|
14 |
-
* @copyright Copyright (c) 2009-2010 aheadWorks Co. (http://www.aheadworks.com)
|
15 |
-
* @license http://ecommerce.aheadworks.com/LICENSE-M1.txt
|
16 |
-
*/
|
17 |
-
|
18 |
-
class AW_All_Model_Feed_Updates extends AW_All_Model_Feed_Abstract
|
19 |
-
{
|
20 |
-
|
21 |
-
/**
|
22 |
-
* Retrieve feed url
|
23 |
-
*
|
24 |
-
* @return string
|
25 |
-
*/
|
26 |
-
public function getFeedUrl()
|
27 |
-
{
|
28 |
-
return AW_All_Helper_Config::UPDATES_FEED_URL;
|
29 |
-
}
|
30 |
-
|
31 |
-
/**
|
32 |
-
* Checks feed
|
33 |
-
* @return
|
34 |
-
*/
|
35 |
-
public function check()
|
36 |
-
{
|
37 |
-
if ((time() - Mage::app()->loadCache('aw_all_updates_feed_lastcheck')) > Mage::getStoreConfig('awall/feed/check_frequency')) {
|
38 |
-
$this->refresh();
|
39 |
-
}
|
40 |
-
}
|
41 |
-
|
42 |
-
public function refresh()
|
43 |
-
{
|
44 |
-
$feedData = array();
|
45 |
-
|
46 |
-
try {
|
47 |
-
|
48 |
-
$Node = $this->getFeedData();
|
49 |
-
if (!$Node) return false;
|
50 |
-
foreach ($Node->children() as $item) {
|
51 |
-
|
52 |
-
if ($this->isInteresting($item)) {
|
53 |
-
$date = strtotime((string)$item->date);
|
54 |
-
if (!Mage::getStoreConfig('awall/install/run') || (Mage::getStoreConfig('awall/install/run') < $date)) {
|
55 |
-
$feedData[] = array(
|
56 |
-
'severity' => 3,
|
57 |
-
'date_added' => $this->getDate((string)$item->date),
|
58 |
-
'title' => (string)$item->title,
|
59 |
-
'description' => (string)$item->content,
|
60 |
-
'url' => (string)$item->url,
|
61 |
-
);
|
62 |
-
}
|
63 |
-
}
|
64 |
-
}
|
65 |
-
|
66 |
-
$adminnotificationModel = Mage::getModel('adminnotification/inbox');
|
67 |
-
if ($feedData && is_object($adminnotificationModel)) {
|
68 |
-
$adminnotificationModel->parse(($feedData));
|
69 |
-
}
|
70 |
-
|
71 |
-
Mage::app()->saveCache(time(), 'aw_all_updates_feed_lastcheck');
|
72 |
-
return true;
|
73 |
-
} catch (Exception $E) {
|
74 |
-
return false;
|
75 |
-
}
|
76 |
-
}
|
77 |
-
|
78 |
-
|
79 |
-
public function getInterests()
|
80 |
-
{
|
81 |
-
if (!$this->getData('interests')) {
|
82 |
-
$types = @explode(',', Mage::getStoreConfig('awall/feed/interests'));
|
83 |
-
$this->setData('interests', $types);
|
84 |
-
}
|
85 |
-
return $this->getData('interests');
|
86 |
-
}
|
87 |
-
|
88 |
-
/**
|
89 |
-
*
|
90 |
-
* @return
|
91 |
-
*/
|
92 |
-
public function isInteresting($item)
|
93 |
-
{
|
94 |
-
$interests = $this->getInterests();
|
95 |
-
|
96 |
-
$types = @explode(",", (string)$item->type);
|
97 |
-
$exts = @explode(",", (string)$item->extensions);
|
98 |
-
|
99 |
-
$isInterestedInSelfUpgrades = array_search(AW_All_Model_Source_Updates_Type::TYPE_INSTALLED_UPDATE, $types);
|
100 |
-
|
101 |
-
foreach ($types as $type) {
|
102 |
-
|
103 |
-
if (array_search($type, $interests) !== false) {
|
104 |
-
return true;
|
105 |
-
}
|
106 |
-
if (($type == AW_All_Model_Source_Updates_Type::TYPE_UPDATE_RELEASE) && $isInterestedInSelfUpgrades) {
|
107 |
-
foreach ($exts as $ext) {
|
108 |
-
if ($this->isExtensionInstalled($ext)) {
|
109 |
-
return true;
|
110 |
-
}
|
111 |
-
}
|
112 |
-
}
|
113 |
-
}
|
114 |
-
return false;
|
115 |
-
}
|
116 |
-
|
117 |
-
public function isExtensionInstalled($code)
|
118 |
-
{
|
119 |
-
$modules = array_keys((array)Mage::getConfig()->getNode('modules')->children());
|
120 |
-
|
121 |
-
foreach ($modules as $moduleName) {
|
122 |
-
if ($moduleName == $code) {
|
123 |
-
return true;
|
124 |
-
}
|
125 |
-
}
|
126 |
-
return false;
|
127 |
-
}
|
128 |
-
|
129 |
-
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
app/code/local/AW/All/Model/Source/Updates/Type.php
DELETED
@@ -1,80 +0,0 @@
|
|
1 |
-
<?php
|
2 |
-
/**
|
3 |
-
* aheadWorks Co.
|
4 |
-
*
|
5 |
-
* NOTICE OF LICENSE
|
6 |
-
*
|
7 |
-
* This source file is subject to the EULA
|
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://ecommerce.aheadworks.com/LICENSE-M1.txt
|
11 |
-
*
|
12 |
-
* @category AW
|
13 |
-
* @package AW_All
|
14 |
-
* @version 1.0
|
15 |
-
* @copyright Copyright (c) 2009-2010 aheadWorks Co. (http://www.aheadworks.com)
|
16 |
-
* @license http://ecommerce.aheadworks.com/LICENSE-M1.txt
|
17 |
-
*/
|
18 |
-
|
19 |
-
class AW_All_Model_Source_Updates_Type extends Mage_Eav_Model_Entity_Attribute_Source_Abstract
|
20 |
-
{
|
21 |
-
|
22 |
-
const TYPE_PROMO = 'PROMO';
|
23 |
-
const TYPE_NEW_RELEASE = 'NEW_RELEASE';
|
24 |
-
const TYPE_UPDATE_RELEASE = 'UPDATE_RELEASE';
|
25 |
-
const TYPE_INFO = 'INFO';
|
26 |
-
const TYPE_INSTALLED_UPDATE = 'INSTALLED_UPDATE';
|
27 |
-
|
28 |
-
|
29 |
-
public function toOptionArray()
|
30 |
-
{
|
31 |
-
return array(
|
32 |
-
array('value' => self::TYPE_INSTALLED_UPDATE, 'label' => Mage::helper('awall')->__('My extensions updates')),
|
33 |
-
array('value' => self::TYPE_UPDATE_RELEASE, 'label' => Mage::helper('awall')->__('All extensions updates')),
|
34 |
-
array('value' => self::TYPE_NEW_RELEASE, 'label' => Mage::helper('awall')->__('New Releases')),
|
35 |
-
array('value' => self::TYPE_PROMO, 'label' => Mage::helper('awall')->__('Promotions/Discounts')),
|
36 |
-
array('value' => self::TYPE_INFO, 'label' => Mage::helper('awall')->__('Other information'))
|
37 |
-
);
|
38 |
-
}
|
39 |
-
|
40 |
-
/**
|
41 |
-
* Retrive all attribute options
|
42 |
-
*
|
43 |
-
* @return array
|
44 |
-
*/
|
45 |
-
public function getAllOptions()
|
46 |
-
{
|
47 |
-
return $this->toOptionArray();
|
48 |
-
}
|
49 |
-
|
50 |
-
|
51 |
-
/**
|
52 |
-
* Returns label for value
|
53 |
-
* @param string $value
|
54 |
-
* @return string
|
55 |
-
*/
|
56 |
-
public function getLabel($value)
|
57 |
-
{
|
58 |
-
$options = $this->toOptionArray();
|
59 |
-
foreach ($options as $v) {
|
60 |
-
if ($v['value'] == $value) {
|
61 |
-
return $v['label'];
|
62 |
-
}
|
63 |
-
}
|
64 |
-
return '';
|
65 |
-
}
|
66 |
-
|
67 |
-
/**
|
68 |
-
* Returns array ready for use by grid
|
69 |
-
* @return array
|
70 |
-
*/
|
71 |
-
public function getGridOptions()
|
72 |
-
{
|
73 |
-
$items = $this->getAllOptions();
|
74 |
-
$out = array();
|
75 |
-
foreach ($items as $item) {
|
76 |
-
$out[$item['value']] = $item['label'];
|
77 |
-
}
|
78 |
-
return $out;
|
79 |
-
}
|
80 |
-
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
app/code/local/AW/All/etc/adminhtml.xml
DELETED
@@ -1,49 +0,0 @@
|
|
1 |
-
<?xml version="1.0"?>
|
2 |
-
<config>
|
3 |
-
<layout>
|
4 |
-
<updates>
|
5 |
-
<awall module="AW_All">
|
6 |
-
<file>aw_all.xml</file>
|
7 |
-
</awall>
|
8 |
-
</updates>
|
9 |
-
</layout>
|
10 |
-
|
11 |
-
<acl>
|
12 |
-
<resources>
|
13 |
-
<all>
|
14 |
-
<title>Allow Everything</title>
|
15 |
-
</all>
|
16 |
-
<admin>
|
17 |
-
<children>
|
18 |
-
<system>
|
19 |
-
<children>
|
20 |
-
<config>
|
21 |
-
<children>
|
22 |
-
<awall>
|
23 |
-
<title>aheadWorks - All</title>
|
24 |
-
</awall>
|
25 |
-
</children>
|
26 |
-
</config>
|
27 |
-
</children>
|
28 |
-
</system>
|
29 |
-
</children>
|
30 |
-
</admin>
|
31 |
-
</resources>
|
32 |
-
</acl>
|
33 |
-
<events>
|
34 |
-
<controller_action_predispatch>
|
35 |
-
<observers>
|
36 |
-
<awall_exts>
|
37 |
-
<type>singleton</type>
|
38 |
-
<class>awall/feed_extensions</class>
|
39 |
-
<method>check</method>
|
40 |
-
</awall_exts>
|
41 |
-
<awall_upds>
|
42 |
-
<type>singleton</type>
|
43 |
-
<class>awall/feed_updates</class>
|
44 |
-
<method>check</method>
|
45 |
-
</awall_upds>
|
46 |
-
</observers>
|
47 |
-
</controller_action_predispatch>
|
48 |
-
</events>
|
49 |
-
</config>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
app/code/local/AW/All/etc/config.xml
DELETED
@@ -1,122 +0,0 @@
|
|
1 |
-
<?xml version="1.0"?>
|
2 |
-
|
3 |
-
|
4 |
-
<config>
|
5 |
-
<modules>
|
6 |
-
<AW_All>
|
7 |
-
<version>2.2.1</version>
|
8 |
-
</AW_All>
|
9 |
-
</modules>
|
10 |
-
|
11 |
-
<global>
|
12 |
-
<blocks>
|
13 |
-
<awall>
|
14 |
-
<class>AW_All_Block</class>
|
15 |
-
</awall>
|
16 |
-
<adminhtml>
|
17 |
-
<rewrite>
|
18 |
-
<notification_window>AW_All_Block_Notification_Window</notification_window>
|
19 |
-
</rewrite>
|
20 |
-
</adminhtml>
|
21 |
-
</blocks>
|
22 |
-
<resources>
|
23 |
-
<awall_setup>
|
24 |
-
<setup>
|
25 |
-
<module>AW_All</module>
|
26 |
-
</setup>
|
27 |
-
<connection>
|
28 |
-
<use>core_setup</use>
|
29 |
-
</connection>
|
30 |
-
</awall_setup>
|
31 |
-
<awall_write>
|
32 |
-
<connection>
|
33 |
-
<use>core_write</use>
|
34 |
-
</connection>
|
35 |
-
</awall_write>
|
36 |
-
<awall_read>
|
37 |
-
<connection>
|
38 |
-
<use>core_read</use>
|
39 |
-
</connection>
|
40 |
-
</awall_read>
|
41 |
-
</resources>
|
42 |
-
<models>
|
43 |
-
<awall>
|
44 |
-
<class>AW_All_Model</class>
|
45 |
-
</awall>
|
46 |
-
</models>
|
47 |
-
|
48 |
-
<helpers>
|
49 |
-
<awall>
|
50 |
-
<class>AW_All_Helper</class>
|
51 |
-
</awall>
|
52 |
-
</helpers>
|
53 |
-
</global>
|
54 |
-
|
55 |
-
<adminhtml>
|
56 |
-
<layout>
|
57 |
-
<updates>
|
58 |
-
<awall module="AW_All">
|
59 |
-
<file>aw_all.xml</file>
|
60 |
-
</awall>
|
61 |
-
</updates>
|
62 |
-
</layout>
|
63 |
-
|
64 |
-
<acl>
|
65 |
-
<resources>
|
66 |
-
<all>
|
67 |
-
<title>Allow Everything</title>
|
68 |
-
</all>
|
69 |
-
<admin>
|
70 |
-
<children>
|
71 |
-
<system>
|
72 |
-
<children>
|
73 |
-
<config>
|
74 |
-
<children>
|
75 |
-
<awall>
|
76 |
-
<title>aheadWorks - All</title>
|
77 |
-
</awall>
|
78 |
-
<awstore>
|
79 |
-
<title>aheadWorks - Extensions Store</title>
|
80 |
-
</awstore>
|
81 |
-
</children>
|
82 |
-
</config>
|
83 |
-
</children>
|
84 |
-
</system>
|
85 |
-
</children>
|
86 |
-
</admin>
|
87 |
-
</resources>
|
88 |
-
</acl>
|
89 |
-
<events>
|
90 |
-
<controller_action_predispatch>
|
91 |
-
<observers>
|
92 |
-
<awall_exts>
|
93 |
-
<type>singleton</type>
|
94 |
-
<class>awall/feed_extensions</class>
|
95 |
-
<method>check</method>
|
96 |
-
</awall_exts>
|
97 |
-
<awall_check>
|
98 |
-
<type>singleton</type>
|
99 |
-
<class>awall/feed_extensions</class>
|
100 |
-
<method>checkExtensions</method>
|
101 |
-
</awall_check>
|
102 |
-
<awall_upds>
|
103 |
-
<type>singleton</type>
|
104 |
-
<class>awall/feed_updates</class>
|
105 |
-
<method>check</method>
|
106 |
-
</awall_upds>
|
107 |
-
</observers>
|
108 |
-
</controller_action_predispatch>
|
109 |
-
</events>
|
110 |
-
</adminhtml>
|
111 |
-
<default>
|
112 |
-
<awall>
|
113 |
-
<feed>
|
114 |
-
<url>ecommerce.aheadworks.com/blog/feed/?tag=feed&community=1</url>
|
115 |
-
<use_https>0</use_https>
|
116 |
-
<check_frequency>86400</check_frequency>
|
117 |
-
<enabled>1</enabled>
|
118 |
-
<interests>INFO,PROMO,UPDATE_RELEASE,NEW_RELEASE,INSTALLED_UPDATE</interests>
|
119 |
-
</feed>
|
120 |
-
</awall>
|
121 |
-
</default>
|
122 |
-
</config>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
app/code/local/AW/All/etc/system.xml
DELETED
@@ -1,84 +0,0 @@
|
|
1 |
-
<?xml version="1.0"?>
|
2 |
-
<config>
|
3 |
-
<tabs>
|
4 |
-
<awall translate="label" module="awall">
|
5 |
-
<label>aheadWorks Extensions</label>
|
6 |
-
<sort_order>300</sort_order>
|
7 |
-
</awall>
|
8 |
-
</tabs>
|
9 |
-
<sections>
|
10 |
-
<awall translate="label" module="awall">
|
11 |
-
<label>Info</label>
|
12 |
-
<tab>awall</tab>
|
13 |
-
<frontend_type>text</frontend_type>
|
14 |
-
<sort_order>99999</sort_order>
|
15 |
-
<show_in_default>1</show_in_default>
|
16 |
-
<show_in_website>1</show_in_website>
|
17 |
-
<show_in_store>1</show_in_store>
|
18 |
-
<groups>
|
19 |
-
<extensions translate="label">
|
20 |
-
<label>Installed aheadWorks Extensions</label>
|
21 |
-
<frontend_type>text</frontend_type>
|
22 |
-
<frontend_model>awall/system_config_form_fieldset_awall_extensions</frontend_model>
|
23 |
-
<sort_order>2</sort_order>
|
24 |
-
<show_in_default>1</show_in_default>
|
25 |
-
<show_in_website>1</show_in_website>
|
26 |
-
<show_in_store>1</show_in_store>
|
27 |
-
</extensions>
|
28 |
-
<feed>
|
29 |
-
<label>Notifications</label>
|
30 |
-
<frontend_type>text</frontend_type>
|
31 |
-
<sort_order>60</sort_order>
|
32 |
-
<show_in_default>1</show_in_default>
|
33 |
-
<show_in_website>1</show_in_website>
|
34 |
-
<show_in_store>1</show_in_store>
|
35 |
-
<fields>
|
36 |
-
<!--enabled translate="label">
|
37 |
-
<label>Enable </label>
|
38 |
-
<comment>Will check for aheadWorks extensions updates</comment>
|
39 |
-
<frontend_type>select</frontend_type>
|
40 |
-
<sort_order>90</sort_order>
|
41 |
-
<show_in_default>1</show_in_default>
|
42 |
-
<show_in_website>1</show_in_website>
|
43 |
-
<show_in_store>1</show_in_store>
|
44 |
-
<source_model>adminhtml/system_config_source_yesno</source_model>
|
45 |
-
</enabled-->
|
46 |
-
<interests translate="label">
|
47 |
-
<label>I'd like to be informed by aheadWorks about:</label>
|
48 |
-
<comment></comment>
|
49 |
-
<frontend_type>multiselect</frontend_type>
|
50 |
-
<sort_order>100</sort_order>
|
51 |
-
<show_in_default>1</show_in_default>
|
52 |
-
<show_in_website>1</show_in_website>
|
53 |
-
<show_in_store>1</show_in_store>
|
54 |
-
<can_be_empty>1</can_be_empty>
|
55 |
-
<source_model>awall/source_updates_type</source_model>
|
56 |
-
</interests>
|
57 |
-
|
58 |
-
</fields>
|
59 |
-
</feed>
|
60 |
-
</groups>
|
61 |
-
</awall>
|
62 |
-
<awstore>
|
63 |
-
<label>Store</label>
|
64 |
-
<tab>awall</tab>
|
65 |
-
<class>awall-section</class>
|
66 |
-
<frontend_type>text</frontend_type>
|
67 |
-
<sort_order>9999</sort_order>
|
68 |
-
<show_in_default>1</show_in_default>
|
69 |
-
<show_in_website>1</show_in_website>
|
70 |
-
<show_in_store>1</show_in_store>
|
71 |
-
<groups>
|
72 |
-
<extensions translate="label">
|
73 |
-
<label>aheadWorks Extensions Store</label>
|
74 |
-
<frontend_type>text</frontend_type>
|
75 |
-
<frontend_model>awall/system_config_form_fieldset_awall_store</frontend_model>
|
76 |
-
<sort_order>2</sort_order>
|
77 |
-
<show_in_default>1</show_in_default>
|
78 |
-
<show_in_website>1</show_in_website>
|
79 |
-
<show_in_store>1</show_in_store>
|
80 |
-
</extensions>
|
81 |
-
</groups>
|
82 |
-
</awstore>
|
83 |
-
</sections>
|
84 |
-
</config>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
app/code/local/AW/Onpulse/Model/Aggregator/Components/Statistics.php
CHANGED
@@ -98,7 +98,11 @@ class AW_Onpulse_Model_Aggregator_Components_Statistics extends AW_Onpulse_Model
|
|
98 |
{
|
99 |
|
100 |
//collect yesterday orders count
|
101 |
-
|
|
|
|
|
|
|
|
|
102 |
/** @var $yesterdayOrders Mage_Sales_Model_Resource_Order_Collection */
|
103 |
$yesterdayOrders = Mage::getResourceModel('sales/order_collection');
|
104 |
|
@@ -106,7 +110,7 @@ class AW_Onpulse_Model_Aggregator_Components_Statistics extends AW_Onpulse_Model
|
|
106 |
'from' => $date->addDay(-1)->toString(Varien_Date::DATETIME_INTERNAL_FORMAT),
|
107 |
'to'=>$date->addDay(1)->toString(Varien_Date::DATETIME_INTERNAL_FORMAT)
|
108 |
))->addAttributeToSelect('*')
|
109 |
-
->addAttributeToFilter('
|
110 |
|
111 |
|
112 |
//collect today orders count
|
@@ -115,7 +119,7 @@ class AW_Onpulse_Model_Aggregator_Components_Statistics extends AW_Onpulse_Model
|
|
115 |
$todayOrders = Mage::getResourceModel('sales/order_collection');
|
116 |
$todayOrders->addAttributeToFilter('created_at', array('from' => $date->toString(Varien_Date::DATETIME_INTERNAL_FORMAT)))
|
117 |
->addAttributeToSelect('*')
|
118 |
-
->addAttributeToFilter('
|
119 |
|
120 |
//collect max, min, average orders
|
121 |
$order = array();
|
@@ -150,6 +154,11 @@ class AW_Onpulse_Model_Aggregator_Components_Statistics extends AW_Onpulse_Model
|
|
150 |
|
151 |
private function _getSales($date)
|
152 |
{
|
|
|
|
|
|
|
|
|
|
|
153 |
$shiftedDate = $this->_getShiftedDate();
|
154 |
$shiftedDate->addDay(1);
|
155 |
$date->addDay(1);
|
@@ -159,7 +168,7 @@ class AW_Onpulse_Model_Aggregator_Components_Statistics extends AW_Onpulse_Model
|
|
159 |
$orders = Mage::getModel('sales/order')->getCollection();
|
160 |
$orders->addAttributeToFilter('created_at', array('from' => $date->addDay(-1)->toString(Varien_Date::DATETIME_INTERNAL_FORMAT),'to'=>$date->addDay(1)->toString(Varien_Date::DATETIME_INTERNAL_FORMAT)))
|
161 |
->addAttributeToSelect('*')
|
162 |
-
->addAttributeToFilter('
|
163 |
$date->addDay(-1);
|
164 |
$shiftedDate->addDay(-1);
|
165 |
$revenue[$i]['revenue']=0;
|
98 |
{
|
99 |
|
100 |
//collect yesterday orders count
|
101 |
+
$ordersstatus = Mage::getStoreConfig('awonpulse/general/ordersstatus');
|
102 |
+
$ordersstatus = explode(',', $ordersstatus);
|
103 |
+
if (count($ordersstatus)==0){
|
104 |
+
$ordersstatus = array(Mage_Sales_Model_Order::STATE_COMPLETE);
|
105 |
+
}
|
106 |
/** @var $yesterdayOrders Mage_Sales_Model_Resource_Order_Collection */
|
107 |
$yesterdayOrders = Mage::getResourceModel('sales/order_collection');
|
108 |
|
110 |
'from' => $date->addDay(-1)->toString(Varien_Date::DATETIME_INTERNAL_FORMAT),
|
111 |
'to'=>$date->addDay(1)->toString(Varien_Date::DATETIME_INTERNAL_FORMAT)
|
112 |
))->addAttributeToSelect('*')
|
113 |
+
->addAttributeToFilter('status', array('in' => $ordersstatus));
|
114 |
|
115 |
|
116 |
//collect today orders count
|
119 |
$todayOrders = Mage::getResourceModel('sales/order_collection');
|
120 |
$todayOrders->addAttributeToFilter('created_at', array('from' => $date->toString(Varien_Date::DATETIME_INTERNAL_FORMAT)))
|
121 |
->addAttributeToSelect('*')
|
122 |
+
->addAttributeToFilter('status', array('in' => $ordersstatus));
|
123 |
|
124 |
//collect max, min, average orders
|
125 |
$order = array();
|
154 |
|
155 |
private function _getSales($date)
|
156 |
{
|
157 |
+
$ordersstatus = Mage::getStoreConfig('awonpulse/general/ordersstatus');
|
158 |
+
$ordersstatus = explode(',', $ordersstatus);
|
159 |
+
if (count($ordersstatus)==0){
|
160 |
+
$ordersstatus = array(Mage_Sales_Model_Order::STATE_COMPLETE);
|
161 |
+
}
|
162 |
$shiftedDate = $this->_getShiftedDate();
|
163 |
$shiftedDate->addDay(1);
|
164 |
$date->addDay(1);
|
168 |
$orders = Mage::getModel('sales/order')->getCollection();
|
169 |
$orders->addAttributeToFilter('created_at', array('from' => $date->addDay(-1)->toString(Varien_Date::DATETIME_INTERNAL_FORMAT),'to'=>$date->addDay(1)->toString(Varien_Date::DATETIME_INTERNAL_FORMAT)))
|
170 |
->addAttributeToSelect('*')
|
171 |
+
->addAttributeToFilter('status', array('in' => $ordersstatus));
|
172 |
$date->addDay(-1);
|
173 |
$shiftedDate->addDay(-1);
|
174 |
$revenue[$i]['revenue']=0;
|
app/code/local/AW/Onpulse/Model/Credentials.php
CHANGED
@@ -5,6 +5,7 @@ class AW_Onpulse_Model_Credentials extends Mage_Core_Model_Abstract
|
|
5 |
private $key = null;
|
6 |
private $hash = null;
|
7 |
private $qrhash = null;
|
|
|
8 |
|
9 |
private function _readConfig()
|
10 |
{
|
@@ -14,11 +15,54 @@ class AW_Onpulse_Model_Credentials extends Mage_Core_Model_Abstract
|
|
14 |
$this->hash = Mage::getStoreConfig('awonpulse/general/credhash');
|
15 |
$this->key = Mage::getStoreConfig('awonpulse/general/credurlkey');
|
16 |
$this->qrhash = md5($this->key.$this->hash);
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
17 |
}
|
|
|
|
|
18 |
}
|
19 |
return true;
|
20 |
}
|
21 |
|
|
|
22 |
public function checkAuthorization()
|
23 |
{
|
24 |
if (Mage::getStoreConfig('advanced/modules_disable_output/AW_Onpulse')) {
|
@@ -29,43 +73,25 @@ class AW_Onpulse_Model_Credentials extends Mage_Core_Model_Abstract
|
|
29 |
);
|
30 |
die('['.serialize($result).']');
|
31 |
}
|
32 |
-
$
|
33 |
-
|
34 |
-
$
|
35 |
-
|
36 |
-
|
37 |
-
|
38 |
-
|
39 |
-
|
40 |
-
if($qrcode != $this->qrhash) {
|
41 |
-
$result = array(
|
42 |
-
'result'=>false,
|
43 |
-
'error'=>1,
|
44 |
-
'message'=>'Incorrect credentials'
|
45 |
-
);
|
46 |
-
die('['.serialize($result).']');
|
47 |
-
}
|
48 |
-
} else {
|
49 |
-
$result = array(
|
50 |
-
'result'=>false,
|
51 |
-
'error'=>1,
|
52 |
-
'message'=>'Incorrect module configuration'
|
53 |
-
);
|
54 |
-
die('['.serialize($result).']');
|
55 |
-
}
|
56 |
-
} else {
|
57 |
$result = array(
|
58 |
'result'=>false,
|
59 |
'error'=>1,
|
60 |
-
'message'=>'Incorrect
|
61 |
);
|
62 |
-
|
|
|
|
|
|
|
|
|
|
|
63 |
}
|
64 |
-
|
65 |
-
$aggregator = Mage::getSingleton('awonpulse/aggregator')->Aggregate();
|
66 |
-
$output = Mage::helper('awonpulse')->processOutput($aggregator);
|
67 |
-
echo serialize($output);
|
68 |
-
die;
|
69 |
}
|
70 |
-
|
71 |
}
|
5 |
private $key = null;
|
6 |
private $hash = null;
|
7 |
private $qrhash = null;
|
8 |
+
private $ddl = null;
|
9 |
|
10 |
private function _readConfig()
|
11 |
{
|
15 |
$this->hash = Mage::getStoreConfig('awonpulse/general/credhash');
|
16 |
$this->key = Mage::getStoreConfig('awonpulse/general/credurlkey');
|
17 |
$this->qrhash = md5($this->key.$this->hash);
|
18 |
+
} else {
|
19 |
+
return false;
|
20 |
+
}
|
21 |
+
}
|
22 |
+
return true;
|
23 |
+
}
|
24 |
+
|
25 |
+
|
26 |
+
protected function _checkDirectLink()
|
27 |
+
{
|
28 |
+
$qrcode = null;
|
29 |
+
if(!Mage::getStoreConfig('awonpulse/general/ddl')){
|
30 |
+
$data = Mage::app()->getFrontController();
|
31 |
+
$qrcode = mb_substr($data->getRequest()->getOriginalPathInfo(),-32);
|
32 |
+
if(!preg_match('/[a-z0-9]{32}/',$qrcode)) return false;
|
33 |
+
//Check request
|
34 |
+
//if QRcode authorization
|
35 |
+
if($qrcode) {
|
36 |
+
if($this->_readConfig()){
|
37 |
+
if($qrcode != $this->qrhash) {
|
38 |
+
return false;
|
39 |
+
}
|
40 |
+
} else {
|
41 |
+
return false;
|
42 |
+
}
|
43 |
+
} else {
|
44 |
+
return false;
|
45 |
+
}
|
46 |
+
return true;
|
47 |
+
}
|
48 |
+
return false;
|
49 |
+
}
|
50 |
+
|
51 |
+
protected function _checkUrlKey()
|
52 |
+
{
|
53 |
+
$credurlkey = mb_substr(Mage::app()->getFrontController()->getRequest()->getOriginalPathInfo(), 1);
|
54 |
+
$credhash = Mage::app()->getFrontController()->getRequest()->getParam('key');
|
55 |
+
if($this->_readConfig()){
|
56 |
+
if(($this->key!=$credurlkey) || ($this->hash!=$credhash)){
|
57 |
+
return false;
|
58 |
}
|
59 |
+
} else {
|
60 |
+
return false;
|
61 |
}
|
62 |
return true;
|
63 |
}
|
64 |
|
65 |
+
|
66 |
public function checkAuthorization()
|
67 |
{
|
68 |
if (Mage::getStoreConfig('advanced/modules_disable_output/AW_Onpulse')) {
|
73 |
);
|
74 |
die('['.serialize($result).']');
|
75 |
}
|
76 |
+
$authFlag = false;
|
77 |
+
//Check direct link
|
78 |
+
$authFlag = $this->_checkDirectLink();
|
79 |
+
//Check url + ket
|
80 |
+
if(!$authFlag) {
|
81 |
+
$authFlag = $this->_checkUrlKey();
|
82 |
+
}
|
83 |
+
if(!$authFlag) {
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
84 |
$result = array(
|
85 |
'result'=>false,
|
86 |
'error'=>1,
|
87 |
+
'message'=>'Incorrect credentials'
|
88 |
);
|
89 |
+
// echo '['.serialize($result).']';
|
90 |
+
} else {
|
91 |
+
$aggregator = Mage::getSingleton('awonpulse/aggregator')->Aggregate();
|
92 |
+
$output = Mage::helper('awonpulse')->processOutput($aggregator);
|
93 |
+
echo serialize($output);
|
94 |
+
die;
|
95 |
}
|
|
|
|
|
|
|
|
|
|
|
96 |
}
|
|
|
97 |
}
|
app/code/local/AW/Onpulse/etc/config.xml
CHANGED
@@ -2,7 +2,7 @@
|
|
2 |
<config>
|
3 |
<modules>
|
4 |
<AW_Onpulse>
|
5 |
-
<version>1.0.
|
6 |
</AW_Onpulse>
|
7 |
</modules>
|
8 |
<global>
|
@@ -113,6 +113,11 @@
|
|
113 |
</acl>
|
114 |
</adminhtml>
|
115 |
<default>
|
116 |
-
|
|
|
|
|
|
|
|
|
|
|
117 |
</default>
|
118 |
</config>
|
2 |
<config>
|
3 |
<modules>
|
4 |
<AW_Onpulse>
|
5 |
+
<version>1.0.8</version>
|
6 |
</AW_Onpulse>
|
7 |
</modules>
|
8 |
<global>
|
113 |
</acl>
|
114 |
</adminhtml>
|
115 |
<default>
|
116 |
+
<awonpulse>
|
117 |
+
<general>
|
118 |
+
<ddl>0</ddl>
|
119 |
+
<ordersstatus>complete</ordersstatus>
|
120 |
+
</general>
|
121 |
+
</awonpulse>
|
122 |
</default>
|
123 |
</config>
|
app/code/local/AW/Onpulse/etc/system.xml
CHANGED
@@ -1,5 +1,11 @@
|
|
1 |
<?xml version="1.0"?>
|
2 |
<config>
|
|
|
|
|
|
|
|
|
|
|
|
|
3 |
<sections>
|
4 |
<awonpulse translate="label" module="awonpulse">
|
5 |
<label>Onpulse</label>
|
@@ -31,6 +37,19 @@
|
|
31 |
<show_in_website>1</show_in_website>
|
32 |
<show_in_store>1</show_in_store>
|
33 |
</credhash>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
34 |
</fields>
|
35 |
</general>
|
36 |
</groups>
|
1 |
<?xml version="1.0"?>
|
2 |
<config>
|
3 |
+
<tabs>
|
4 |
+
<awall translate="label" module="awonpulse">
|
5 |
+
<label>aheadWorks Extensions</label>
|
6 |
+
<sort_order>300</sort_order>
|
7 |
+
</awall>
|
8 |
+
</tabs>
|
9 |
<sections>
|
10 |
<awonpulse translate="label" module="awonpulse">
|
11 |
<label>Onpulse</label>
|
37 |
<show_in_website>1</show_in_website>
|
38 |
<show_in_store>1</show_in_store>
|
39 |
</credhash>
|
40 |
+
<ddl>
|
41 |
+
<frontend_type>select</frontend_type>
|
42 |
+
<source_model>adminhtml/system_config_source_yesno</source_model>
|
43 |
+
<show_in_default>1</show_in_default>
|
44 |
+
<show_in_website>1</show_in_website>
|
45 |
+
<show_in_store>1</show_in_store>
|
46 |
+
</ddl>
|
47 |
+
<ordersstatus>
|
48 |
+
<frontend_type>multiselect</frontend_type>
|
49 |
+
<show_in_default>1</show_in_default>
|
50 |
+
<show_in_website>1</show_in_website>
|
51 |
+
<show_in_store>1</show_in_store>
|
52 |
+
</ordersstatus>
|
53 |
</fields>
|
54 |
</general>
|
55 |
</groups>
|
app/design/adminhtml/default/default/layout/aw_all.xml
DELETED
@@ -1,17 +0,0 @@
|
|
1 |
-
<?xml version="1.0"?>
|
2 |
-
<layout>
|
3 |
-
<default>
|
4 |
-
<reference name="head">
|
5 |
-
<action method="addCss">
|
6 |
-
<name>aw_all/css/window.css</name>
|
7 |
-
</action>
|
8 |
-
|
9 |
-
</reference>
|
10 |
-
</default>
|
11 |
-
<adminhtml_system_config_edit>
|
12 |
-
<reference name="content">
|
13 |
-
<block type="awall/jsinit" name="aw_all_jsinit" template="aw_all/jsinit.phtml"></block>
|
14 |
-
</reference>
|
15 |
-
</adminhtml_system_config_edit>
|
16 |
-
|
17 |
-
</layout>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
app/design/adminhtml/default/default/template/aw_all/jsinit.phtml
DELETED
@@ -1,32 +0,0 @@
|
|
1 |
-
<?php if ($this->_section == 'awall'): ?>
|
2 |
-
<div id="awall_extensions_table">
|
3 |
-
<table class="form-list">
|
4 |
-
<tbody>
|
5 |
-
<?php foreach ($this->getExtensions() as $Extension): ?>
|
6 |
-
<tr>
|
7 |
-
<td><img src="<?php echo $this->getIcon($Extension)->getSource()?>"
|
8 |
-
alt="<?php echo $this->getIcon($Extension)->getTitle()?>"/></td>
|
9 |
-
<td><a href="<?php echo $Extension->getFeedInfo()->getUrl()?>"
|
10 |
-
onclick="this.target = '_blank'"><?php echo $Extension->getFeedInfo()->getDisplayName()?></a></td>
|
11 |
-
<td><?php echo $Extension->getVersion()?></td>
|
12 |
-
<td>
|
13 |
-
<a href="http://doc.aheadworks.com/magento-extensions/<?php echo $Extension->getName()?>-<?php echo $Extension->getVersion()?>/readme.html"
|
14 |
-
onclick="this.target = '_blank'"><img
|
15 |
-
src="<?php echo $this->getSkinUrl('aw_all/images/readme.png')?>"/></a></td>
|
16 |
-
</tr>
|
17 |
-
<?php endforeach; ?>
|
18 |
-
</tbody>
|
19 |
-
</table>
|
20 |
-
</div>
|
21 |
-
<?php endif; ?>
|
22 |
-
<?php if ($this->_section == 'awstore'): ?>
|
23 |
-
<div id="awall_store_response">
|
24 |
-
|
25 |
-
<?php echo $this->_getStoreData()->getTextResponse()?>
|
26 |
-
</div>
|
27 |
-
<?php endif; ?>
|
28 |
-
|
29 |
-
|
30 |
-
<script type="text/javascript">
|
31 |
-
_section = '<?php echo $this->_section?>';
|
32 |
-
</script>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
app/design/adminhtml/default/default/template/aw_all/notification/window.phtml
DELETED
@@ -1,74 +0,0 @@
|
|
1 |
-
<?php
|
2 |
-
/**
|
3 |
-
* aheadWorks Co.
|
4 |
-
*
|
5 |
-
* NOTICE OF LICENSE
|
6 |
-
*
|
7 |
-
* This source file is subject to the EULA
|
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://ecommerce.aheadworks.com/LICENSE-M1.txt
|
11 |
-
*
|
12 |
-
* @category AW
|
13 |
-
* @package AW_All
|
14 |
-
* @copyright Copyright (c) 2009-2010 aheadWorks Co. (http://www.aheadworks.com)
|
15 |
-
* @license http://ecommerce.aheadworks.com/LICENSE-M1.txt
|
16 |
-
*/
|
17 |
-
?>
|
18 |
-
<div id="message-popup-window-mask" style="display:none;"></div>
|
19 |
-
|
20 |
-
<div style="position:relative;margin-left:-390px;">
|
21 |
-
<div id="aw_notif" class="notification" style="display:none;">
|
22 |
-
<div class="head">
|
23 |
-
<h3><?php echo $this->getHeaderText();?></h3>
|
24 |
-
<button type="button" class="close" onclick="closeMessagePopupWindow()">
|
25 |
-
<span><?php echo $this->getCloseText(); ?></span></button>
|
26 |
-
</div>
|
27 |
-
<div class="content">
|
28 |
-
<?php echo $this->getNoticeMessageText(); ?>
|
29 |
-
</div>
|
30 |
-
</div>
|
31 |
-
</div>
|
32 |
-
<script>
|
33 |
-
function showAwNotificator() {
|
34 |
-
openMessagePopupWindow();
|
35 |
-
Effect.Appear('aw_notif', { duration: 1.0 });
|
36 |
-
}
|
37 |
-
Event.observe(window, 'load', showAwNotificator);
|
38 |
-
|
39 |
-
|
40 |
-
function openMessagePopupWindow() {
|
41 |
-
var height = $('html-body').getHeight();
|
42 |
-
$('message-popup-window-mask').setStyle({'height':height + 'px'});
|
43 |
-
toggleSelectsUnderBlock($('message-popup-window-mask'), false);
|
44 |
-
Element.show('message-popup-window-mask');
|
45 |
-
}
|
46 |
-
|
47 |
-
function closeMessagePopupWindow() {
|
48 |
-
toggleSelectsUnderBlock($('message-popup-window-mask'), true);
|
49 |
-
Effect.Fade('aw_notif', { duration: 0.5 });
|
50 |
-
Element.hide('message-popup-window-mask');
|
51 |
-
}
|
52 |
-
|
53 |
-
|
54 |
-
function saveCloseMessagePopupWindow() {
|
55 |
-
$('aw-save-button-content').innerHTML = '<?php echo $this->__("Saving, please wait...")?>';
|
56 |
-
$('aw-save-button').addClassName('disabled');
|
57 |
-
$('aw_firstrun').request({
|
58 |
-
onComplete: function() {
|
59 |
-
toggleSelectsUnderBlock($('message-popup-window-mask'), true);
|
60 |
-
Effect.Fade('aw_notif', { duration: 0.5 });
|
61 |
-
Element.hide('message-popup-window-mask');
|
62 |
-
}
|
63 |
-
})
|
64 |
-
|
65 |
-
}
|
66 |
-
|
67 |
-
</script>
|
68 |
-
|
69 |
-
|
70 |
-
<?php /*
|
71 |
-
|
72 |
-
|
73 |
-
*/
|
74 |
-
?>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
app/design/adminhtml/default/default/template/aw_all/notification/window/first-run.phtml
DELETED
@@ -1,65 +0,0 @@
|
|
1 |
-
<?php
|
2 |
-
/**
|
3 |
-
* aheadWorks Co.
|
4 |
-
*
|
5 |
-
* NOTICE OF LICENSE
|
6 |
-
*
|
7 |
-
* This source file is subject to the EULA
|
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://ecommerce.aheadworks.com/LICENSE-M1.txt
|
11 |
-
*
|
12 |
-
* @category AW
|
13 |
-
* @package AW_All
|
14 |
-
* @copyright Copyright (c) 2009-2010 aheadWorks Co. (http://www.aheadworks.com)
|
15 |
-
* @license http://ecommerce.aheadworks.com/LICENSE-M1.txt
|
16 |
-
*/
|
17 |
-
?>
|
18 |
-
<form method="post" action="<?php echo $this->getUrl('adminhtml/system_config/save', array('section' => 'awall'))?>"
|
19 |
-
id="aw_firstrun">
|
20 |
-
<table class="form-list" cellspacing="0">
|
21 |
-
<colgroup class="label"/>
|
22 |
-
<colgroup class="value"/>
|
23 |
-
<tbody>
|
24 |
-
|
25 |
-
<tr>
|
26 |
-
<td class="label">
|
27 |
-
<label for="interests"><?php echo $this->__('I wish to be informed about')?>:</label>
|
28 |
-
</td>
|
29 |
-
<td class="value">
|
30 |
-
|
31 |
-
<input type="hidden" value="" name="groups[feed][fields][interests][value]">
|
32 |
-
<select name="groups[feed][fields][interests][value][]" style="width:214px" size="6" multiple="multiple"
|
33 |
-
id="interests" class="select multiselect">
|
34 |
-
<?php foreach (Mage::getModel('awall/source_updates_type')->getGridOptions() as $k => $v): ?>
|
35 |
-
<option selected="selected" value="<?php echo $k?>"><?php echo $this->__($v)?></option>
|
36 |
-
<?php endforeach;?>
|
37 |
-
</select><br/>
|
38 |
-
<a href="#"
|
39 |
-
onclick="$$('#interests option').each(function(el){el.selected=1});return false;"><?php echo $this->__("Select all")?></a>
|
40 |
-
/
|
41 |
-
<a href="#"
|
42 |
-
onclick="$('interests').selectedIndex = -1;return false;"><?php echo $this->__("Deselect all")?></a>
|
43 |
-
</td>
|
44 |
-
</tr>
|
45 |
-
<tr>
|
46 |
-
<td class="label"></td>
|
47 |
-
<td class="value">
|
48 |
-
<button id="aw-save-button" class="scalable save" style="" onclick="saveCloseMessagePopupWindow()"
|
49 |
-
type="button">
|
50 |
-
<span id="aw-save-button-content"> <?php echo $this->__('Save & Close')?></span>
|
51 |
-
</button>
|
52 |
-
</td>
|
53 |
-
</tr>
|
54 |
-
<tr>
|
55 |
-
<td colspan="2" align="right">
|
56 |
-
<div style="width:365px">
|
57 |
-
<small><?php echo $this->__("This message appears only once. At any time you can change these preferences
|
58 |
-
from System > Configuration > aheadWorks extensions > Info. <br/><a href=\"%s\">Visit it now</a>",
|
59 |
-
Mage::getModel('adminhtml/url')->getUrl('adminhtml/system_config/edit', array('section' => 'awall')))?></small>
|
60 |
-
</div>
|
61 |
-
</td>
|
62 |
-
</tr>
|
63 |
-
</tbody>
|
64 |
-
</table>
|
65 |
-
</form>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
app/design/adminhtml/default/default/template/aw_onpulse/settings.phtml
CHANGED
@@ -1,5 +1,11 @@
|
|
1 |
<?php
|
2 |
$directLoginLink = null;
|
|
|
|
|
|
|
|
|
|
|
|
|
3 |
if ((Mage::getStoreConfig('awonpulse/general/credurlkey')) && (Mage::getStoreConfig('awonpulse/general/credhash'))) {
|
4 |
$credurlkey = Mage::getStoreConfig('awonpulse/general/credurlkey');
|
5 |
$credhash = Mage::getStoreConfig('awonpulse/general/credhash');
|
@@ -40,6 +46,17 @@ if ((Mage::getStoreConfig('awonpulse/general/credurlkey')) && (Mage::getStoreCon
|
|
40 |
name="groups[general][fields][credhash][value]" id="hash" value="<?php echo $credhash;?>">
|
41 |
</td>
|
42 |
</tr>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
43 |
<?php if ($directLoginLink) : ?>
|
44 |
<tr>
|
45 |
<td class="label">
|
@@ -61,11 +78,31 @@ if ((Mage::getStoreConfig('awonpulse/general/credurlkey')) && (Mage::getStoreCon
|
|
61 |
</td>
|
62 |
</tr>
|
63 |
<?php endif; ?>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
64 |
<tr>
|
65 |
<td>
|
66 |
</td>
|
67 |
<td style="padding-left: 6px; padding-top: 10px;">
|
68 |
-
<button onclick="generate(this);"><?php echo Mage::helper('awonpulse')->__('
|
69 |
<p class="note">
|
70 |
<span><?php echo Mage::helper('awonpulse')->__('Each time you reset credentials OnPulse generates new URL, key, direct login and QR code') ?></span>
|
71 |
</p>
|
@@ -75,7 +112,6 @@ if ((Mage::getStoreConfig('awonpulse/general/credurlkey')) && (Mage::getStoreCon
|
|
75 |
</tbody>
|
76 |
</table>
|
77 |
|
78 |
-
|
79 |
<script type="text/javascript">
|
80 |
var flagSubmit = false;
|
81 |
function generate() {
|
1 |
<?php
|
2 |
$directLoginLink = null;
|
3 |
+
$ddl = Mage::getStoreConfig('awonpulse/general/ddl');
|
4 |
+
$ordersStatusCollection = Mage::getSingleton('sales/order_config')->getStatuses();
|
5 |
+
$ordersstatus = Mage::getStoreConfig('awonpulse/general/ordersstatus');
|
6 |
+
$ordersstatus = explode(',', $ordersstatus);
|
7 |
+
$size = count($ordersStatusCollection);
|
8 |
+
|
9 |
if ((Mage::getStoreConfig('awonpulse/general/credurlkey')) && (Mage::getStoreConfig('awonpulse/general/credhash'))) {
|
10 |
$credurlkey = Mage::getStoreConfig('awonpulse/general/credurlkey');
|
11 |
$credhash = Mage::getStoreConfig('awonpulse/general/credhash');
|
46 |
name="groups[general][fields][credhash][value]" id="hash" value="<?php echo $credhash;?>">
|
47 |
</td>
|
48 |
</tr>
|
49 |
+
<tr>
|
50 |
+
<td class="label">
|
51 |
+
<label><?php echo Mage::helper('awonpulse')->__('Disable direct login link') ?></label>
|
52 |
+
</td>
|
53 |
+
<td class="value">
|
54 |
+
<select name="groups[general][fields][ddl][value]" id="ddl" autofocus>
|
55 |
+
<option <?php if($ddl=="1") echo "selected" ?> value="1"><?php echo Mage::helper('awonpulse')->__('Yes') ?></option>
|
56 |
+
<option <?php if($ddl=="0") echo "selected" ?> value="0"><?php echo Mage::helper('awonpulse')->__('No') ?></option>
|
57 |
+
</select>
|
58 |
+
</td>
|
59 |
+
</tr>
|
60 |
<?php if ($directLoginLink) : ?>
|
61 |
<tr>
|
62 |
<td class="label">
|
78 |
</td>
|
79 |
</tr>
|
80 |
<?php endif; ?>
|
81 |
+
|
82 |
+
<tr>
|
83 |
+
<td class="label">
|
84 |
+
<label><?php echo Mage::helper('awonpulse')->__('Show statistic for orders with statuses') ?></label>
|
85 |
+
</td>
|
86 |
+
<td class="value">
|
87 |
+
<select multiple name="groups[general][fields][ordersstatus][value][]" id="ordersstatus" size="<?php echo $size?>">
|
88 |
+
<?php foreach ($ordersStatusCollection as $storeOrderStatus => $statusLabel): ?>
|
89 |
+
<?php
|
90 |
+
if (in_array($storeOrderStatus,$ordersstatus)){
|
91 |
+
$selected = "selected";
|
92 |
+
} else {
|
93 |
+
$selected = "";
|
94 |
+
}
|
95 |
+
?>
|
96 |
+
<option <?php echo $selected; ?> value="<?php echo $storeOrderStatus; ?>"><?php echo $statusLabel; ?></option>
|
97 |
+
<?php endforeach;?>
|
98 |
+
</select>
|
99 |
+
</td>
|
100 |
+
</tr>
|
101 |
<tr>
|
102 |
<td>
|
103 |
</td>
|
104 |
<td style="padding-left: 6px; padding-top: 10px;">
|
105 |
+
<button onclick="generate(this);"><?php echo Mage::helper('awonpulse')->__('Save and generate new login credentials') ?></button>
|
106 |
<p class="note">
|
107 |
<span><?php echo Mage::helper('awonpulse')->__('Each time you reset credentials OnPulse generates new URL, key, direct login and QR code') ?></span>
|
108 |
</p>
|
112 |
</tbody>
|
113 |
</table>
|
114 |
|
|
|
115 |
<script type="text/javascript">
|
116 |
var flagSubmit = false;
|
117 |
function generate() {
|
app/etc/modules/AW_All.xml
DELETED
@@ -1,9 +0,0 @@
|
|
1 |
-
<?xml version="1.0"?>
|
2 |
-
<config>
|
3 |
-
<modules>
|
4 |
-
<AW_All>
|
5 |
-
<active>true</active>
|
6 |
-
<codePool>local</codePool>
|
7 |
-
</AW_All>
|
8 |
-
</modules>
|
9 |
-
</config>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
app/locale/en_US/AW_Onpulse.csv
CHANGED
@@ -1,9 +1,13 @@
|
|
1 |
"Hash","Hash"
|
2 |
"Url key","Url key"
|
3 |
-
|
4 |
-
|
5 |
-
|
6 |
-
|
7 |
-
|
8 |
-
|
9 |
-
|
|
|
|
|
|
|
|
1 |
"Hash","Hash"
|
2 |
"Url key","Url key"
|
3 |
+
"URL","URL"
|
4 |
+
"Your login name to access OnPulse service","Your login name to access OnPulse service"
|
5 |
+
"Key","Key"
|
6 |
+
"Direct login URL","Direct login URL"
|
7 |
+
"Direct login QR","Direct login QR"
|
8 |
+
"Save and generate new login credentials","Save and generate new login credentials"
|
9 |
+
"Each time you reset credentials OnPulse generates new URL, key, direct login and QR code","Each time you reset credentials OnPulse generates new URL, key, direct login and QR code"
|
10 |
+
"Disable direct login link","Disable direct login link"
|
11 |
+
"Yes","Yes"
|
12 |
+
"No","No"
|
13 |
+
"Show statistic for orders with statuses","Show statistic for orders with statuses"
|
js/aw_all/aw_all.js
DELETED
@@ -1,11 +0,0 @@
|
|
1 |
-
function initAwall(){
|
2 |
-
if(_section == 'awall'){
|
3 |
-
$('awall_extensions').update($('awall_extensions_table').innerHTML)
|
4 |
-
}
|
5 |
-
if(_section == 'awstore'){
|
6 |
-
$('awstore_extensions').update($('awall_store_response').innerHTML)
|
7 |
-
}
|
8 |
-
}
|
9 |
-
Event.observe(window, 'load', function() {
|
10 |
-
initAwall();
|
11 |
-
});
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
package.xml
CHANGED
@@ -1,7 +1,7 @@
|
|
1 |
<?xml version="1.0"?>
|
2 |
<package>
|
3 |
<name>AW_Onpulse</name>
|
4 |
-
<version>1.0.
|
5 |
<stability>stable</stability>
|
6 |
<license uri="http://onpulse.info/TOS.pdf">EULA</license>
|
7 |
<channel>community</channel>
|
@@ -9,11 +9,13 @@
|
|
9 |
<summary>Mobile administration for Magento</summary>
|
10 |
<description>OnPulse provides you with an access to your sales statistics, the latest orders, and the clients list through any iOS or Android powered mobile device.
|
11 |
</description>
|
12 |
-
<notes
|
|
|
|
|
13 |
<authors><author><name>AW_Core_Team</name><user>aheadworks</user><email>no-reply@aheadworks.com</email></author></authors>
|
14 |
-
<date>2013-
|
15 |
-
<time>12:
|
16 |
-
<contents><target name="magelocal"><dir name="AW"><dir name="Onpulse"><dir name="Block"><dir name="System"><dir name="Config"><dir name="Form"><dir name="Fieldset"><dir name="Onpulse"><file name="Settings.php" hash="6ba04d380ea7140b42c54f00a0acc452"/></dir></dir></dir></dir></dir></dir><dir name="Helper"><file name="Data.php" hash="d97d368504bcf1bef23bb2b9d9337fce"/><file name="Data.php.orig" hash="fb2ab95d3268d3d8a689143dff7ffdb8"/></dir><dir name="Model"><dir name="Aggregator"><file name="Component.php" hash="721719d0df46da388b229c10d137864b"/><dir name="Components"><file name="Customer.php" hash="52df2d3be2d6196ee957b2e2c0d92cb2"/><file name="Order.php" hash="a3dd4fb8dbcb1317edbbfedbac87abfc"/><file name="Statistics.php" hash="
|
17 |
<compatible/>
|
18 |
<dependencies><required><php><min>5.2.0</min><max>6.0.0</max></php></required></dependencies>
|
19 |
</package>
|
1 |
<?xml version="1.0"?>
|
2 |
<package>
|
3 |
<name>AW_Onpulse</name>
|
4 |
+
<version>1.0.8</version>
|
5 |
<stability>stable</stability>
|
6 |
<license uri="http://onpulse.info/TOS.pdf">EULA</license>
|
7 |
<channel>community</channel>
|
9 |
<summary>Mobile administration for Magento</summary>
|
10 |
<description>OnPulse provides you with an access to your sales statistics, the latest orders, and the clients list through any iOS or Android powered mobile device.
|
11 |
</description>
|
12 |
+
<notes>+ Enable/Disable Direct link Login
|
13 |
+
+ Ability to select order statuses are displayed in the statistics.
|
14 |
+
minor bugfixes</notes>
|
15 |
<authors><author><name>AW_Core_Team</name><user>aheadworks</user><email>no-reply@aheadworks.com</email></author></authors>
|
16 |
+
<date>2013-04-09</date>
|
17 |
+
<time>12:52:22</time>
|
18 |
+
<contents><target name="magelocal"><dir name="AW"><dir name="Onpulse"><dir name="Block"><dir name="System"><dir name="Config"><dir name="Form"><dir name="Fieldset"><dir name="Onpulse"><file name="Settings.php" hash="6ba04d380ea7140b42c54f00a0acc452"/></dir></dir></dir></dir></dir></dir><dir name="Helper"><file name="Data.php" hash="d97d368504bcf1bef23bb2b9d9337fce"/><file name="Data.php.orig" hash="fb2ab95d3268d3d8a689143dff7ffdb8"/></dir><dir name="Model"><dir name="Aggregator"><file name="Component.php" hash="721719d0df46da388b229c10d137864b"/><dir name="Components"><file name="Customer.php" hash="52df2d3be2d6196ee957b2e2c0d92cb2"/><file name="Order.php" hash="a3dd4fb8dbcb1317edbbfedbac87abfc"/><file name="Statistics.php" hash="9407dc4f00533766fc930beb2c7675d7"/></dir></dir><file name="Aggregator.php" hash="fcb4342d583403a99ca7bc245115854f"/><file name="Credentials.php" hash="56d886028ae6548937a9025d34e6e921"/></dir><dir name="etc"><file name="config.xml" hash="b7b009c9f28c702d94659aed019e488b"/><file name="system.xml" hash="11fa0896cc56063c5c572d992622e224"/></dir></dir></dir></target><target name="mage"><dir name="app"><dir name="design"><dir name="adminhtml"><dir name="default"><dir name="default"><dir name="template"><dir name="aw_onpulse"><file name="settings.phtml" hash="10c6eea6457de53e501360b25eb50f1d"/></dir></dir></dir></dir></dir></dir><dir name="etc"><dir name="modules"><file name="AW_Onpulse.xml" hash="de39a5ffebb31ee697fbaf56bb1bfb8a"/></dir></dir><dir name="locale"><dir name="en_US"><file name="AW_Onpulse.csv" hash="23f7bee483404129d0f811a2f53cf38d"/></dir></dir></dir><dir><dir name="app"><dir name="design"><dir name="adminhtml"><dir name="default"><dir name="default"><dir name="layout"><file name="aw_onpulse.xml" hash="5036d3b89b9a204c9420f40f3983d987"/></dir></dir></dir></dir></dir></dir></dir></target></contents>
|
19 |
<compatible/>
|
20 |
<dependencies><required><php><min>5.2.0</min><max>6.0.0</max></php></required></dependencies>
|
21 |
</package>
|
skin/adminhtml/default/default/aw_all/css/window.css
DELETED
@@ -1,94 +0,0 @@
|
|
1 |
-
#aw_notif {
|
2 |
-
z-index: 100000000;
|
3 |
-
position: absolute;
|
4 |
-
top: 300px;
|
5 |
-
padding: 0px;
|
6 |
-
left: 50%;
|
7 |
-
border: 4px solid #f3bf8f;
|
8 |
-
border-top-width: 0px;
|
9 |
-
margin: auto;
|
10 |
-
background: #fdf4eb;
|
11 |
-
}
|
12 |
-
|
13 |
-
#aw_notif .head h3 {
|
14 |
-
margin-left: 12px;
|
15 |
-
font-size: 1.1em;
|
16 |
-
margin-bottom: 0px;
|
17 |
-
margin-top: 0.2em;
|
18 |
-
font-weight: bold;
|
19 |
-
float: left;
|
20 |
-
}
|
21 |
-
|
22 |
-
#aw_notif .head {
|
23 |
-
background: #f3bf8f;
|
24 |
-
height: 23px;
|
25 |
-
|
26 |
-
}
|
27 |
-
|
28 |
-
#aw_notif .content {
|
29 |
-
padding: 20px;
|
30 |
-
background: url(../images/info.gif) no-repeat 20px 30px;
|
31 |
-
|
32 |
-
}
|
33 |
-
|
34 |
-
#aw_notif .head .close {
|
35 |
-
display: block;
|
36 |
-
float: right;
|
37 |
-
background: url(../images/window/btn-close.gif) no-repeat top left;
|
38 |
-
padding-left: 28px;
|
39 |
-
height: 19px;
|
40 |
-
margin-top: 2px;
|
41 |
-
font-size: 11px;
|
42 |
-
font-weight: normal;
|
43 |
-
}
|
44 |
-
|
45 |
-
#aw_notif .value label {
|
46 |
-
|
47 |
-
}
|
48 |
-
|
49 |
-
#awall_extensions a img {
|
50 |
-
vertical-align: middle;
|
51 |
-
margin-right: 3px;
|
52 |
-
}
|
53 |
-
|
54 |
-
#aw_notif .form-list td.label label {
|
55 |
-
width: 130px;
|
56 |
-
margin-left: 45px;
|
57 |
-
text-align: right;
|
58 |
-
|
59 |
-
}
|
60 |
-
|
61 |
-
.adminhtml-system-config-edit #awall_extensions .label label {
|
62 |
-
width: auto;
|
63 |
-
white-space: nowrap;
|
64 |
-
}
|
65 |
-
|
66 |
-
#awall_extensions_table, #awall_store_response {
|
67 |
-
display: none;
|
68 |
-
}
|
69 |
-
|
70 |
-
.adminhtml-system-config-edit #awall_extensions table td {
|
71 |
-
padding: 0px 3px;
|
72 |
-
}
|
73 |
-
|
74 |
-
ul.tabs a.awall-section span, ul.tabs a.awall-section:hover span {
|
75 |
-
background: url("../images/store.png") no-repeat scroll 0 0 transparent;
|
76 |
-
height: 0;
|
77 |
-
overflow: hidden;
|
78 |
-
padding: 21px 0 0;
|
79 |
-
width: 192px;
|
80 |
-
}
|
81 |
-
|
82 |
-
ul.tabs a.awall-section, ul.tabs a.awall-section:hover {
|
83 |
-
background: url("../../images/tabs_span_bg.gif") repeat-x scroll 0 100% transparent;
|
84 |
-
border-bottom: medium none;
|
85 |
-
padding: 0.5em 0.5em 0.28em 1.5em;
|
86 |
-
}
|
87 |
-
|
88 |
-
ul.tabs a.awall-section:hover {
|
89 |
-
background-color: #d8e6e6;
|
90 |
-
}
|
91 |
-
|
92 |
-
ul.tabs a.awall-section.active, ul.tabs a.awall-section.active:hover {
|
93 |
-
background-color: #FFFFFF;
|
94 |
-
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
skin/adminhtml/default/default/aw_all/images/bad.gif
DELETED
Binary file
|
skin/adminhtml/default/default/aw_all/images/delete.jpg
DELETED
Binary file
|
skin/adminhtml/default/default/aw_all/images/info.gif
DELETED
Binary file
|
skin/adminhtml/default/default/aw_all/images/ok.gif
DELETED
Binary file
|
skin/adminhtml/default/default/aw_all/images/readme.png
DELETED
Binary file
|
skin/adminhtml/default/default/aw_all/images/store.png
DELETED
Binary file
|
skin/adminhtml/default/default/aw_all/images/update.gif
DELETED
Binary file
|
skin/adminhtml/default/default/aw_all/images/window/arrow.gif
DELETED
Binary file
|
skin/adminhtml/default/default/aw_all/images/window/btn-close.gif
DELETED
Binary file
|