Version Notes
Magestore_BannerSlider
Download this release
Release Info
Developer | Magestore |
Extension | Magestore_BannerSlider |
Version | 4.0.1 |
Comparing to | |
See all releases |
Code changes from version 4.0.0 to 4.0.1
- app/code/community/Magestore/Bannerslider/controllers/Adminhtml/Bannerslider/BannerController.php +0 -1
- app/code/community/Magestore/Bannerslider/etc/config.xml +1 -1
- app/code/local/Magestore/Magenotification/Block/Adminhtml/Feedback.php +0 -12
- app/code/local/Magestore/Magenotification/Block/Adminhtml/Feedback/Edit.php +0 -51
- app/code/local/Magestore/Magenotification/Block/Adminhtml/Feedback/Edit/Form.php +0 -19
- app/code/local/Magestore/Magenotification/Block/Adminhtml/Feedback/Edit/Tab/Form.php +0 -110
- app/code/local/Magestore/Magenotification/Block/Adminhtml/Feedback/Edit/Tab/History.php +0 -31
- app/code/local/Magestore/Magenotification/Block/Adminhtml/Feedback/Edit/Tab/Message.php +0 -28
- app/code/local/Magestore/Magenotification/Block/Adminhtml/Feedback/Edit/Tabs.php +0 -37
- app/code/local/Magestore/Magenotification/Block/Adminhtml/Feedback/Grid.php +0 -126
- app/code/local/Magestore/Magenotification/Block/Adminhtml/Feedback/Renderer/File.php +0 -34
- app/code/local/Magestore/Magenotification/Block/Adminhtml/Feedback/Renderer/Product.php +0 -10
- app/code/local/Magestore/Magenotification/Block/Adminhtml/Feedback/Renderer/Sentstatus.php +0 -14
- app/code/local/Magestore/Magenotification/Block/Adminhtml/Feedback/Renderer/Status.php +0 -22
- app/code/local/Magestore/Magenotification/Block/Adminhtml/License/Purchaseform.php +0 -15
- app/code/local/Magestore/Magenotification/Block/Adminhtml/License/Updateform.php +0 -39
- app/code/local/Magestore/Magenotification/Block/Config/Extensioncerts.php +0 -182
- app/code/local/Magestore/Magenotification/Block/Config/Extensionkeys.php +0 -233
- app/code/local/Magestore/Magenotification/Block/Config/Field.php +0 -14
- app/code/local/Magestore/Magenotification/Block/Config/Label.php +0 -13
- app/code/local/Magestore/Magenotification/Block/Config/Licenseinfo.php +0 -50
- app/code/local/Magestore/Magenotification/Helper/Data.php +0 -555
- app/code/local/Magestore/Magenotification/Helper/Feedback.php +0 -120
- app/code/local/Magestore/Magenotification/Helper/License.php +0 -31
- app/code/local/Magestore/Magenotification/Model/Config.php +0 -28
- app/code/local/Magestore/Magenotification/Model/Feedback.php +0 -62
- app/code/local/Magestore/Magenotification/Model/Feedbackmessage.php +0 -49
- app/code/local/Magestore/Magenotification/Model/Keygen.php +0 -215
- app/code/local/Magestore/Magenotification/Model/License.php +0 -22
- app/code/local/Magestore/Magenotification/Model/Logger.php +0 -11
- app/code/local/Magestore/Magenotification/Model/Magenotification.php +0 -204
- app/code/local/Magestore/Magenotification/Model/Mysql4/Feedback.php +0 -9
- app/code/local/Magestore/Magenotification/Model/Mysql4/Feedback/Collection.php +0 -10
- app/code/local/Magestore/Magenotification/Model/Mysql4/Feedbackmessage.php +0 -9
- app/code/local/Magestore/Magenotification/Model/Mysql4/Feedbackmessage/Collection.php +0 -10
- app/code/local/Magestore/Magenotification/Model/Mysql4/License.php +0 -8
- app/code/local/Magestore/Magenotification/Model/Mysql4/License/Collection.php +0 -9
- app/code/local/Magestore/Magenotification/Model/Mysql4/Logger.php +0 -9
- app/code/local/Magestore/Magenotification/Model/Mysql4/Logger/Collection.php +0 -10
- app/code/local/Magestore/Magenotification/Model/Mysql4/Magenotification.php +0 -9
- app/code/local/Magestore/Magenotification/Model/Mysql4/Magenotification/Collection.php +0 -10
- app/code/local/Magestore/Magenotification/Model/Observer.php +0 -14
- app/code/local/Magestore/Magenotification/Model/Source/Time.php +0 -38
- app/code/local/Magestore/Magenotification/Model/Status.php +0 -15
- app/code/local/Magestore/Magenotification/controllers/Adminhtml/FeedbackController.php +0 -301
- app/code/local/Magestore/Magenotification/controllers/Adminhtml/LicenseController.php +0 -32
- app/code/local/Magestore/Magenotification/controllers/Adminhtml/MagenotificationController.php +0 -15
- app/code/local/Magestore/Magenotification/etc/adminhtml.xml +0 -85
- app/code/local/Magestore/Magenotification/etc/config.xml +0 -106
- app/code/local/Magestore/Magenotification/etc/system.xml +0 -143
- app/code/local/Magestore/Magenotification/sql/magenotification_setup/mysql4-install-0.1.2.php +0 -73
- app/code/local/Magestore/Magenotification/sql/magenotification_setup/mysql4-upgrade-0.1.0-0.1.2.php +0 -64
- app/code/local/Magestore/Magenotification/sql/magenotification_setup/mysql4-upgrade-0.1.1-0.1.2.php +0 -26
- app/code/local/Magestore/Magenotification/sql/magenotification_setup/mysql4-upgrade-0.1.2-0.1.3.php +0 -25
- app/design/adminhtml/default/default/layout/magenotification.xml +0 -16
- app/design/adminhtml/default/default/template/magenotification/feedback/files.phtml +0 -17
- app/design/adminhtml/default/default/template/magenotification/feedback/history.phtml +0 -31
- app/design/adminhtml/default/default/template/magenotification/license/licenseinfo.phtml +0 -68
- app/design/adminhtml/default/default/template/magenotification/license/purchaseform.phtml +0 -7
- app/design/adminhtml/default/default/template/magenotification/license/updateform.phtml +0 -41
- app/design/frontend/base/default/layout/vssver2.scc +0 -0
- app/etc/modules/Magestore_Magenotification.xml +0 -9
- media/bannerslider/b/n/bntest1.png +0 -0
- media/bannerslider/b/n/bntest2.png +0 -0
- media/bannerslider/o/n/ontest3.png +0 -0
- package.xml +9 -9
app/code/community/Magestore/Bannerslider/controllers/Adminhtml/Bannerslider/BannerController.php
CHANGED
@@ -127,7 +127,6 @@ class Magestore_Bannerslider_Adminhtml_Bannerslider_BannerController extends Mag
|
|
127 |
unset($data['image']);
|
128 |
}
|
129 |
|
130 |
-
$data = $this->_filterDateTime($data,array('start_time','end_time'));
|
131 |
try {
|
132 |
$data['start_time']=date('Y-m-d H:i:s',Mage::getModel('core/date')->gmtTimestamp(strtotime($data['start_time'])));
|
133 |
$data['end_time']=date('Y-m-d H:i:s',Mage::getModel('core/date')->gmtTimestamp(strtotime($data['end_time'])));
|
127 |
unset($data['image']);
|
128 |
}
|
129 |
|
|
|
130 |
try {
|
131 |
$data['start_time']=date('Y-m-d H:i:s',Mage::getModel('core/date')->gmtTimestamp(strtotime($data['start_time'])));
|
132 |
$data['end_time']=date('Y-m-d H:i:s',Mage::getModel('core/date')->gmtTimestamp(strtotime($data['end_time'])));
|
app/code/community/Magestore/Bannerslider/etc/config.xml
CHANGED
@@ -23,7 +23,7 @@
|
|
23 |
<config>
|
24 |
<modules>
|
25 |
<Magestore_Bannerslider>
|
26 |
-
<version>
|
27 |
</Magestore_Bannerslider>
|
28 |
</modules>
|
29 |
<frontend>
|
23 |
<config>
|
24 |
<modules>
|
25 |
<Magestore_Bannerslider>
|
26 |
+
<version>4.0.1</version>
|
27 |
</Magestore_Bannerslider>
|
28 |
</modules>
|
29 |
<frontend>
|
app/code/local/Magestore/Magenotification/Block/Adminhtml/Feedback.php
DELETED
@@ -1,12 +0,0 @@
|
|
1 |
-
<?php
|
2 |
-
class Magestore_Magenotification_Block_Adminhtml_Feedback extends Mage_Adminhtml_Block_Widget_Grid_Container
|
3 |
-
{
|
4 |
-
public function __construct()
|
5 |
-
{
|
6 |
-
$this->_controller = 'adminhtml_feedback';
|
7 |
-
$this->_blockGroup = 'magenotification';
|
8 |
-
$this->_headerText = Mage::helper('magenotification')->__('Feedbacks Manager');
|
9 |
-
parent::__construct();
|
10 |
-
$this->_updateButton('add', 'label', Mage::helper('magenotification')->__('Post Feedback'));
|
11 |
-
}
|
12 |
-
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
app/code/local/Magestore/Magenotification/Block/Adminhtml/Feedback/Edit.php
DELETED
@@ -1,51 +0,0 @@
|
|
1 |
-
<?php
|
2 |
-
|
3 |
-
class Magestore_Magenotification_Block_Adminhtml_Feedback_Edit extends Mage_Adminhtml_Block_Widget_Form_Container
|
4 |
-
{
|
5 |
-
public function __construct()
|
6 |
-
{
|
7 |
-
parent::__construct();
|
8 |
-
|
9 |
-
$this->_objectId = 'id';
|
10 |
-
$this->_blockGroup = 'magenotification';
|
11 |
-
$this->_controller = 'adminhtml_feedback';
|
12 |
-
|
13 |
-
$this->_updateButton('save', 'label', Mage::helper('magenotification')->__('Save'));
|
14 |
-
$this->_updateButton('delete', 'label', Mage::helper('magenotification')->__('Delete'));
|
15 |
-
|
16 |
-
$this->_addButton('saveandcontinue', array(
|
17 |
-
'label' => Mage::helper('adminhtml')->__('Save And Continue Edit'),
|
18 |
-
'onclick' => 'saveAndContinueEdit()',
|
19 |
-
'class' => 'save',
|
20 |
-
), -100);
|
21 |
-
|
22 |
-
if($this->getRequest()->getParam('id')){
|
23 |
-
$this->_addButton('sendfeedback', array(
|
24 |
-
'label' => Mage::helper('adminhtml')->__('Resend'),
|
25 |
-
'onclick' => 'location.href=\''.$this->getUrl('*/*/resend',array('id'=>$this->getRequest()->getParam('id'))).'\'',
|
26 |
-
'class' => 'add',
|
27 |
-
), -1);
|
28 |
-
}
|
29 |
-
|
30 |
-
$this->_formScripts[] = "
|
31 |
-
function toggleEditor() {
|
32 |
-
if (tinyMCE.getInstanceById('magenotification_content') == null) {
|
33 |
-
tinyMCE.execCommand('mceAddControl', false, 'magenotification_content');
|
34 |
-
} else {
|
35 |
-
tinyMCE.execCommand('mceRemoveControl', false, 'magenotification_content');
|
36 |
-
}
|
37 |
-
}
|
38 |
-
|
39 |
-
function saveAndContinueEdit(){
|
40 |
-
editForm.submit($('edit_form').action+'back/edit/');
|
41 |
-
}
|
42 |
-
";
|
43 |
-
}
|
44 |
-
|
45 |
-
public function getHeaderText()
|
46 |
-
{
|
47 |
-
if( Mage::registry('feedback_data') && Mage::registry('feedback_data')->getId() ) {
|
48 |
-
return Mage::helper('magenotification')->__("Edit Feedback for '%s'", $this->htmlEscape(Mage::registry('feedback_data')->getExtension()));
|
49 |
-
}
|
50 |
-
}
|
51 |
-
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
app/code/local/Magestore/Magenotification/Block/Adminhtml/Feedback/Edit/Form.php
DELETED
@@ -1,19 +0,0 @@
|
|
1 |
-
<?php
|
2 |
-
|
3 |
-
class Magestore_Magenotification_Block_Adminhtml_Feedback_Edit_Form extends Mage_Adminhtml_Block_Widget_Form
|
4 |
-
{
|
5 |
-
protected function _prepareForm()
|
6 |
-
{
|
7 |
-
$form = new Varien_Data_Form(array(
|
8 |
-
'id' => 'edit_form',
|
9 |
-
'action' => $this->getUrl('*/*/save', array('id' => $this->getRequest()->getParam('id'))),
|
10 |
-
'method' => 'post',
|
11 |
-
'enctype' => 'multipart/form-data'
|
12 |
-
)
|
13 |
-
);
|
14 |
-
|
15 |
-
$form->setUseContainer(true);
|
16 |
-
$this->setForm($form);
|
17 |
-
return parent::_prepareForm();
|
18 |
-
}
|
19 |
-
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
app/code/local/Magestore/Magenotification/Block/Adminhtml/Feedback/Edit/Tab/Form.php
DELETED
@@ -1,110 +0,0 @@
|
|
1 |
-
<?php
|
2 |
-
|
3 |
-
class Magestore_Magenotification_Block_Adminhtml_Feedback_Edit_Tab_Form extends Mage_Adminhtml_Block_Widget_Form
|
4 |
-
{
|
5 |
-
protected function _prepareForm()
|
6 |
-
{
|
7 |
-
$form = new Varien_Data_Form();
|
8 |
-
$this->setForm($form);
|
9 |
-
$fieldset = $form->addFieldset('feedback_form', array('legend'=>Mage::helper('magenotification')->__('Feedback detail')));
|
10 |
-
|
11 |
-
$data = array();
|
12 |
-
if ( Mage::getSingleton('adminhtml/session')->getFeedbackData() )
|
13 |
-
{
|
14 |
-
$data = Mage::getSingleton('adminhtml/session')->getFeedbackData();
|
15 |
-
Mage::getSingleton('adminhtml/session')->setFeedbackData(null);
|
16 |
-
} elseif ( Mage::registry('feedback_data') ) {
|
17 |
-
$data = Mage::registry('feedback_data')->getData();
|
18 |
-
}
|
19 |
-
$dataObject = new Varien_Object($data);
|
20 |
-
|
21 |
-
if($dataObject->getFeedbackId()){
|
22 |
-
$fieldset->addField('is_sent', 'note', array(
|
23 |
-
'label' => '',
|
24 |
-
'name' => 'is_sent',
|
25 |
-
'text' => $dataObject->getIsSent() == '1' ? '<span style="width:250px;" class="grid-severity-notice"><span>'.$this->__('Sent to Magestore.com').'</span></span>' : '<span style="width:250px;" class="grid-severity-critical"><span>'.$this->__('Not sent to Magestore.com').'</span></span>',
|
26 |
-
));
|
27 |
-
}
|
28 |
-
|
29 |
-
if($dataObject->getFeedbackId()){
|
30 |
-
$fieldset->addField('code', 'note', array(
|
31 |
-
'label' => Mage::helper('magenotification')->__('Feedback Code'),
|
32 |
-
'name' => 'code',
|
33 |
-
'text' => $dataObject->getCode(),
|
34 |
-
));
|
35 |
-
|
36 |
-
$fieldset->addField('extension', 'note', array(
|
37 |
-
'label' => Mage::helper('magenotification')->__('Extension'),
|
38 |
-
'name' => 'extension',
|
39 |
-
'text' => $dataObject->getExtension().' - version '. $dataObject->getExtensionVersion(),
|
40 |
-
));
|
41 |
-
} else {
|
42 |
-
$fieldset->addField('extension', 'select', array(
|
43 |
-
'label' => Mage::helper('magenotification')->__('Extension'),
|
44 |
-
'name' => 'extension',
|
45 |
-
'values' => Mage::helper('magenotification')->getExtensionOption(),
|
46 |
-
'class' => 'required-entry',
|
47 |
-
'required' => true,
|
48 |
-
));
|
49 |
-
}
|
50 |
-
|
51 |
-
if($dataObject->getFeedbackId()){
|
52 |
-
$fieldset->addField('created_time', 'note', array(
|
53 |
-
'label' => Mage::helper('magenotification')->__('Posted'),
|
54 |
-
'name' => 'created_time',
|
55 |
-
'text' => $this->formatDate($dataObject->getCreatedTime(),'medium',true),
|
56 |
-
));
|
57 |
-
|
58 |
-
if($dataObject->getCouponCode()){
|
59 |
-
$fieldset->addField('coupon_code', 'note', array(
|
60 |
-
'label' => Mage::helper('magenotification')->__('Coupon'),
|
61 |
-
'name' => 'coupon_code',
|
62 |
-
'text' => '<b>'.$dataObject->getCouponCode().'</b> ('.
|
63 |
-
Mage::helper('magenotification')->__('for discount').' '.$dataObject->getCouponValue().' '.
|
64 |
-
Mage::helper('magenotification')->__('to').' '.
|
65 |
-
Mage::helper('core')->formatDate($dataObject->getExpiredCoupon(),'medium',false).')',
|
66 |
-
));
|
67 |
-
}
|
68 |
-
|
69 |
-
$fieldset->addField('status', 'select', array(
|
70 |
-
'label' => Mage::helper('magenotification')->__('Status'),
|
71 |
-
'name' => 'status',
|
72 |
-
'values' => Mage::helper('magenotification')->getFeedbackStatusOption(),
|
73 |
-
'disabled' => 'disabled',
|
74 |
-
'style' => 'width:600px;',
|
75 |
-
));
|
76 |
-
|
77 |
-
$fieldset->addField('content', 'note', array(
|
78 |
-
'name' => 'content',
|
79 |
-
'label' => Mage::helper('magenotification')->__('Feedback'),
|
80 |
-
'text' => $dataObject->getData('content'),
|
81 |
-
));
|
82 |
-
|
83 |
-
$fieldset->addField('attached_file', 'note', array(
|
84 |
-
'name' => 'attached_file',
|
85 |
-
'label' => Mage::helper('magenotification')->__('Attached Files'),
|
86 |
-
'text' => $this->getLayout()->createBlock('magenotification/adminhtml_feedback_renderer_file')
|
87 |
-
->setFeedback($dataObject)->getAttachedFilesHtml(),
|
88 |
-
));
|
89 |
-
|
90 |
-
} else {
|
91 |
-
|
92 |
-
$fieldset->addField('content', 'editor', array(
|
93 |
-
'name' => 'content',
|
94 |
-
'label' => Mage::helper('magenotification')->__('Feedback'),
|
95 |
-
'style' => 'width:600px;height:300px',
|
96 |
-
'class' => 'required-entry',
|
97 |
-
'required' => true,
|
98 |
-
));
|
99 |
-
|
100 |
-
$fieldset->addField('attached_file', 'note', array(
|
101 |
-
'name' => 'attached_file',
|
102 |
-
'label' => Mage::helper('magenotification')->__('Attached Files'),
|
103 |
-
'text' => $this->getLayout()->createBlock('magenotification/adminhtml_feedback_renderer_file')->toHtml(),
|
104 |
-
));
|
105 |
-
}
|
106 |
-
|
107 |
-
$form->setValues($data);
|
108 |
-
return parent::_prepareForm();
|
109 |
-
}
|
110 |
-
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
app/code/local/Magestore/Magenotification/Block/Adminhtml/Feedback/Edit/Tab/History.php
DELETED
@@ -1,31 +0,0 @@
|
|
1 |
-
<?php
|
2 |
-
|
3 |
-
class Magestore_Magenotification_Block_Adminhtml_Feedback_Edit_Tab_History
|
4 |
-
extends Mage_Adminhtml_Block_Template
|
5 |
-
{
|
6 |
-
public function __construct()
|
7 |
-
{
|
8 |
-
parent::__construct();
|
9 |
-
$this->setTemplate('magenotification/feedback/history.phtml');
|
10 |
-
}
|
11 |
-
|
12 |
-
public function getFeedback()
|
13 |
-
{
|
14 |
-
return Mage::registry('feedback_data');
|
15 |
-
}
|
16 |
-
|
17 |
-
public function getMessages()
|
18 |
-
{
|
19 |
-
return $this->getFeedback()->getMessages();
|
20 |
-
}
|
21 |
-
|
22 |
-
public function getMessageTitle($message)
|
23 |
-
{
|
24 |
-
$title = '<b>';
|
25 |
-
$title .= ($message->getIsCustomer() == '1') ? $this->__('From Admin') : $this->__('From').' '.Magestore_Magenotification_Model_Keygen::SERVER_NAME;
|
26 |
-
$title .= ' - '.$message->getUser().'</b> ';
|
27 |
-
$title .= $this->__('on').' ';
|
28 |
-
$title .= Mage::helper('core')->formatDate($message->getPostedTime(),'medium',true);
|
29 |
-
return $title;
|
30 |
-
}
|
31 |
-
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
app/code/local/Magestore/Magenotification/Block/Adminhtml/Feedback/Edit/Tab/Message.php
DELETED
@@ -1,28 +0,0 @@
|
|
1 |
-
<?php
|
2 |
-
|
3 |
-
class Magestore_Magenotification_Block_Adminhtml_Feedback_Edit_Tab_Message extends Mage_Adminhtml_Block_Widget_Form
|
4 |
-
{
|
5 |
-
protected function _prepareForm()
|
6 |
-
{
|
7 |
-
$form = new Varien_Data_Form();
|
8 |
-
$this->setForm($form);
|
9 |
-
$fieldset = $form->addFieldset('feedback_message', array('legend'=>Mage::helper('magenotification')->__('Post Message')));
|
10 |
-
|
11 |
-
$fieldset->addField('message', 'editor', array(
|
12 |
-
'name' => 'message',
|
13 |
-
'label' => Mage::helper('magenotification')->__('Message'),
|
14 |
-
'style' => 'width:600px;height:150px',
|
15 |
-
'class' => 'required-entry',
|
16 |
-
'required' => true,
|
17 |
-
));
|
18 |
-
|
19 |
-
$fieldset->addField('attached_file', 'note', array(
|
20 |
-
'name' => 'attached_file',
|
21 |
-
'label' => Mage::helper('magenotification')->__('Attached Files'),
|
22 |
-
'text' => $this->getLayout()->createBlock('magenotification/adminhtml_feedback_renderer_file')->toHtml(),
|
23 |
-
));
|
24 |
-
|
25 |
-
|
26 |
-
return parent::_prepareForm();
|
27 |
-
}
|
28 |
-
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
app/code/local/Magestore/Magenotification/Block/Adminhtml/Feedback/Edit/Tabs.php
DELETED
@@ -1,37 +0,0 @@
|
|
1 |
-
<?php
|
2 |
-
|
3 |
-
class Magestore_Magenotification_Block_Adminhtml_Feedback_Edit_Tabs extends Mage_Adminhtml_Block_Widget_Tabs
|
4 |
-
{
|
5 |
-
|
6 |
-
public function __construct()
|
7 |
-
{
|
8 |
-
parent::__construct();
|
9 |
-
$this->setId('feedback_tabs');
|
10 |
-
$this->setDestElementId('edit_form');
|
11 |
-
$this->setTitle(Mage::helper('magenotification')->__('Feedback Detail'));
|
12 |
-
}
|
13 |
-
|
14 |
-
protected function _beforeToHtml()
|
15 |
-
{
|
16 |
-
$this->addTab('form_section', array(
|
17 |
-
'label' => Mage::helper('magenotification')->__('Feedback Detail'),
|
18 |
-
'title' => Mage::helper('magenotification')->__('Feedback Detail'),
|
19 |
-
'content' => $this->getLayout()->createBlock('magenotification/adminhtml_feedback_edit_tab_form')->toHtml(),
|
20 |
-
));
|
21 |
-
|
22 |
-
if($this->getRequest()->getParam('id')){
|
23 |
-
$this->addTab('message_section', array(
|
24 |
-
'label' => Mage::helper('magenotification')->__('Post Message'),
|
25 |
-
'title' => Mage::helper('magenotification')->__('Post Message'),
|
26 |
-
'content' => $this->getLayout()->createBlock('magenotification/adminhtml_feedback_edit_tab_message')->toHtml(),
|
27 |
-
));
|
28 |
-
|
29 |
-
$this->addTab('history_section', array(
|
30 |
-
'label' => Mage::helper('magenotification')->__('View Posted Message'),
|
31 |
-
'title' => Mage::helper('magenotification')->__('View Posted Message'),
|
32 |
-
'content' => $this->getLayout()->createBlock('magenotification/adminhtml_feedback_edit_tab_history')->toHtml(),
|
33 |
-
));
|
34 |
-
}
|
35 |
-
return parent::_beforeToHtml();
|
36 |
-
}
|
37 |
-
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
app/code/local/Magestore/Magenotification/Block/Adminhtml/Feedback/Grid.php
DELETED
@@ -1,126 +0,0 @@
|
|
1 |
-
<?php
|
2 |
-
|
3 |
-
class Magestore_Magenotification_Block_Adminhtml_Feedback_Grid extends Mage_Adminhtml_Block_Widget_Grid
|
4 |
-
{
|
5 |
-
public function __construct()
|
6 |
-
{
|
7 |
-
parent::__construct();
|
8 |
-
$this->setId('feedbackGrid');
|
9 |
-
$this->setDefaultSort('feedback_id');
|
10 |
-
$this->setDefaultDir('DESC');
|
11 |
-
$this->setSaveParametersInSession(true);
|
12 |
-
}
|
13 |
-
|
14 |
-
protected function _prepareCollection()
|
15 |
-
{
|
16 |
-
$collection = Mage::getModel('magenotification/feedback')->getCollection();
|
17 |
-
$this->setCollection($collection);
|
18 |
-
return parent::_prepareCollection();
|
19 |
-
}
|
20 |
-
|
21 |
-
protected function _prepareColumns()
|
22 |
-
{
|
23 |
-
$this->addColumn('feedback_id', array(
|
24 |
-
'header' => Mage::helper('magenotification')->__('ID'),
|
25 |
-
'align' =>'right',
|
26 |
-
'width' => '50px',
|
27 |
-
'index' => 'feedback_id',
|
28 |
-
));
|
29 |
-
|
30 |
-
$this->addColumn('code', array(
|
31 |
-
'header' => Mage::helper('magenotification')->__('Feedback Code'),
|
32 |
-
'align' =>'right',
|
33 |
-
'width' => '50px',
|
34 |
-
'index' => 'code',
|
35 |
-
));
|
36 |
-
|
37 |
-
$this->addColumn('extension', array(
|
38 |
-
'header' => Mage::helper('magenotification')->__('Extension'),
|
39 |
-
'align' =>'left',
|
40 |
-
'index' => 'extension',
|
41 |
-
'renderer' => 'magenotification/adminhtml_feedback_renderer_product',
|
42 |
-
));
|
43 |
-
|
44 |
-
$this->addColumn('coupon_code', array(
|
45 |
-
'header' => Mage::helper('magenotification')->__('Coupon'),
|
46 |
-
'align' =>'left',
|
47 |
-
'index' => 'coupon_code',
|
48 |
-
));
|
49 |
-
|
50 |
-
$this->addColumn('created', array(
|
51 |
-
'header' => Mage::helper('magenotification')->__('Posted'),
|
52 |
-
'align' =>'left',
|
53 |
-
'width' => '80px',
|
54 |
-
'type' => 'date',
|
55 |
-
'index' => 'created',
|
56 |
-
));
|
57 |
-
|
58 |
-
$this->addColumn('status', array(
|
59 |
-
'header' => Mage::helper('magenotification')->__('Status'),
|
60 |
-
'align' => 'left',
|
61 |
-
'width' => '80px',
|
62 |
-
'index' => 'status',
|
63 |
-
'type' => 'options',
|
64 |
-
'options' => Mage::helper('magenotification')->getFeedbackStatusList(),
|
65 |
-
'renderer' => 'magenotification/adminhtml_feedback_renderer_status',
|
66 |
-
));
|
67 |
-
|
68 |
-
|
69 |
-
$this->addColumn('is_sent', array(
|
70 |
-
'header' => Mage::helper('magenotification')->__('Is Sent'),
|
71 |
-
'align' => 'left',
|
72 |
-
'width' => '80px',
|
73 |
-
'index' => 'is_sent',
|
74 |
-
'type' => 'options',
|
75 |
-
'options' => Mage::helper('magenotification/feedback')->getSentStatusList(),
|
76 |
-
'renderer' => 'magenotification/adminhtml_feedback_renderer_sentstatus',
|
77 |
-
));
|
78 |
-
|
79 |
-
|
80 |
-
$this->addColumn('action',
|
81 |
-
array(
|
82 |
-
'header' => Mage::helper('magenotification')->__('Action'),
|
83 |
-
'width' => '100',
|
84 |
-
'type' => 'action',
|
85 |
-
'getter' => 'getId',
|
86 |
-
'actions' => array(
|
87 |
-
array(
|
88 |
-
'caption' => Mage::helper('magenotification')->__('Edit'),
|
89 |
-
'url' => array('base'=> '*/*/edit'),
|
90 |
-
'field' => 'id'
|
91 |
-
)
|
92 |
-
),
|
93 |
-
'filter' => false,
|
94 |
-
'sortable' => false,
|
95 |
-
'index' => 'stores',
|
96 |
-
'is_system' => true,
|
97 |
-
));
|
98 |
-
|
99 |
-
$this->addExportType('*/*/exportCsv', Mage::helper('magenotification')->__('CSV'));
|
100 |
-
$this->addExportType('*/*/exportXml', Mage::helper('magenotification')->__('XML'));
|
101 |
-
|
102 |
-
return parent::_prepareColumns();
|
103 |
-
}
|
104 |
-
|
105 |
-
protected function _prepareMassaction()
|
106 |
-
{
|
107 |
-
$this->setMassactionIdField('feedback_id');
|
108 |
-
$this->getMassactionBlock()->setFormFieldName('feedback');
|
109 |
-
|
110 |
-
$this->getMassactionBlock()->addItem('delete', array(
|
111 |
-
'label' => Mage::helper('magenotification')->__('Delete'),
|
112 |
-
'url' => $this->getUrl('*/*/massDelete'),
|
113 |
-
'confirm' => Mage::helper('magenotification')->__('Are you sure?')
|
114 |
-
));
|
115 |
-
|
116 |
-
$statuses = Mage::getSingleton('magenotification/status')->getOptionArray();
|
117 |
-
|
118 |
-
return $this;
|
119 |
-
}
|
120 |
-
|
121 |
-
public function getRowUrl($row)
|
122 |
-
{
|
123 |
-
return $this->getUrl('*/*/edit', array('id' => $row->getId()));
|
124 |
-
}
|
125 |
-
|
126 |
-
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
app/code/local/Magestore/Magenotification/Block/Adminhtml/Feedback/Renderer/File.php
DELETED
@@ -1,34 +0,0 @@
|
|
1 |
-
<?php
|
2 |
-
class Magestore_Magenotification_Block_Adminhtml_Feedback_Renderer_File
|
3 |
-
extends Mage_Core_Block_Template
|
4 |
-
{
|
5 |
-
protected function _prepareLayout()
|
6 |
-
{
|
7 |
-
parent::_prepareLayout();
|
8 |
-
$this->setTemplate('magenotification/feedback/files.phtml');
|
9 |
-
return $this;
|
10 |
-
}
|
11 |
-
|
12 |
-
public function getAttachedFilesHtml()
|
13 |
-
{
|
14 |
-
$feedback = $this->getFeedback();
|
15 |
-
$html = '';
|
16 |
-
$attachedfiles = $feedback->getFile();
|
17 |
-
if($attachedfiles){
|
18 |
-
$attachedfiles = explode(',',$attachedfiles);
|
19 |
-
if(count($attachedfiles)){
|
20 |
-
$count = 1;
|
21 |
-
foreach($attachedfiles as $attachedfile){
|
22 |
-
$html .= '<br/>'.($count++).'. <a href="'.Mage::getBaseUrl('media').'feedback'.$attachedfile.'">'.$this->getFileName($attachedfile).'</a>';
|
23 |
-
}
|
24 |
-
}
|
25 |
-
$html .= '<br/><br/>';
|
26 |
-
}
|
27 |
-
return $html;
|
28 |
-
}
|
29 |
-
|
30 |
-
public function getFileName($path)
|
31 |
-
{
|
32 |
-
return substr($path,strrpos($path,'/')+1);
|
33 |
-
}
|
34 |
-
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
app/code/local/Magestore/Magenotification/Block/Adminhtml/Feedback/Renderer/Product.php
DELETED
@@ -1,10 +0,0 @@
|
|
1 |
-
<?php
|
2 |
-
class Magestore_Magenotification_Block_Adminhtml_Feedback_Renderer_Product
|
3 |
-
extends Mage_Adminhtml_Block_Widget_Grid_Column_Renderer_Abstract
|
4 |
-
{
|
5 |
-
/* Render Grid Column*/
|
6 |
-
public function render(Varien_Object $row)
|
7 |
-
{
|
8 |
-
return $row->getExtension().' - '.$this->__('version').' '.$row->getExtensionVersion();
|
9 |
-
}
|
10 |
-
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
app/code/local/Magestore/Magenotification/Block/Adminhtml/Feedback/Renderer/Sentstatus.php
DELETED
@@ -1,14 +0,0 @@
|
|
1 |
-
<?php
|
2 |
-
class Magestore_Magenotification_Block_Adminhtml_Feedback_Renderer_Sentstatus
|
3 |
-
extends Mage_Adminhtml_Block_Widget_Grid_Column_Renderer_Abstract
|
4 |
-
{
|
5 |
-
/* Render Grid Column*/
|
6 |
-
public function render(Varien_Object $row)
|
7 |
-
{
|
8 |
-
if($row->getIsSent() == '1'){
|
9 |
-
return '<span class="grid-severity-notice"><span>'.$this->__('Sent').'</span></span>';
|
10 |
-
} else {
|
11 |
-
return '<span class="grid-severity-critical"><span>'.$this->__('Not Sent').'</span></span>';
|
12 |
-
}
|
13 |
-
}
|
14 |
-
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
app/code/local/Magestore/Magenotification/Block/Adminhtml/Feedback/Renderer/Status.php
DELETED
@@ -1,22 +0,0 @@
|
|
1 |
-
<?php
|
2 |
-
class Magestore_Magenotification_Block_Adminhtml_Feedback_Renderer_Status
|
3 |
-
extends Mage_Adminhtml_Block_Widget_Grid_Column_Renderer_Abstract
|
4 |
-
{
|
5 |
-
/* Render Grid Column*/
|
6 |
-
public function render(Varien_Object $row)
|
7 |
-
{
|
8 |
-
$statuses = Mage::helper('magenotification')->getFeedbackStatusList();
|
9 |
-
switch((int)$row->getStatus()){
|
10 |
-
case 1:
|
11 |
-
$prefix = 'notice';
|
12 |
-
break;
|
13 |
-
case 2:
|
14 |
-
$prefix = 'critical';
|
15 |
-
break;
|
16 |
-
case 3:
|
17 |
-
default:
|
18 |
-
$prefix = 'major';
|
19 |
-
}
|
20 |
-
return '<span class="grid-severity-'.$prefix.'"><span>'.$statuses[(int)$row->getStatus()].'</span></span>';
|
21 |
-
}
|
22 |
-
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
app/code/local/Magestore/Magenotification/Block/Adminhtml/License/Purchaseform.php
DELETED
@@ -1,15 +0,0 @@
|
|
1 |
-
<?php
|
2 |
-
class Magestore_Magenotification_Block_Adminhtml_License_Purchaseform
|
3 |
-
extends Mage_Adminhtml_Block_Template
|
4 |
-
{
|
5 |
-
public function __construct()
|
6 |
-
{
|
7 |
-
parent::__construct();
|
8 |
-
$this->setTemplate('magenotification/license/purchaseform.phtml');
|
9 |
-
}
|
10 |
-
|
11 |
-
public function getPurchaseUrl()
|
12 |
-
{
|
13 |
-
return $this->getUrl('magenotification/adminhtml_license/purchase',array('extension'=>$this->getExtensionName(),'_secure'=>true));
|
14 |
-
}
|
15 |
-
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
app/code/local/Magestore/Magenotification/Block/Adminhtml/License/Updateform.php
DELETED
@@ -1,39 +0,0 @@
|
|
1 |
-
<?php
|
2 |
-
class Magestore_Magenotification_Block_Adminhtml_License_Updateform
|
3 |
-
extends Mage_Adminhtml_Block_Template
|
4 |
-
{
|
5 |
-
public function __construct()
|
6 |
-
{
|
7 |
-
parent::__construct();
|
8 |
-
$this->setTemplate('magenotification/license/updateform.phtml');
|
9 |
-
}
|
10 |
-
|
11 |
-
public function getUpdateUrl()
|
12 |
-
{
|
13 |
-
//return $this->getUrl('magenotification/adminhtml_license/upgrade',array('licensekey'=>$this->getLicensekey(),'_secure'=>true));
|
14 |
-
return $this->getUrl('magenotification/adminhtml_license/upgrade',array('_secure'=>true));
|
15 |
-
}
|
16 |
-
|
17 |
-
public function getViewPriceUrl()
|
18 |
-
{
|
19 |
-
//return $this->getUrl('magenotification/adminhtml_license/viewprice',array('licensekey'=>$this->getLicensekey(),'_secure'=>true));
|
20 |
-
return $this->getUrl('magenotification/adminhtml_license/viewprice',array('_secure'=>true));
|
21 |
-
}
|
22 |
-
|
23 |
-
public function getLicenseTypeOption()
|
24 |
-
{
|
25 |
-
$list = array();
|
26 |
-
$list[Magestore_Magenotification_Model_Keygen::DOMAIN1] = $this->__('1 Domains');
|
27 |
-
$list[Magestore_Magenotification_Model_Keygen::DOMAIN2] = $this->__('2 Domains');
|
28 |
-
$list[Magestore_Magenotification_Model_Keygen::DOMAIN5] = $this->__('5 Domains');
|
29 |
-
$list[Magestore_Magenotification_Model_Keygen::DOMAIN10] = $this->__('10 Domains');
|
30 |
-
$list[Magestore_Magenotification_Model_Keygen::UNLIMITED] = $this->__('Unlimited Domain');
|
31 |
-
$list[Magestore_Magenotification_Model_Keygen::DEVELOPER] = $this->__('Developer');
|
32 |
-
foreach($list as $key=>$item){
|
33 |
-
if($key <= $this->getCurrentLicenseType()){
|
34 |
-
unset($list[$key]);
|
35 |
-
}
|
36 |
-
}
|
37 |
-
return $list;
|
38 |
-
}
|
39 |
-
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
app/code/local/Magestore/Magenotification/Block/Config/Extensioncerts.php
DELETED
@@ -1,182 +0,0 @@
|
|
1 |
-
<?php
|
2 |
-
class Magestore_Magenotification_Block_Config_Extensioncerts
|
3 |
-
extends Mage_Adminhtml_Block_System_Config_Form_Fieldset
|
4 |
-
{
|
5 |
-
protected $_dummyElement;
|
6 |
-
protected $_fieldRenderer;
|
7 |
-
protected $_values;
|
8 |
-
|
9 |
-
public function render(Varien_Data_Form_Element_Abstract $element)
|
10 |
-
{
|
11 |
-
$html = $this->_getHeaderHtml($element);
|
12 |
-
|
13 |
-
$modules = Mage::getConfig()->getNode('modules')->children();
|
14 |
-
|
15 |
-
// sort($modules);
|
16 |
-
|
17 |
-
foreach ($modules as $moduleName => $moduleInfo) {
|
18 |
-
|
19 |
-
if ($moduleName==='Mage_Adminhtml') {
|
20 |
-
continue;
|
21 |
-
}
|
22 |
-
if ($moduleName==='Magestore_Magenotification') {
|
23 |
-
continue;
|
24 |
-
}
|
25 |
-
if(strpos('a'.$moduleName,'Magestore') == 0){
|
26 |
-
continue;
|
27 |
-
}
|
28 |
-
if((string)$moduleInfo->codePool != 'local'){
|
29 |
-
continue;
|
30 |
-
}
|
31 |
-
|
32 |
-
if(isset($moduleInfo->nonecheckkey) && (string)$moduleInfo->nonecheckkey == 'true'){
|
33 |
-
continue;
|
34 |
-
}
|
35 |
-
|
36 |
-
$module_alias = (string)$moduleInfo->aliasName ? (string)$moduleInfo->aliasName : $moduleName;
|
37 |
-
|
38 |
-
$this->_renderLicenseInfo($element, $moduleName, $module_alias, $html);
|
39 |
-
}
|
40 |
-
$html .= $this->_getFooterHtml($element);
|
41 |
-
return $html;
|
42 |
-
}
|
43 |
-
|
44 |
-
/**
|
45 |
-
* Render The License Information
|
46 |
-
*
|
47 |
-
* @param type $fieldset
|
48 |
-
* @param type $moduleName
|
49 |
-
* @param type $moduleAlias
|
50 |
-
* @param type $html
|
51 |
-
* @return boolean
|
52 |
-
*/
|
53 |
-
protected function _renderLicenseInfo($fieldset, $moduleName, $moduleAlias, &$html)
|
54 |
-
{
|
55 |
-
$config = Mage::getSingleton('magenotification/config');
|
56 |
-
$moduleConfig = $config->getNode($moduleName);
|
57 |
-
if ($moduleConfig === false) {
|
58 |
-
return false;
|
59 |
-
}
|
60 |
-
$licenseType = (string)$moduleConfig->type;
|
61 |
-
if ($licenseType == Magestore_Magenotification_Model_Config::COMMERCIAL_LICENSE) {
|
62 |
-
$licenseinfo = Mage::getBlockSingleton('magenotification/config_licenseinfo')
|
63 |
-
->setConfigData($this->getConfigData())
|
64 |
-
->setModuleConfig($moduleConfig)
|
65 |
-
->setExtensionName($moduleName)
|
66 |
-
->toHtml();
|
67 |
-
|
68 |
-
// Commercial license info
|
69 |
-
$field = $fieldset->addField($moduleName.'_license_info', 'label', array(
|
70 |
-
'name' => 'groups[extension_keys][fields]['.$moduleName.'_license_info][value]',
|
71 |
-
'label' => (string)$moduleConfig->name ? (string)$moduleConfig->name : $moduleAlias,
|
72 |
-
'value' => $licenseinfo,
|
73 |
-
'can_use_default_value' => false,
|
74 |
-
'can_use_website_value' => false,
|
75 |
-
))->setRenderer(Mage::getBlockSingleton('magenotification/config_field'));
|
76 |
-
$html .= $field->toHtml();
|
77 |
-
|
78 |
-
$html .= $this->_getDividerHtml($fieldset, $moduleName);
|
79 |
-
}
|
80 |
-
return true;
|
81 |
-
}
|
82 |
-
|
83 |
-
protected function _getDummyElement()
|
84 |
-
{
|
85 |
-
if (empty($this->_dummyElement)) {
|
86 |
-
$this->_dummyElement = new Varien_Object(array('show_in_default'=>1, 'show_in_website'=>1));
|
87 |
-
}
|
88 |
-
return $this->_dummyElement;
|
89 |
-
}
|
90 |
-
|
91 |
-
protected function _getFieldRenderer()
|
92 |
-
{
|
93 |
-
if (empty($this->_fieldRenderer)) {
|
94 |
-
$this->_fieldRenderer = Mage::getBlockSingleton('adminhtml/system_config_form_field');
|
95 |
-
}
|
96 |
-
return $this->_fieldRenderer;
|
97 |
-
}
|
98 |
-
|
99 |
-
protected function _getValues()
|
100 |
-
{
|
101 |
-
if (empty($this->_values)) {
|
102 |
-
$this->_values = array(
|
103 |
-
array('label'=>Mage::helper('adminhtml')->__('Enable'), 'value'=>0),
|
104 |
-
array('label'=>Mage::helper('adminhtml')->__('Disable'), 'value'=>1),
|
105 |
-
);
|
106 |
-
}
|
107 |
-
return $this->_values;
|
108 |
-
}
|
109 |
-
|
110 |
-
protected function _getDividerHtml($fieldset,$moduleName)
|
111 |
-
{
|
112 |
-
$field = $fieldset->addField($moduleName.'_divider', 'label',
|
113 |
-
array(
|
114 |
-
'name' => 'groups[extension_keys][fields]['.$moduleName.'_divider][value]',
|
115 |
-
'label' => '',
|
116 |
-
'value' => '<div style="margin:5px 0 20px 0;border-top: 1px dashed rgb(221, 108, 15);min-width: 312px;"></div>',
|
117 |
-
'inherit' => false,
|
118 |
-
'can_use_default_value' => 0,
|
119 |
-
'can_use_website_value' => 0,
|
120 |
-
))->setRenderer(Mage::getBlockSingleton('magenotification/config_field'));
|
121 |
-
|
122 |
-
return $field->toHtml();
|
123 |
-
}
|
124 |
-
|
125 |
-
protected function _getFieldHtml($fieldset, $moduleName, $module_alias)
|
126 |
-
{
|
127 |
-
$configData = $this->getConfigData();
|
128 |
-
$path = 'magenotificationsecure/extension_keys/'.$moduleName; //TODO: move as property of form
|
129 |
-
$data = isset($configData[$path]) ? $configData[$path] : '';
|
130 |
-
|
131 |
-
$e = $this->_getDummyElement();
|
132 |
-
|
133 |
-
$field = $fieldset->addField($moduleName, 'text',
|
134 |
-
array(
|
135 |
-
'name' => 'groups[extension_keys][fields]['.$moduleName.'][value]',
|
136 |
-
'label' => $module_alias,
|
137 |
-
'value' => $data,
|
138 |
-
'style' => 'width:688px;',
|
139 |
-
'inherit' => isset($configData[$path]) ? false : true,
|
140 |
-
'can_use_default_value' => $this->getForm()->canUseDefaultValue($e),
|
141 |
-
'can_use_website_value' => $this->getForm()->canUseWebsiteValue($e),
|
142 |
-
))->setRenderer($this->_getFieldRenderer());
|
143 |
-
|
144 |
-
return $field->toHtml();
|
145 |
-
}
|
146 |
-
|
147 |
-
protected function _getInfoHtml($fieldset, $moduleName)
|
148 |
-
{
|
149 |
-
$configData = $this->getConfigData();
|
150 |
-
$path = 'magenotificationsecure/extension_keys/'.$moduleName; //TODO: move as property of form
|
151 |
-
$data = isset($configData[$path]) ? $configData[$path] : array();
|
152 |
-
if($data){
|
153 |
-
$helper = Mage::helper('magenotification');
|
154 |
-
//prepare license info
|
155 |
-
$licenseinfo = $helper->getLicenseInfo($data,$moduleName);
|
156 |
-
//prepare additional license form
|
157 |
-
$licenseType = $helper->getLicenseType($moduleName);
|
158 |
-
$additionalLicenseForm = '';
|
159 |
-
if( in_array($licenseType,array(-1,
|
160 |
-
0,
|
161 |
-
Magestore_Magenotification_Model_Keygen::TRIAL_VERSION,
|
162 |
-
//Magestore_Magenotification_Model_Keygen::DEVELOPMENT,
|
163 |
-
)) || $helper->getDBResponseCode() < Magestore_Magenotification_Model_Keygen::NEW_DOMAIN_SUCCESS ){
|
164 |
-
$additionalLicenseForm = Mage::getBlockSingleton('magenotification/adminhtml_license_purchaseform')
|
165 |
-
->setExtensionName($helper->getExtensionName($moduleName))
|
166 |
-
->toHtml();
|
167 |
-
}
|
168 |
-
//license info field
|
169 |
-
$e = $this->_getDummyElement();
|
170 |
-
$field = $fieldset->addField($moduleName.'_license_info', 'label',
|
171 |
-
array(
|
172 |
-
'name' => 'groups[extension_keys][fields]['.$moduleName.'_license_info][value]',
|
173 |
-
'label' => $helper->__('License Info'),
|
174 |
-
'value' => $licenseinfo . $additionalLicenseForm,
|
175 |
-
'can_use_default_value' => $this->getForm()->canUseDefaultValue($e),
|
176 |
-
'can_use_website_value' => $this->getForm()->canUseWebsiteValue($e),
|
177 |
-
))->setRenderer(Mage::getBlockSingleton('magenotification/config_field'));
|
178 |
-
|
179 |
-
return $field->toHtml();
|
180 |
-
}
|
181 |
-
}
|
182 |
-
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
app/code/local/Magestore/Magenotification/Block/Config/Extensionkeys.php
DELETED
@@ -1,233 +0,0 @@
|
|
1 |
-
<?php
|
2 |
-
class Magestore_Magenotification_Block_Config_Extensionkeys
|
3 |
-
extends Mage_Adminhtml_Block_System_Config_Form_Fieldset
|
4 |
-
{
|
5 |
-
protected $_dummyElement;
|
6 |
-
protected $_fieldRenderer;
|
7 |
-
protected $_values;
|
8 |
-
|
9 |
-
public function render(Varien_Data_Form_Element_Abstract $element)
|
10 |
-
{
|
11 |
-
$html = $this->_getHeaderHtml($element);
|
12 |
-
|
13 |
-
$modules = Mage::getConfig()->getNode('modules')->children();
|
14 |
-
|
15 |
-
// sort($modules);
|
16 |
-
|
17 |
-
foreach ($modules as $moduleName => $moduleInfo) {
|
18 |
-
|
19 |
-
if ($moduleName==='Mage_Adminhtml') {
|
20 |
-
continue;
|
21 |
-
}
|
22 |
-
if ($moduleName==='Magestore_Magenotification') {
|
23 |
-
continue;
|
24 |
-
}
|
25 |
-
if(strpos('a'.$moduleName,'Magestore') == 0){
|
26 |
-
continue;
|
27 |
-
}
|
28 |
-
if((string)$moduleInfo->codePool != 'local'){
|
29 |
-
continue;
|
30 |
-
}
|
31 |
-
|
32 |
-
if(isset($moduleInfo->nonecheckkey) && (string)$moduleInfo->nonecheckkey == 'true'){
|
33 |
-
continue;
|
34 |
-
}
|
35 |
-
|
36 |
-
$module_alias = (string)$moduleInfo->aliasName ? (string)$moduleInfo->aliasName : $moduleName;
|
37 |
-
|
38 |
-
if ($this->_renderLicenseInfo($element, $moduleName, $module_alias, $html)) {
|
39 |
-
continue;
|
40 |
-
}
|
41 |
-
|
42 |
-
$html .= $this->_getFieldHtml($element, $moduleName, $module_alias);
|
43 |
-
$html .= $this->_getInfoHtml($element, $moduleName);
|
44 |
-
$html .= $this->_getDividerHtml($element, $moduleName);
|
45 |
-
}
|
46 |
-
$html .= $this->_getFooterHtml($element);
|
47 |
-
return $html;
|
48 |
-
}
|
49 |
-
|
50 |
-
/**
|
51 |
-
* Render The License Information
|
52 |
-
*
|
53 |
-
* @param type $fieldset
|
54 |
-
* @param type $moduleName
|
55 |
-
* @param type $moduleAlias
|
56 |
-
* @param type $html
|
57 |
-
* @return boolean
|
58 |
-
*/
|
59 |
-
protected function _renderLicenseInfo($fieldset, $moduleName, $moduleAlias, &$html)
|
60 |
-
{
|
61 |
-
$config = Mage::getSingleton('magenotification/config');
|
62 |
-
$moduleConfig = $config->getNode($moduleName);
|
63 |
-
if ($moduleConfig === false) {
|
64 |
-
return false;
|
65 |
-
}
|
66 |
-
$licenseType = (string)$moduleConfig->type;
|
67 |
-
if ($licenseType == Magestore_Magenotification_Model_Config::TRIAL_LICENSE) {
|
68 |
-
// You are using a trial version of %s extension.
|
69 |
-
$configData = $this->getConfigData();
|
70 |
-
$path = 'magenotificationsecure/extension_keys/'.$moduleName;
|
71 |
-
$licenseKey = isset($configData[$path]) ? $configData[$path] : '';
|
72 |
-
|
73 |
-
$helper = Mage::helper('magenotification');
|
74 |
-
if ($licenseKey) {
|
75 |
-
$licenseinfo = $helper->getLicenseInfo($licenseKey, $moduleName);
|
76 |
-
if ($helper->getDBResponseCode() < Magestore_Magenotification_Model_Keygen::NEW_DOMAIN_SUCCESS
|
77 |
-
&& (string)$moduleConfig->trial_key
|
78 |
-
) {
|
79 |
-
$licenseKey = (string)$moduleConfig->trial_key;
|
80 |
-
$licenseinfo = $helper->getLicenseInfo($licenseKey, $moduleName);
|
81 |
-
}
|
82 |
-
} elseif ((string)$moduleConfig->trial_key) {
|
83 |
-
$licenseKey = (string)$moduleConfig->trial_key;
|
84 |
-
$licenseinfo = $helper->getLicenseInfo($licenseKey, $moduleName);
|
85 |
-
}
|
86 |
-
|
87 |
-
// Render Input License Key
|
88 |
-
$extensionName = (string)$moduleConfig->name ? (string)$moduleConfig->name : $moduleAlias;
|
89 |
-
$field = $fieldset->addField($moduleName, 'text', array(
|
90 |
-
'name' => 'groups[extension_keys][fields]['.$moduleName.'][value]',
|
91 |
-
'label' => $extensionName,
|
92 |
-
'value' => $licenseKey,
|
93 |
-
'style' => 'width:688px;',
|
94 |
-
'inherit' => isset($configData[$path]) ? false : true,
|
95 |
-
'can_use_default_value' => $this->getForm()->canUseDefaultValue($this->_dummyElement),
|
96 |
-
'can_use_website_value' => $this->getForm()->canUseWebsiteValue($this->_dummyElement),
|
97 |
-
'comment' => $licenseKey ? '' : $helper->__('You are using a trial version of %s extension.', $extensionName),
|
98 |
-
))->setRenderer($this->_getFieldRenderer());
|
99 |
-
$html .= $field->toHtml();
|
100 |
-
|
101 |
-
// Get License Info by packaged license key
|
102 |
-
if ($licenseKey) {
|
103 |
-
$additionalLicenseForm = '';
|
104 |
-
if (in_array($helper->getLicenseType($moduleName), array(
|
105 |
-
-1, 0, Magestore_Magenotification_Model_Keygen::TRIAL_VERSION
|
106 |
-
)) || $helper->getDBResponseCode() < Magestore_Magenotification_Model_Keygen::NEW_DOMAIN_SUCCESS) {
|
107 |
-
$additionalLicenseForm = Mage::getBlockSingleton('magenotification/adminhtml_license_purchaseform')->setExtensionName($helper->getExtensionName($moduleName))->toHtml();
|
108 |
-
}
|
109 |
-
$field = $fieldset->addField($moduleName.'_license_info', 'label', array(
|
110 |
-
'name' => 'groups[extension_keys][fields]['.$moduleName.'_license_info][value]',
|
111 |
-
'label' => $helper->__('License Info'),
|
112 |
-
'value' => $licenseinfo . $additionalLicenseForm,
|
113 |
-
'can_use_default_value' => $this->getForm()->canUseDefaultValue($this->_dummyElement),
|
114 |
-
'can_use_website_value' => $this->getForm()->canUseWebsiteValue($this->_dummyElement),
|
115 |
-
))->setRenderer(Mage::getBlockSingleton('magenotification/config_field'));
|
116 |
-
$html .= $field->toHtml();
|
117 |
-
} else {
|
118 |
-
$additionalLicenseForm = Mage::getBlockSingleton('magenotification/adminhtml_license_purchaseform')->setExtensionName($helper->getExtensionName($moduleName))->toHtml();
|
119 |
-
$field = $fieldset->addField($moduleName.'_license_info', 'label', array(
|
120 |
-
'name' => 'groups[extension_keys][fields]['.$moduleName.'_license_info][value]',
|
121 |
-
'label' => '',
|
122 |
-
'value' => '<hr width="345">' . $additionalLicenseForm,
|
123 |
-
'can_use_default_value' => $this->getForm()->canUseDefaultValue($this->_dummyElement),
|
124 |
-
'can_use_website_value' => $this->getForm()->canUseWebsiteValue($this->_dummyElement),
|
125 |
-
))->setRenderer(Mage::getBlockSingleton('magenotification/config_field'));
|
126 |
-
$html .= $field->toHtml();
|
127 |
-
}
|
128 |
-
|
129 |
-
$html .= $this->_getDividerHtml($fieldset, $moduleName);
|
130 |
-
}
|
131 |
-
return true;
|
132 |
-
}
|
133 |
-
|
134 |
-
protected function _getDummyElement()
|
135 |
-
{
|
136 |
-
if (empty($this->_dummyElement)) {
|
137 |
-
$this->_dummyElement = new Varien_Object(array('show_in_default'=>1, 'show_in_website'=>1));
|
138 |
-
}
|
139 |
-
return $this->_dummyElement;
|
140 |
-
}
|
141 |
-
|
142 |
-
protected function _getFieldRenderer()
|
143 |
-
{
|
144 |
-
if (empty($this->_fieldRenderer)) {
|
145 |
-
$this->_fieldRenderer = Mage::getBlockSingleton('adminhtml/system_config_form_field');
|
146 |
-
}
|
147 |
-
return $this->_fieldRenderer;
|
148 |
-
}
|
149 |
-
|
150 |
-
protected function _getValues()
|
151 |
-
{
|
152 |
-
if (empty($this->_values)) {
|
153 |
-
$this->_values = array(
|
154 |
-
array('label'=>Mage::helper('adminhtml')->__('Enable'), 'value'=>0),
|
155 |
-
array('label'=>Mage::helper('adminhtml')->__('Disable'), 'value'=>1),
|
156 |
-
);
|
157 |
-
}
|
158 |
-
return $this->_values;
|
159 |
-
}
|
160 |
-
|
161 |
-
protected function _getDividerHtml($fieldset,$moduleName)
|
162 |
-
{
|
163 |
-
$field = $fieldset->addField($moduleName.'_divider', 'label',
|
164 |
-
array(
|
165 |
-
'name' => 'groups[extension_keys][fields]['.$moduleName.'_divider][value]',
|
166 |
-
'label' => '',
|
167 |
-
'value' => '<div style="margin:5px 0 20px 0;border-top: 1px dashed rgb(221, 108, 15);"></div>',
|
168 |
-
'inherit' => false,
|
169 |
-
'can_use_default_value' => 0,
|
170 |
-
'can_use_website_value' => 0,
|
171 |
-
))->setRenderer(Mage::getBlockSingleton('magenotification/config_field'));
|
172 |
-
|
173 |
-
return $field->toHtml();
|
174 |
-
}
|
175 |
-
|
176 |
-
protected function _getFieldHtml($fieldset, $moduleName, $module_alias)
|
177 |
-
{
|
178 |
-
$configData = $this->getConfigData();
|
179 |
-
$path = 'magenotificationsecure/extension_keys/'.$moduleName; //TODO: move as property of form
|
180 |
-
$data = isset($configData[$path]) ? $configData[$path] : '';
|
181 |
-
|
182 |
-
$e = $this->_getDummyElement();
|
183 |
-
|
184 |
-
$field = $fieldset->addField($moduleName, 'text',
|
185 |
-
array(
|
186 |
-
'name' => 'groups[extension_keys][fields]['.$moduleName.'][value]',
|
187 |
-
'label' => $module_alias,
|
188 |
-
'value' => $data,
|
189 |
-
'style' => 'width:688px;',
|
190 |
-
'inherit' => isset($configData[$path]) ? false : true,
|
191 |
-
'can_use_default_value' => $this->getForm()->canUseDefaultValue($e),
|
192 |
-
'can_use_website_value' => $this->getForm()->canUseWebsiteValue($e),
|
193 |
-
))->setRenderer($this->_getFieldRenderer());
|
194 |
-
|
195 |
-
return $field->toHtml();
|
196 |
-
}
|
197 |
-
|
198 |
-
protected function _getInfoHtml($fieldset, $moduleName)
|
199 |
-
{
|
200 |
-
$configData = $this->getConfigData();
|
201 |
-
$path = 'magenotificationsecure/extension_keys/'.$moduleName; //TODO: move as property of form
|
202 |
-
$data = isset($configData[$path]) ? $configData[$path] : array();
|
203 |
-
if($data){
|
204 |
-
$helper = Mage::helper('magenotification');
|
205 |
-
//prepare license info
|
206 |
-
$licenseinfo = $helper->getLicenseInfo($data,$moduleName);
|
207 |
-
//prepare additional license form
|
208 |
-
$licenseType = $helper->getLicenseType($moduleName);
|
209 |
-
$additionalLicenseForm = '';
|
210 |
-
if( in_array($licenseType,array(-1,
|
211 |
-
0,
|
212 |
-
Magestore_Magenotification_Model_Keygen::TRIAL_VERSION,
|
213 |
-
//Magestore_Magenotification_Model_Keygen::DEVELOPMENT,
|
214 |
-
)) || $helper->getDBResponseCode() < Magestore_Magenotification_Model_Keygen::NEW_DOMAIN_SUCCESS ){
|
215 |
-
$additionalLicenseForm = Mage::getBlockSingleton('magenotification/adminhtml_license_purchaseform')
|
216 |
-
->setExtensionName($helper->getExtensionName($moduleName))
|
217 |
-
->toHtml();
|
218 |
-
}
|
219 |
-
//license info field
|
220 |
-
$e = $this->_getDummyElement();
|
221 |
-
$field = $fieldset->addField($moduleName.'_license_info', 'label',
|
222 |
-
array(
|
223 |
-
'name' => 'groups[extension_keys][fields]['.$moduleName.'_license_info][value]',
|
224 |
-
'label' => $helper->__('License Info'),
|
225 |
-
'value' => $licenseinfo . $additionalLicenseForm,
|
226 |
-
'can_use_default_value' => $this->getForm()->canUseDefaultValue($e),
|
227 |
-
'can_use_website_value' => $this->getForm()->canUseWebsiteValue($e),
|
228 |
-
))->setRenderer(Mage::getBlockSingleton('magenotification/config_field'));
|
229 |
-
|
230 |
-
return $field->toHtml();
|
231 |
-
}
|
232 |
-
}
|
233 |
-
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
app/code/local/Magestore/Magenotification/Block/Config/Field.php
DELETED
@@ -1,14 +0,0 @@
|
|
1 |
-
<?php
|
2 |
-
class Magestore_Magenotification_Block_Config_Field
|
3 |
-
extends Mage_Adminhtml_Block_System_Config_Form_Field
|
4 |
-
implements Varien_Data_Form_Element_Renderer_Interface
|
5 |
-
{
|
6 |
-
protected function _getElementHtml(Varien_Data_Form_Element_Abstract $element)
|
7 |
-
{
|
8 |
-
$html = $element->getBold() ? '<strong>' : '';
|
9 |
-
$html.= $element->getValue();
|
10 |
-
$html.= $element->getBold() ? '</strong>' : '';
|
11 |
-
$html.= $element->getAfterElementHtml();
|
12 |
-
return $html;
|
13 |
-
}
|
14 |
-
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
app/code/local/Magestore/Magenotification/Block/Config/Label.php
DELETED
@@ -1,13 +0,0 @@
|
|
1 |
-
<?php
|
2 |
-
class Magestore_Magenotification_Block_Config_Label
|
3 |
-
extends Varien_Data_Form_Element_Label
|
4 |
-
{
|
5 |
-
public function getElementHtml()
|
6 |
-
{
|
7 |
-
$html = $this->getBold() ? '<strong>' : '';
|
8 |
-
$html.= $this->getValue();
|
9 |
-
$html.= $this->getBold() ? '</strong>' : '';
|
10 |
-
$html.= $this->getAfterElementHtml();
|
11 |
-
return $html;
|
12 |
-
}
|
13 |
-
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
app/code/local/Magestore/Magenotification/Block/Config/Licenseinfo.php
DELETED
@@ -1,50 +0,0 @@
|
|
1 |
-
<?php
|
2 |
-
/**
|
3 |
-
* License Info Block
|
4 |
-
*/
|
5 |
-
class Magestore_Magenotification_Block_Config_Licenseinfo extends Mage_Adminhtml_Block_Template
|
6 |
-
{
|
7 |
-
protected function _construct()
|
8 |
-
{
|
9 |
-
parent::_construct();
|
10 |
-
$this->setTemplate('magenotification/license/licenseinfo.phtml');
|
11 |
-
}
|
12 |
-
|
13 |
-
public function getConfigLicenseSerial()
|
14 |
-
{
|
15 |
-
$configData = $this->getConfigData();
|
16 |
-
$moduleName = $this->getExtensionName();
|
17 |
-
|
18 |
-
$path = 'magenotificationcerts/extension_serials/'.$moduleName;
|
19 |
-
return isset($configData[$path]) ? $configData[$path] : '';
|
20 |
-
}
|
21 |
-
|
22 |
-
/**
|
23 |
-
* get license serial (provided by Magestore.com)
|
24 |
-
*
|
25 |
-
* @return string
|
26 |
-
*/
|
27 |
-
public function getLicenseSerial()
|
28 |
-
{
|
29 |
-
$moduleConfig = $this->getModuleConfig();
|
30 |
-
return (string)$moduleConfig->serial;
|
31 |
-
}
|
32 |
-
|
33 |
-
public function getLicenseType()
|
34 |
-
{
|
35 |
-
$moduleConfig = $this->getModuleConfig();
|
36 |
-
return (string)$moduleConfig->type;
|
37 |
-
}
|
38 |
-
|
39 |
-
public function getActivationDate()
|
40 |
-
{
|
41 |
-
$moduleConfig = $this->getModuleConfig();
|
42 |
-
return (string)$moduleConfig->activation_date;
|
43 |
-
}
|
44 |
-
|
45 |
-
public function getExpirationDate()
|
46 |
-
{
|
47 |
-
$moduleConfig = $this->getModuleConfig();
|
48 |
-
return (string)$moduleConfig->expiration_date;
|
49 |
-
}
|
50 |
-
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
app/code/local/Magestore/Magenotification/Helper/Data.php
DELETED
@@ -1,555 +0,0 @@
|
|
1 |
-
<?php
|
2 |
-
|
3 |
-
class Magestore_Magenotification_Helper_Data extends Mage_Core_Helper_Abstract
|
4 |
-
{
|
5 |
-
|
6 |
-
const LICENSE_INFO_PATH = 'magenotificationsecure/extension_keys/Magestore_{{extension_name}}_license_info';
|
7 |
-
//const LICENSE_INFO_FORMAT1 = '<hr width="280" /><b>{{license_type}}</b><br/>{{activated_time}}<br/>{{domains}} {{expired_info}}<hr width="280" />';
|
8 |
-
const LICENSE_INFO_FORMAT1 = '<hr width="345" /><b>{{license_type}}</b><br/>{{activated_time}}<br/>{{domains}} {{expired_info}}<hr width="345" />';
|
9 |
-
const LICENSE_INFO_FORMAT2 = "<hr/><pre> {{license_type}} \n {{activated_time}} \n {{domains}} {{expired_info}}</pre><hr/>";
|
10 |
-
|
11 |
-
public $PASSED_KEYWORDS = array('magestore','localhost','test.','test/','dev/','dev.','development','demo-');
|
12 |
-
|
13 |
-
protected $_extension;
|
14 |
-
protected $_licenseType = array();
|
15 |
-
protected $_errorMessage = null;
|
16 |
-
protected $_logger = array();
|
17 |
-
|
18 |
-
public function checkLicenseKeyFrontController($controller) {return true;}
|
19 |
-
public function checkLicenseKeyAdminController($controller) {return true;}
|
20 |
-
public function checkLicenseKey($extensionName) {return true;}
|
21 |
-
|
22 |
-
// used for checking license in front-end controller
|
23 |
-
public function checkTrialKeyFrontController($controller)
|
24 |
-
{
|
25 |
-
$extensionName = get_class($controller);
|
26 |
-
if(!$this->checkTrialKey($extensionName)){
|
27 |
-
$request = $controller->getRequest();
|
28 |
-
$request->initForward();
|
29 |
-
$request->setActionName('noRoute')->setDispatched(false);
|
30 |
-
return false;
|
31 |
-
} else {
|
32 |
-
return true;
|
33 |
-
}
|
34 |
-
}
|
35 |
-
|
36 |
-
// used for checking license in back-end controller
|
37 |
-
public function checkTrialKeyAdminController($controller)
|
38 |
-
{
|
39 |
-
$extensionName = get_class($controller);
|
40 |
-
if(!$this->checkTrialKey($extensionName)){
|
41 |
-
$message = $this->getInvalidKeyNotice();
|
42 |
-
$controller->loadLayout();
|
43 |
-
$contentBlock = $controller->getLayout()->createBlock('core/text');
|
44 |
-
$contentBlock->setText($message);
|
45 |
-
$controller->getLayout()->getBlock('root')->setChild('content',$contentBlock);
|
46 |
-
$controller->renderLayout();
|
47 |
-
return false;
|
48 |
-
}elseif((int)$this->getDBLicenseType() == Magestore_Magenotification_Model_Keygen::TRIAL_VERSION
|
49 |
-
|| (int)$this->getDBLicenseType() == Magestore_Magenotification_Model_Keygen::DEVELOPMENT){
|
50 |
-
$versionLabel = (int)$this->getDBLicenseType() == Magestore_Magenotification_Model_Keygen::TRIAL_VERSION ? $this->__('trial') : $this->__('development');
|
51 |
-
Mage::getSingleton('core/session')->addNotice($this->__('You are using a %s version of %s extension. It will be expired on %s.',
|
52 |
-
$versionLabel,
|
53 |
-
$this->_extension,
|
54 |
-
$this->getDBExpiredTime()
|
55 |
-
));
|
56 |
-
}
|
57 |
-
return true;
|
58 |
-
}
|
59 |
-
|
60 |
-
public function checkTrialKey($extensionName)
|
61 |
-
{
|
62 |
-
if(strpos('a'.$extensionName,'Magestore')){
|
63 |
-
$arrName = explode('_',$extensionName);
|
64 |
-
$extensionName = isset($arrName[1]) ? $arrName[1] : str_replace('Magestore','',$extensionName);
|
65 |
-
}
|
66 |
-
$this->_extension = $extensionName;
|
67 |
-
//$baseUrl = Mage::getBaseUrl();
|
68 |
-
$baseUrl = Mage::getModel('core/store')->load(Mage_Core_Model_App::ADMIN_STORE_ID)->getBaseUrl();
|
69 |
-
//check passed key words
|
70 |
-
foreach($this->PASSED_KEYWORDS as $passed_keyword){
|
71 |
-
if(strpos($baseUrl,$passed_keyword))
|
72 |
-
return true;
|
73 |
-
}
|
74 |
-
|
75 |
-
$domain = $this->getDomain($baseUrl);
|
76 |
-
|
77 |
-
// Check Depend Extension, Use Key of Major Extension
|
78 |
-
$config = Mage::getSingleton('magenotification/config');
|
79 |
-
$moduleConfig = $config->getNode('Magestore_'.$extensionName);
|
80 |
-
if ($moduleConfig !== false
|
81 |
-
&& (string)$moduleConfig->type == Magestore_Magenotification_Model_Config::DEPEND_LICENSE
|
82 |
-
&& (string)$moduleConfig->depend
|
83 |
-
) {
|
84 |
-
$extensionName = (string)$moduleConfig->depend;
|
85 |
-
$arrName = explode('_',$extensionName);
|
86 |
-
$extensionName = isset($arrName[1]) ? $arrName[1] : str_replace('Magestore','',$extensionName);
|
87 |
-
$this->_extension = $extensionName;
|
88 |
-
}
|
89 |
-
|
90 |
-
$licensekey = Mage::getStoreConfig('magenotificationsecure/extension_keys/Magestore_'.$extensionName);
|
91 |
-
$licensekey = trim($licensekey);
|
92 |
-
|
93 |
-
//get cached data
|
94 |
-
if($this->getDBLicenseKey() == $licensekey
|
95 |
-
&& $this->getDBCheckdate() == date('Y-m-d')
|
96 |
-
&& $this->getDBSumcode() == $this->getSumcode()){
|
97 |
-
$responsecode = $this->getDBResponseCode();
|
98 |
-
} else {
|
99 |
-
//check license key online
|
100 |
-
$responsecode = Mage::getSingleton('magenotification/keygen')->checkLicenseKey($licensekey,$extensionName,$domain);
|
101 |
-
//save data into database
|
102 |
-
$this->setDBLicenseKey($licensekey);
|
103 |
-
$this->setDBCheckdate(date('Y-m-d'));
|
104 |
-
$this->setDBResponseCode((int)$responsecode);
|
105 |
-
$this->setDBSumcode($this->getSumcode($responsecode));
|
106 |
-
$this->_saveLicenseLog();
|
107 |
-
}
|
108 |
-
|
109 |
-
// Check Packaged Trial License Key
|
110 |
-
if (!$licensekey || $responsecode < Magestore_Magenotification_Model_Keygen::NEW_DOMAIN_SUCCESS) {
|
111 |
-
$moduleConfig = $config->getNode('Magestore_'.$extensionName);
|
112 |
-
if ($moduleConfig !== false
|
113 |
-
&& (string)$moduleConfig->type == Magestore_Magenotification_Model_Config::TRIAL_LICENSE
|
114 |
-
&& (string)$moduleConfig->trial_key
|
115 |
-
) {
|
116 |
-
$licensekey = trim((string)$moduleConfig->trial_key);
|
117 |
-
|
118 |
-
//get cached data
|
119 |
-
if($this->getDBLicenseKey() == $licensekey
|
120 |
-
&& $this->getDBCheckdate() == date('Y-m-d')
|
121 |
-
&& $this->getDBSumcode() == $this->getSumcode()){
|
122 |
-
$responsecode = $this->getDBResponseCode();
|
123 |
-
} else {
|
124 |
-
//check license key online
|
125 |
-
$responsecode = Mage::getSingleton('magenotification/keygen')->checkLicenseKey($licensekey,$extensionName,$domain);
|
126 |
-
//save data into database
|
127 |
-
$this->setDBLicenseKey($licensekey);
|
128 |
-
$this->setDBCheckdate(date('Y-m-d'));
|
129 |
-
$this->setDBResponseCode((int)$responsecode);
|
130 |
-
$this->setDBSumcode($this->getSumcode($responsecode));
|
131 |
-
$this->_saveLicenseLog();
|
132 |
-
}
|
133 |
-
}
|
134 |
-
}
|
135 |
-
|
136 |
-
//save error message
|
137 |
-
$this->_errorMessage = $this->getLicenseKeyError($responsecode);
|
138 |
-
return $this->isValidCode($responsecode);
|
139 |
-
}
|
140 |
-
|
141 |
-
public function getErrorMessage()
|
142 |
-
{
|
143 |
-
return $this->_errorMessage;
|
144 |
-
}
|
145 |
-
|
146 |
-
public function isValidCode($code)
|
147 |
-
{
|
148 |
-
if(in_array((int)$code,array(Magestore_Magenotification_Model_Keygen::NEW_DOMAIN_SUCCESS,
|
149 |
-
Magestore_Magenotification_Model_Keygen::EXISTED_DOMAIN_SUCCESS,
|
150 |
-
Magestore_Magenotification_Model_Keygen::SUB_DOMAIN_SUCCESS,
|
151 |
-
))){
|
152 |
-
return true;
|
153 |
-
}
|
154 |
-
return false;
|
155 |
-
}
|
156 |
-
|
157 |
-
public function getLicenseInfo($licensekey,$extensionName)
|
158 |
-
{
|
159 |
-
if(strpos('a'.$extensionName,'Magestore')){
|
160 |
-
$arrName = explode('_',$extensionName);
|
161 |
-
$extensionName = isset($arrName[1]) ? $arrName[1] : str_replace('Magestore','',$extensionName);
|
162 |
-
}
|
163 |
-
$this->_extension = $extensionName;
|
164 |
-
$configPath = str_replace('{{extension_name}}',$extensionName,self::LICENSE_INFO_PATH);
|
165 |
-
//$baseUrl = Mage::getBaseUrl();
|
166 |
-
$baseUrl = Mage::getModel('core/store')->load(Mage_Core_Model_App::ADMIN_STORE_ID)->getBaseUrl();
|
167 |
-
$domain = $this->getDomain($baseUrl);
|
168 |
-
|
169 |
-
//get cached data
|
170 |
-
if($this->getDBLicenseKey() == $licensekey
|
171 |
-
&& $this->getDBCheckdate() == date('Y-m-d')
|
172 |
-
&& $this->getDBSumcode() == $this->getSumcode()){
|
173 |
-
//return Mage::getStoreConfig($configPath);
|
174 |
-
}
|
175 |
-
|
176 |
-
$licenseinfo = Mage::getSingleton('magenotification/keygen')->getLicenseInfo($licensekey,$extensionName,$domain);
|
177 |
-
$responsecode = $licenseinfo->getResponseCode();
|
178 |
-
$licenseType = $licenseinfo->getType();
|
179 |
-
if((int)$licenseinfo->getResponseCode() == 101){ // error when get license info
|
180 |
-
return Mage::getStoreConfig($configPath);
|
181 |
-
}
|
182 |
-
|
183 |
-
if((int)$licenseinfo->getResponseCode() >= Magestore_Magenotification_Model_Keygen::NEW_DOMAIN_SUCCESS){
|
184 |
-
//save license type
|
185 |
-
$this->_licenseType[$extensionName] = $licenseinfo->getType();
|
186 |
-
//get license info html format
|
187 |
-
$licenseinfo = $this->fomatLicenseInfo($licenseinfo);
|
188 |
-
$response = 1;
|
189 |
-
} else{
|
190 |
-
//get license info
|
191 |
-
$message = $this->getLicenseKeyError((int)$licenseinfo->getResponseCode());
|
192 |
-
$showLicenseinfo = null;
|
193 |
-
if(in_array((int)$licenseinfo->getResponseCode(),array( Magestore_Magenotification_Model_Keygen::EXPIRED_TRIAL_LICENSE_KEY_ERROR,
|
194 |
-
Magestore_Magenotification_Model_Keygen::LIMITED_DOMAIN_ERROR,
|
195 |
-
))){
|
196 |
-
$showLicenseinfo = $this->fomatLicenseInfo($licenseinfo);
|
197 |
-
}
|
198 |
-
//save license type
|
199 |
-
$this->_licenseType[$extensionName] = -1;
|
200 |
-
if((int)$licenseinfo->getResponseCode() == Magestore_Magenotification_Model_Keygen::LIMITED_DOMAIN_ERROR){
|
201 |
-
$this->_licenseType[$extensionName] = $licenseinfo->getType();
|
202 |
-
}
|
203 |
-
$licenseinfo = '<hr width="345" /><span class="licensekey-warning" style="font-weight:bold;color:#FF0000;">'.$message.'</span><br/>'.$showLicenseinfo.'<hr width="345" />';
|
204 |
-
$reponse = 0;
|
205 |
-
}
|
206 |
-
//save data into cookie
|
207 |
-
$this->setDBLicenseKey($licensekey);
|
208 |
-
$this->setDBLicenseType($licenseType);
|
209 |
-
$this->setDBCheckdate(date('Y-m-d'));
|
210 |
-
$this->setDBResponseCode((int)$responsecode);
|
211 |
-
$this->setDBSumcode($this->getSumcode($responsecode));
|
212 |
-
$this->_saveLicenseLog();
|
213 |
-
Mage::getSingleton('core/config')->saveConfig($configPath,$licenseinfo);
|
214 |
-
|
215 |
-
return $licenseinfo;
|
216 |
-
}
|
217 |
-
|
218 |
-
public function getLicenseType($extension)
|
219 |
-
{
|
220 |
-
$extension = $this->getExtensionName($extension);
|
221 |
-
if(!isset($this->_licenseType[$extension]))
|
222 |
-
return 0;
|
223 |
-
return $this->_licenseType[$extension];
|
224 |
-
}
|
225 |
-
|
226 |
-
public function fomatLicenseInfo($info)
|
227 |
-
{
|
228 |
-
$helper = Mage::helper('magenotification');
|
229 |
-
$html = self::LICENSE_INFO_FORMAT1;
|
230 |
-
$licensetype = Magestore_Magenotification_Model_Keygen::getLicenseTitle((int)$info->getType());
|
231 |
-
$activetime = Mage::helper('core')->formatDate($info->getActivatedTime(),'medium',false);
|
232 |
-
$domains = $info->getDomains();
|
233 |
-
$expired_info = null;
|
234 |
-
if((int)$info->getType() == Magestore_Magenotification_Model_Keygen::TRIAL_VERSION
|
235 |
-
|| (int)$info->getType() == Magestore_Magenotification_Model_Keygen::DEVELOPMENT){
|
236 |
-
$expired_time = strtotime($info->getActivatedTime()) + (int) $info->getExpiredTime() *3600*24;
|
237 |
-
$expired_time = date('Y-m-d H:i:s',$expired_time);
|
238 |
-
$expired_info = '<b>'.$helper->__('Expired Date').':</b> '.Mage::helper('core')->formatDate($expired_time,'medium',false);
|
239 |
-
$expired_info = " <br/> ".$expired_info;
|
240 |
-
$this->setDBExpiredTime(Mage::helper('core')->formatDate($expired_time,'medium',false));
|
241 |
-
}
|
242 |
-
|
243 |
-
$html = str_replace('{{license_type}}',$licensetype,$html);
|
244 |
-
$html = str_replace('{{activated_time}}','<b>'.$helper->__('Active Date').':</b> '.$activetime,$html);
|
245 |
-
$html = str_replace('{{domains}}','<b>'.$helper->__('Domain').':</b> '.$info->getDomains(),$html);
|
246 |
-
$html = str_replace('{{expired_info}}',$expired_info,$html);
|
247 |
-
return $html;
|
248 |
-
}
|
249 |
-
|
250 |
-
public function getSumcode($reponse=null)
|
251 |
-
{
|
252 |
-
$reponse = $reponse ? $reponse : $this->getDBResponseCode();
|
253 |
-
return md5(date('Y-m-d').'$295@-magestore_checklicensekey'.$reponse);
|
254 |
-
}
|
255 |
-
|
256 |
-
/***********/
|
257 |
-
/* Use cookie for storeing license info */
|
258 |
-
/***********/
|
259 |
-
|
260 |
-
public function setCookieData($key,$value)
|
261 |
-
{
|
262 |
-
$cookie = Mage::getSingleton('core/cookie');
|
263 |
-
$cookie->set($key.'_'.$this->_extension,$value);
|
264 |
-
return $this;
|
265 |
-
}
|
266 |
-
|
267 |
-
public function getCookieData($key)
|
268 |
-
{
|
269 |
-
$cookie = Mage::getSingleton('core/cookie');
|
270 |
-
return $cookie->get($key.'_'.$this->_extension);
|
271 |
-
}
|
272 |
-
|
273 |
-
public function setCookieLicenseType($licenseType)
|
274 |
-
{
|
275 |
-
$cookie = Mage::getSingleton('core/cookie');
|
276 |
-
$cookie->set('licensetype_'.$this->_extension,$licenseType);
|
277 |
-
return $this;
|
278 |
-
}
|
279 |
-
|
280 |
-
public function getCookieLicenseType()
|
281 |
-
{
|
282 |
-
$cookie = Mage::getSingleton('core/cookie');
|
283 |
-
return $cookie->get('licensetype_'.$this->_extension);
|
284 |
-
}
|
285 |
-
|
286 |
-
public function getCookieLicenseKey()
|
287 |
-
{
|
288 |
-
$cookie = Mage::getSingleton('core/cookie');
|
289 |
-
return $cookie->get('licensekey_'.$this->_extension);
|
290 |
-
}
|
291 |
-
|
292 |
-
public function setCookieLicenseKey($key)
|
293 |
-
{
|
294 |
-
$cookie = Mage::getSingleton('core/cookie');
|
295 |
-
return $cookie->set('licensekey_'.$this->_extension,$key);
|
296 |
-
}
|
297 |
-
|
298 |
-
public function getCookieCheckdate()
|
299 |
-
{
|
300 |
-
$cookie = Mage::getSingleton('core/cookie');
|
301 |
-
return $cookie->get('checkdate_'.$this->_extension);
|
302 |
-
}
|
303 |
-
|
304 |
-
public function setCookieCheckdate($date)
|
305 |
-
{
|
306 |
-
$cookie = Mage::getSingleton('core/cookie');
|
307 |
-
return $cookie->set('checkdate_'.$this->_extension,$date);
|
308 |
-
}
|
309 |
-
|
310 |
-
public function getCookieSumcode()
|
311 |
-
{
|
312 |
-
$cookie = Mage::getSingleton('core/cookie');
|
313 |
-
return $cookie->get('sumcode_'.$this->_extension);
|
314 |
-
}
|
315 |
-
|
316 |
-
public function setCookieSumcode($sumcode)
|
317 |
-
{
|
318 |
-
$cookie = Mage::getSingleton('core/cookie');
|
319 |
-
return $cookie->set('sumcode_'.$this->_extension,$sumcode);
|
320 |
-
}
|
321 |
-
|
322 |
-
public function getCookieResponseCode()
|
323 |
-
{
|
324 |
-
$cookie = Mage::getSingleton('core/cookie');
|
325 |
-
return $cookie->get('reponsecode_'.$this->_extension);
|
326 |
-
}
|
327 |
-
|
328 |
-
public function setCookieResponseCode($reponseCode)
|
329 |
-
{
|
330 |
-
$cookie = Mage::getSingleton('core/cookie');
|
331 |
-
return $cookie->set('reponsecode_'.$this->_extension,$reponseCode);
|
332 |
-
}
|
333 |
-
|
334 |
-
public function getCookieIsvalid()
|
335 |
-
{
|
336 |
-
$cookie = Mage::getSingleton('core/cookie');
|
337 |
-
return $cookie->get('valid_'.$this->_extension);
|
338 |
-
}
|
339 |
-
|
340 |
-
public function setCookieIsvalid($isvalid)
|
341 |
-
{
|
342 |
-
$cookie = Mage::getSingleton('core/cookie');
|
343 |
-
return $cookie->set('valid_'.$this->_extension,$isvalid);
|
344 |
-
}
|
345 |
-
|
346 |
-
/* End of using cookie for storeing license info */
|
347 |
-
|
348 |
-
|
349 |
-
/***********/
|
350 |
-
/*Use database for storeing license info*/
|
351 |
-
/***********/
|
352 |
-
|
353 |
-
public function setDBLicenseType($licenseType)
|
354 |
-
{
|
355 |
-
$this->_getLogger()->setData('license_type',$licenseType);
|
356 |
-
}
|
357 |
-
|
358 |
-
public function getDBLicenseType()
|
359 |
-
{
|
360 |
-
return $this->_getLogger()->getData('license_type');
|
361 |
-
}
|
362 |
-
|
363 |
-
public function setDBLicenseKey($key)
|
364 |
-
{
|
365 |
-
$this->_getLogger()->setData('license_key',$key);
|
366 |
-
}
|
367 |
-
|
368 |
-
public function getDBLicenseKey()
|
369 |
-
{
|
370 |
-
return $this->_getLogger()->getData('license_key');
|
371 |
-
}
|
372 |
-
|
373 |
-
public function setDBCheckdate($checkdate)
|
374 |
-
{
|
375 |
-
$this->_getLogger()->setData('check_date',$checkdate);
|
376 |
-
}
|
377 |
-
|
378 |
-
public function getDBCheckdate()
|
379 |
-
{
|
380 |
-
return $this->_getLogger()->getData('check_date');
|
381 |
-
}
|
382 |
-
|
383 |
-
public function setDBSumCode($sumcode)
|
384 |
-
{
|
385 |
-
$this->_getLogger()->setData('sum_code',$sumcode);
|
386 |
-
}
|
387 |
-
|
388 |
-
public function getDBSumCode()
|
389 |
-
{
|
390 |
-
return $this->_getLogger()->getData('sum_code');
|
391 |
-
}
|
392 |
-
|
393 |
-
public function setDBResponseCode($response_code)
|
394 |
-
{
|
395 |
-
$this->_getLogger()->setData('response_code',$response_code);
|
396 |
-
}
|
397 |
-
|
398 |
-
public function getDBResponseCode()
|
399 |
-
{
|
400 |
-
return $this->_getLogger()->getData('response_code');
|
401 |
-
}
|
402 |
-
|
403 |
-
public function setDBIsvalid($is_valid)
|
404 |
-
{
|
405 |
-
$this->_getLogger()->setData('is_valid',$is_valid);
|
406 |
-
}
|
407 |
-
|
408 |
-
public function getDBIsvalid()
|
409 |
-
{
|
410 |
-
return $this->_getLogger()->getData('is_valid');
|
411 |
-
}
|
412 |
-
|
413 |
-
public function setDBExpiredTime($expired_time)
|
414 |
-
{
|
415 |
-
$this->_getLogger()->setData('expired_time',$expired_time);
|
416 |
-
}
|
417 |
-
|
418 |
-
public function getDBExpiredTime()
|
419 |
-
{
|
420 |
-
return $this->_getLogger()->getData('expired_time');
|
421 |
-
}
|
422 |
-
|
423 |
-
protected function _getLogger()
|
424 |
-
{
|
425 |
-
//if($this->_logger == null){
|
426 |
-
if (!isset($this->_logger[$this->_extension])){
|
427 |
-
$this->_logger[$this->_extension] = Mage::getResourceModel('magenotification/logger_collection')
|
428 |
-
->addFieldToFilter('extension_code',$this->_extension)
|
429 |
-
->getFirstItem();
|
430 |
-
$this->_logger[$this->_extension]->setData('extension_code',$this->_extension);
|
431 |
-
}
|
432 |
-
return $this->_logger[$this->_extension];
|
433 |
-
}
|
434 |
-
|
435 |
-
protected function _saveLicenseLog()
|
436 |
-
{
|
437 |
-
if($this->_extension != null){
|
438 |
-
$this->_getLogger()->save();
|
439 |
-
}
|
440 |
-
}
|
441 |
-
|
442 |
-
/* End of using database for storeing license info */
|
443 |
-
|
444 |
-
public function getDomain($baseUrl){
|
445 |
-
$parseUrl = parse_url(trim($baseUrl));
|
446 |
-
$domain = trim($parseUrl['host'] ? $parseUrl['host'] : array_shift(explode('/', $parseUrl['path'], 2)));
|
447 |
-
if (strpos($domain,'www.') === 0) $domain = substr($domain,4);
|
448 |
-
return $domain;
|
449 |
-
}
|
450 |
-
|
451 |
-
public function getExtensionList()
|
452 |
-
{
|
453 |
-
$list = array();
|
454 |
-
$modules = (array) Mage::getConfig()->getNode('modules')->children();
|
455 |
-
|
456 |
-
foreach ($modules as $moduleName => $moduleInfo) {
|
457 |
-
if ($moduleName==='Magestore_Magenotification') {
|
458 |
-
continue;
|
459 |
-
}
|
460 |
-
if(strpos('a'.$moduleName,'Magestore') == 0){
|
461 |
-
continue;
|
462 |
-
}
|
463 |
-
if((string)$moduleInfo->codePool != 'local'){
|
464 |
-
continue;
|
465 |
-
}
|
466 |
-
$moduleName = str_replace('Magestore_','',$moduleName);
|
467 |
-
$list[$moduleName] = $moduleName;
|
468 |
-
}
|
469 |
-
return $list;
|
470 |
-
}
|
471 |
-
|
472 |
-
public function getExtensionOption()
|
473 |
-
{
|
474 |
-
$options = array();
|
475 |
-
$list = $this->getExtensionList();
|
476 |
-
if(count($list)){
|
477 |
-
foreach($list as $key=>$item){
|
478 |
-
$options[] = array('value'=>$key,'label'=>$item);
|
479 |
-
}
|
480 |
-
}
|
481 |
-
return $options;
|
482 |
-
}
|
483 |
-
|
484 |
-
public function getFeedbackStatusList()
|
485 |
-
{
|
486 |
-
$list = array();
|
487 |
-
$list[1] = $this->__('Approved');
|
488 |
-
$list[2] = $this->__('Canceled');
|
489 |
-
$list[3] = $this->__('Pending');
|
490 |
-
return $list;
|
491 |
-
}
|
492 |
-
|
493 |
-
public function getFeedbackStatusOption()
|
494 |
-
{
|
495 |
-
$options = array();
|
496 |
-
$list = $this->getFeedbackStatusList();
|
497 |
-
if(count($list)){
|
498 |
-
foreach($list as $key=>$item){
|
499 |
-
$options[] = array('value'=>$key,'label'=>$item);
|
500 |
-
}
|
501 |
-
}
|
502 |
-
return $options;
|
503 |
-
}
|
504 |
-
|
505 |
-
public function getExtensionVersion($extension)
|
506 |
-
{
|
507 |
-
$modules = Mage::getConfig()->getNode('modules')->children();
|
508 |
-
$modules = (array) $modules;
|
509 |
-
if(isset($modules[$extension])){
|
510 |
-
return (string)$modules[$extension]->version;
|
511 |
-
}
|
512 |
-
if(isset($modules['Magestore_'.$extension])){
|
513 |
-
return (string)$modules['Magestore_'.$extension]->version;
|
514 |
-
}
|
515 |
-
return null;
|
516 |
-
}
|
517 |
-
|
518 |
-
public function getExtensionName($extension)
|
519 |
-
{
|
520 |
-
if(strpos('a'.$extension,'Magestore')){
|
521 |
-
$arrName = explode('_',$extension);
|
522 |
-
$extension = isset($arrName[1]) ? $arrName[1] : str_replace('Magestore','',$extension);
|
523 |
-
}
|
524 |
-
return $extension;
|
525 |
-
}
|
526 |
-
|
527 |
-
public function getInvalidKeyNotice()
|
528 |
-
{
|
529 |
-
$extensionkey_link = Mage::getSingleton('adminhtml/url')->getUrl('adminhtml/system_config/edit',array('section'=>'magenotificationsecure','_secure'=>true));
|
530 |
-
$extensionkey_link = '<a href="'.$extensionkey_link.'">'.$this->__('extension key management section').'</a>';
|
531 |
-
$message = $this->getErrorMessage();
|
532 |
-
$message = $message ? $message : $this->__('Invalid License Key');
|
533 |
-
$message .= '! '.$this->__('Please go to %s for more information.',$extensionkey_link);
|
534 |
-
$message = '<div id="messages"><ul class="messages"><li class="error-msg"><ul><li>'.$message.'</li></ul></li></ul></div>';
|
535 |
-
return $message;
|
536 |
-
}
|
537 |
-
|
538 |
-
public function getLicenseKeyError($error_code)
|
539 |
-
{
|
540 |
-
switch($error_code){
|
541 |
-
case Magestore_Magenotification_Model_Keygen::GENERAL_ERROR :
|
542 |
-
return $this->__('Invalid License Key');
|
543 |
-
case Magestore_Magenotification_Model_Keygen::NOT_EXIST_LICENSE_KEY_ERROR :
|
544 |
-
return $this->__('Invalid License Key');
|
545 |
-
case Magestore_Magenotification_Model_Keygen::DISABLED_LICENSE_KEY_ERROR :
|
546 |
-
return $this->__('Invalid License Key');
|
547 |
-
case Magestore_Magenotification_Model_Keygen::EXPIRED_TRIAL_LICENSE_KEY_ERROR :
|
548 |
-
return $this->__('Expired License');
|
549 |
-
case Magestore_Magenotification_Model_Keygen::LIMITED_DOMAIN_ERROR :
|
550 |
-
return $this->__('License key does not match');
|
551 |
-
}
|
552 |
-
return null;
|
553 |
-
}
|
554 |
-
|
555 |
-
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
app/code/local/Magestore/Magenotification/Helper/Feedback.php
DELETED
@@ -1,120 +0,0 @@
|
|
1 |
-
<?php
|
2 |
-
|
3 |
-
class Magestore_Magenotification_Helper_Feedback extends Mage_Core_Helper_Abstract
|
4 |
-
{
|
5 |
-
public function getResumeCode($feedbackcode)
|
6 |
-
{
|
7 |
-
return md5($feedbackcode.'magestore-extension-feedback-59*47@');
|
8 |
-
}
|
9 |
-
|
10 |
-
public function postFeedback($feedback)
|
11 |
-
{
|
12 |
-
$baseUrl = Mage::getBaseUrl();
|
13 |
-
$resume = $this->getResumeCode($feedback->getCode());
|
14 |
-
$customeremail = Mage::getStoreConfig('magestore_extension_feedback/email/contactemail');
|
15 |
-
$customername = Mage::getStoreConfig('magestore_extension_feedback/email/contactname');
|
16 |
-
if(!$customeremail){
|
17 |
-
$customeremail = Mage::getStoreConfig('trans_email/ident_general/email');
|
18 |
-
$customername = Mage::getStoreConfig('trans_email/ident_general/name');
|
19 |
-
}
|
20 |
-
/* try{
|
21 |
-
$xmlRpc = new Zend_XmlRpc_Client(Magestore_Magenotification_Model_Keygen::SERVER_URL.'api/xmlrpc/');
|
22 |
-
$session = $xmlRpc->call('login', array('username'=>Magestore_Magenotification_Model_Keygen::WEBSERVICE_USER,'password'=>Magestore_Magenotification_Model_Keygen::WEBSERVICE_PASS));
|
23 |
-
$result = $xmlRpc->call('call', array('sessionId' => $session,
|
24 |
-
'apiPath' => 'licensemanager_extensionfeedback.feedbackupdate',
|
25 |
-
'args' => array( $baseUrl,
|
26 |
-
$feedback->getCode(),
|
27 |
-
$feedback->getExtension(),
|
28 |
-
$feedback->getExtensionVersion(),
|
29 |
-
$feedback->getContent(),
|
30 |
-
$feedback->getFile(),
|
31 |
-
$feedback->getMessage(),
|
32 |
-
$customeremail,
|
33 |
-
$customername,
|
34 |
-
$resume,
|
35 |
-
)));
|
36 |
-
if((int)$result < 210){ //error
|
37 |
-
throw new Exception($this->__('Can not sent feedback! Please try later').$result);
|
38 |
-
}
|
39 |
-
} catch(Exception $e){
|
40 |
-
throw new Exception($this->__('Can not sent feedback! Please try later').'<br/>'.$e->getMessage());
|
41 |
-
} */
|
42 |
-
}
|
43 |
-
|
44 |
-
public function postMessage($message)
|
45 |
-
{
|
46 |
-
$resume = $this->getResumeCode($message->getFeedbackCode());
|
47 |
-
$customeremail = Mage::getStoreConfig('magestore_extension_feedback/email/contactemail');
|
48 |
-
$customername = Mage::getStoreConfig('magestore_extension_feedback/email/contactname');
|
49 |
-
if(!$customeremail){
|
50 |
-
$customeremail = Mage::getStoreConfig('trans_email/ident_general/email');
|
51 |
-
$customername = Mage::getStoreConfig('trans_email/ident_general/name');
|
52 |
-
}
|
53 |
-
/* try{
|
54 |
-
$xmlRpc = new Zend_XmlRpc_Client(Magestore_Magenotification_Model_Keygen::SERVER_URL.'api/xmlrpc/');
|
55 |
-
$session = $xmlRpc->call('login', array('username'=>Magestore_Magenotification_Model_Keygen::WEBSERVICE_USER,'password'=>Magestore_Magenotification_Model_Keygen::WEBSERVICE_PASS));
|
56 |
-
$result = $xmlRpc->call('call', array('sessionId' => $session,
|
57 |
-
'apiPath' => 'licensemanager_extensionfeedback.addmessage',
|
58 |
-
'args' => array( $message->getFeedbackCode(),
|
59 |
-
$customername,
|
60 |
-
$message->getMessage(),
|
61 |
-
$message->getFile(),
|
62 |
-
$message->getPostedTime(),
|
63 |
-
$resume,
|
64 |
-
)));
|
65 |
-
if((int)$result < 210){ //error
|
66 |
-
throw new Exception($this->__('Can not sent message! Please try later').$result);
|
67 |
-
}
|
68 |
-
} catch(Exception $e){
|
69 |
-
throw new Exception($this->__('Can not sent message! Please try later').'<br/>'.$e->getMessage());
|
70 |
-
} */
|
71 |
-
}
|
72 |
-
|
73 |
-
public function updateFeedback($feedback)
|
74 |
-
{
|
75 |
-
$resume = $this->getResumeCode($feedback->getCode());
|
76 |
-
/* try{
|
77 |
-
$xmlRpc = new Zend_XmlRpc_Client(Magestore_Magenotification_Model_Keygen::SERVER_URL.'api/xmlrpc/');
|
78 |
-
$session = $xmlRpc->call('login', array('username'=>Magestore_Magenotification_Model_Keygen::WEBSERVICE_USER,'password'=>Magestore_Magenotification_Model_Keygen::WEBSERVICE_PASS));
|
79 |
-
$result = $xmlRpc->call('call', array('sessionId' => $session,
|
80 |
-
'apiPath' => 'licensemanager_extensionfeedback.feedbackinfo',
|
81 |
-
'args' => array($feedback->getCode(),
|
82 |
-
$resume,
|
83 |
-
)));
|
84 |
-
$feedback->updateData($result);
|
85 |
-
} catch(Exception $e){
|
86 |
-
Mage::getSingleton('core/session')->addError($e->getMessage());
|
87 |
-
} */
|
88 |
-
}
|
89 |
-
|
90 |
-
public function needUpdate($feedback)
|
91 |
-
{
|
92 |
-
if(!$feedback->getId())
|
93 |
-
return false;
|
94 |
-
$updated = $feedback->getUpdated();
|
95 |
-
if((int)$updated + 60 < time()){
|
96 |
-
return true;
|
97 |
-
}
|
98 |
-
return false;
|
99 |
-
}
|
100 |
-
|
101 |
-
public function getSentStatusList()
|
102 |
-
{
|
103 |
-
$list = array();
|
104 |
-
$list[1] = $this->__('Sent');
|
105 |
-
$list[2] = $this->__('Not Sent');
|
106 |
-
return $list;
|
107 |
-
}
|
108 |
-
|
109 |
-
public function getSentStatusOption()
|
110 |
-
{
|
111 |
-
$options = array();
|
112 |
-
$list = $this->getSentStatusList();
|
113 |
-
if(count($list)){
|
114 |
-
foreach($list as $key=>$item){
|
115 |
-
$options[] = array('value'=>$key,'label'=>$item);
|
116 |
-
}
|
117 |
-
}
|
118 |
-
return $options;
|
119 |
-
}
|
120 |
-
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
app/code/local/Magestore/Magenotification/Helper/License.php
DELETED
@@ -1,31 +0,0 @@
|
|
1 |
-
<?php
|
2 |
-
|
3 |
-
class Magestore_Magenotification_Helper_License extends Mage_Core_Helper_Abstract
|
4 |
-
{
|
5 |
-
public function getResumeCode($licensekey)
|
6 |
-
{
|
7 |
-
return md5($licensekey.'magestore-extension-upgrade-license-59*47@');
|
8 |
-
}
|
9 |
-
|
10 |
-
public function getUpgradePrice($licensekey,$licensetype)
|
11 |
-
{
|
12 |
-
$resume = $this->getResumeCode($licensekey);
|
13 |
-
/* try{
|
14 |
-
$xmlRpc = new Zend_XmlRpc_Client(Magestore_Magenotification_Model_Keygen::SERVER_URL.'api/xmlrpc/');
|
15 |
-
$session = $xmlRpc->call('login', array('username'=>Magestore_Magenotification_Model_Keygen::WEBSERVICE_USER,'password'=>Magestore_Magenotification_Model_Keygen::WEBSERVICE_PASS));
|
16 |
-
$result = $xmlRpc->call('call', array('sessionId' => $session,
|
17 |
-
'apiPath' => 'licensemanager.getupgradeprice',
|
18 |
-
'args' => array( $licensekey,
|
19 |
-
$licensetype,
|
20 |
-
$resume,
|
21 |
-
)));
|
22 |
-
if(!$result){ //error
|
23 |
-
throw new Exception($this->__('Error! please try again.'));
|
24 |
-
return;
|
25 |
-
}
|
26 |
-
return $result;
|
27 |
-
} catch(Exception $e){
|
28 |
-
throw new Exception($this->__('Error! please try again.').'<br/>'.$e->getMessage());
|
29 |
-
} */
|
30 |
-
}
|
31 |
-
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
app/code/local/Magestore/Magenotification/Model/Config.php
DELETED
@@ -1,28 +0,0 @@
|
|
1 |
-
<?php
|
2 |
-
|
3 |
-
class Magestore_Magenotification_Model_Config extends Varien_Simplexml_Config
|
4 |
-
{
|
5 |
-
const COMMERCIAL_LICENSE = 'commercial';
|
6 |
-
const DEPEND_LICENSE = 'depend';
|
7 |
-
const TRIAL_LICENSE = 'trial';
|
8 |
-
const FREE_LICENSE = 'free';
|
9 |
-
|
10 |
-
/**
|
11 |
-
* Init License Config Information
|
12 |
-
* XML Path: app/code/local/Magestore/license_certificates
|
13 |
-
*
|
14 |
-
* @param type $sourceData
|
15 |
-
*/
|
16 |
-
public function __construct($sourceData=null)
|
17 |
-
{
|
18 |
-
$certificateFolder = 'app/code/local/Magestore/license_certificates';
|
19 |
-
$certificateFolder = str_replace('/', DS, $certificateFolder);
|
20 |
-
$configFiles = glob(BP . DS . $certificateFolder . DS . '*.xml');
|
21 |
-
$this->loadFile(current($configFiles));
|
22 |
-
while ($file = next($configFiles)) {
|
23 |
-
$merge = new Varien_Simplexml_Config;
|
24 |
-
$merge->loadFile($file);
|
25 |
-
$this->extend($merge);
|
26 |
-
}
|
27 |
-
}
|
28 |
-
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
app/code/local/Magestore/Magenotification/Model/Feedback.php
DELETED
@@ -1,62 +0,0 @@
|
|
1 |
-
<?php
|
2 |
-
|
3 |
-
class Magestore_Magenotification_Model_Feedback extends Mage_Core_Model_Abstract
|
4 |
-
{
|
5 |
-
public function _construct()
|
6 |
-
{
|
7 |
-
parent::_construct();
|
8 |
-
$this->_init('magenotification/feedback');
|
9 |
-
}
|
10 |
-
|
11 |
-
public function updateData($data)
|
12 |
-
{
|
13 |
-
$is_updated = false;
|
14 |
-
$dataObject = new Varien_Object($data);
|
15 |
-
$feedbackDataObject = new Varien_Object($dataObject->getFeedback());
|
16 |
-
$messages = $dataObject->getMessage();
|
17 |
-
|
18 |
-
$helper = Mage::helper('magenotification');
|
19 |
-
|
20 |
-
// update feedback
|
21 |
-
if($feedbackDataObject->getStatus() != $this->getStatus()){
|
22 |
-
$this->setStatus($feedbackDataObject->getStatus());
|
23 |
-
$is_updated = true;
|
24 |
-
}
|
25 |
-
|
26 |
-
if($feedbackDataObject->getCouponCode() != $this->getCouponCode()){
|
27 |
-
$this->setCouponCode($feedbackDataObject->getCouponCode());
|
28 |
-
$is_updated = true;
|
29 |
-
}
|
30 |
-
|
31 |
-
if($feedbackDataObject->getCouponValue() != $this->getCouponValue()){
|
32 |
-
$this->setCouponValue($feedbackDataObject->getCouponValue());
|
33 |
-
$is_updated = true;
|
34 |
-
}
|
35 |
-
|
36 |
-
if($feedbackDataObject->getExpiredCoupon() != $this->getExpiredCoupon()){
|
37 |
-
$this->setExpiredCoupon($feedbackDataObject->getExpiredCoupon());
|
38 |
-
$is_updated = true;
|
39 |
-
}
|
40 |
-
|
41 |
-
$this->setUpdated(time());
|
42 |
-
$this->save();
|
43 |
-
|
44 |
-
//update message
|
45 |
-
if(count($messages)){
|
46 |
-
$messageModel = Mage::getModel('magenotification/feedbackmessage');
|
47 |
-
foreach($messages as $message){
|
48 |
-
$messageDataObject = new Varien_Object($message);
|
49 |
-
$messageModel->import($messageDataObject);
|
50 |
-
}
|
51 |
-
}
|
52 |
-
|
53 |
-
return $this;
|
54 |
-
}
|
55 |
-
|
56 |
-
public function getMessages()
|
57 |
-
{
|
58 |
-
return Mage::getResourceModel('magenotification/feedbackmessage_collection')
|
59 |
-
->addFieldToFilter('feedback_code',$this->getCode())
|
60 |
-
->setOrder('posted_time','DESC');
|
61 |
-
}
|
62 |
-
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
app/code/local/Magestore/Magenotification/Model/Feedbackmessage.php
DELETED
@@ -1,49 +0,0 @@
|
|
1 |
-
<?php
|
2 |
-
|
3 |
-
class Magestore_Magenotification_Model_Feedbackmessage extends Mage_Core_Model_Abstract
|
4 |
-
{
|
5 |
-
public function _construct()
|
6 |
-
{
|
7 |
-
parent::_construct();
|
8 |
-
$this->_init('magenotification/feedbackmessage');
|
9 |
-
}
|
10 |
-
|
11 |
-
public function getAttachedFile()
|
12 |
-
{
|
13 |
-
$html = '';
|
14 |
-
$attachedfiles = $this->getFile();
|
15 |
-
if($attachedfiles){
|
16 |
-
$attachedfiles = explode(',',$attachedfiles);
|
17 |
-
$siteUrl = ((int)$this->getIsCustomer() == 1) ? Mage::getBaseUrl() : Magestore_Magenotification_Model_Keygen::SERVER_URL;
|
18 |
-
$siteUrl = str_replace('index.php/','',$siteUrl);
|
19 |
-
if(count($attachedfiles)){
|
20 |
-
$count = 1;
|
21 |
-
foreach($attachedfiles as $attachedfile){
|
22 |
-
$html .= '<br/>'.($count++).'. <a href="'.$siteUrl.'media/feedback'.$attachedfile.'">'.$this->getFileName($attachedfile).'</a>';
|
23 |
-
}
|
24 |
-
}
|
25 |
-
$html .= '<br/><br/>';
|
26 |
-
}
|
27 |
-
return $html;
|
28 |
-
}
|
29 |
-
|
30 |
-
public function getFileName($path)
|
31 |
-
{
|
32 |
-
return substr($path,strrpos($path,'/')+1);
|
33 |
-
}
|
34 |
-
|
35 |
-
public function import($dataObject)
|
36 |
-
{
|
37 |
-
$message = $this->getCollection()
|
38 |
-
->addFieldToFilter('feedback_code',$dataObject->getFeedbackCode())
|
39 |
-
->addFieldToFilter('message',$dataObject->getMessage())
|
40 |
-
->addFieldToFilter('file',$dataObject->getFile())
|
41 |
-
->getFirstItem()
|
42 |
-
;
|
43 |
-
if(!$message->getId()){
|
44 |
-
$dataObject->setFeedbackmessageId(null);
|
45 |
-
$message->addData($dataObject->getData())
|
46 |
-
->save();
|
47 |
-
}
|
48 |
-
}
|
49 |
-
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
app/code/local/Magestore/Magenotification/Model/Keygen.php
DELETED
@@ -1,215 +0,0 @@
|
|
1 |
-
<?php
|
2 |
-
|
3 |
-
class Magestore_Magenotification_Model_Keygen
|
4 |
-
{
|
5 |
-
const DOMAIN1 = 1;
|
6 |
-
const DOMAIN2 = 2;
|
7 |
-
const DOMAIN5 = 3;
|
8 |
-
const DOMAIN10 = 4;
|
9 |
-
const UNLIMITED = 5;
|
10 |
-
const DEVELOPER = 6;
|
11 |
-
const DEVELOPMENT = 7;
|
12 |
-
const TRIAL_VERSION = 10;
|
13 |
-
|
14 |
-
const GENERAL_ERROR = 200;
|
15 |
-
const NOT_EXIST_LICENSE_KEY_ERROR = 201;
|
16 |
-
const DISABLED_LICENSE_KEY_ERROR = 202;
|
17 |
-
const EXPIRED_TRIAL_LICENSE_KEY_ERROR = 203;
|
18 |
-
const LIMITED_DOMAIN_ERROR = 204;
|
19 |
-
const NEW_DOMAIN_SUCCESS = 210;
|
20 |
-
const EXISTED_DOMAIN_SUCCESS = 211;
|
21 |
-
const SUB_DOMAIN_SUCCESS = 212;
|
22 |
-
|
23 |
-
const SERVER_NAME = 'MageStore.com';
|
24 |
-
const SERVER_URL = 'http://www.magestore.com/';
|
25 |
-
const WEBSERVICE_USER = 'license_checker';
|
26 |
-
const WEBSERVICE_PASS = 'Ki97@M0$l!';
|
27 |
-
|
28 |
-
private $_publicKey = '-----BEGIN PUBLIC KEY-----
|
29 |
-
MFwwDQYJKoZIhvcNAQEBBQADSwAwSAJBAJ8EDi+a0lilUChsDba33FrcHLZZZIMx
|
30 |
-
T7XhyEP3J3llQXNJkflG+5GzBvFTd+B1pvpc45WOktNReyPDZ/OMNukCAwEAAQ==
|
31 |
-
-----END PUBLIC KEY-----';
|
32 |
-
|
33 |
-
public function checkLicenseKey($licensekey,$extensionName,$domain){
|
34 |
-
if ($licenseInfo = $this->getLicenseInfo($licensekey,$extensionName,$domain)){
|
35 |
-
if ($licenseInfo->getResponseCode() == 101) return self::NEW_DOMAIN_SUCCESS;
|
36 |
-
return $licenseInfo->getResponseCode();
|
37 |
-
}
|
38 |
-
return self::GENERAL_ERROR;
|
39 |
-
}
|
40 |
-
|
41 |
-
public function getLicenseInfo($licensekey,$extensionName,$domain){
|
42 |
-
$licensekey = trim($licensekey);
|
43 |
-
// check license for old license key
|
44 |
-
if ($oldLicenseInfo = $this->_decrypt($licensekey)){
|
45 |
-
$license = Mage::getModel('magenotification/license')->loadByLicenseExtension($licensekey,$extensionName);
|
46 |
-
if (!$license->getId()){
|
47 |
-
// Request first time when using old license key
|
48 |
-
try {
|
49 |
-
$xmlRpc = new Zend_XmlRpc_Client(self::SERVER_URL.'api/xmlrpc/');
|
50 |
-
$session = $xmlRpc->call('login', array('username' => self::WEBSERVICE_USER,
|
51 |
-
'password' => self::WEBSERVICE_PASS));
|
52 |
-
$result = $xmlRpc->call('call', array('sessionId' => $session,
|
53 |
-
'apiPath' => 'licensemanager.active',
|
54 |
-
'args' => array($licensekey,$extensionName,$domain)));
|
55 |
-
$dataObject = new Varien_Object($result);
|
56 |
-
} catch (Exception $e){
|
57 |
-
return new Varien_Object(array('response_code' => 101));
|
58 |
-
}
|
59 |
-
$license->setResponseCode($dataObject->getResponseCode())
|
60 |
-
->setDomains($dataObject->getDomains());
|
61 |
-
if ($dataObject->getActivatedTime()){
|
62 |
-
$license->setActiveAt(substr($dataObject->getActivatedTime(),0,10));
|
63 |
-
} else {
|
64 |
-
$license->setActiveAt(now(true));
|
65 |
-
}
|
66 |
-
try {
|
67 |
-
$license->setSumCode($this->_getSumCode($license));
|
68 |
-
$license->save();
|
69 |
-
} catch(Exception $e) {}
|
70 |
-
return $dataObject;
|
71 |
-
}
|
72 |
-
$result = new Varien_Object($license->getData());
|
73 |
-
$result->addData(array(
|
74 |
-
'users' => 1,
|
75 |
-
'created_time' => date('Y-m-d H:m:s',$oldLicenseInfo['created_time']),
|
76 |
-
'activated_time' => $license->getActiveAt(),
|
77 |
-
'type' => $oldLicenseInfo['type'],
|
78 |
-
'status' => 1,
|
79 |
-
'expired_time' => $oldLicenseInfo['expired_time'],
|
80 |
-
));
|
81 |
-
if ($license->getSumCode() != $this->_getSumCode($license)){
|
82 |
-
try {
|
83 |
-
$license->setResponseCode(self::GENERAL_ERROR);
|
84 |
-
$license->setSumCode($this->_getSumCode($license))->save();
|
85 |
-
} catch (Exception $e){}
|
86 |
-
} elseif ($result->getType() == self::TRIAL_VERSION && $license->getResponseCode() > self::LIMITED_DOMAIN_ERROR){
|
87 |
-
$expiredTime = strtotime($license->getActiveAt()) + (int)$result->getExpiredTime() * 24*3600;
|
88 |
-
if ($expiredTime < time()){
|
89 |
-
try {
|
90 |
-
$license->setResponseCode(self::EXPIRED_TRIAL_LICENSE_KEY_ERROR);
|
91 |
-
$license->setSumCode($this->_getSumCode($license))->save();
|
92 |
-
} catch (Exception $e){}
|
93 |
-
}
|
94 |
-
}
|
95 |
-
return $result->setResponseCode($license->getResponseCode());
|
96 |
-
}
|
97 |
-
// check new license key
|
98 |
-
if ($licenseInfo = $this->_newkeyDecrypt($licensekey,$extensionName,$domain)){
|
99 |
-
$license = Mage::getModel('magenotification/license')->loadByLicenseExtension($licensekey,$extensionName);
|
100 |
-
if (!$license->getId()){
|
101 |
-
$license->setActiveAt(now(true))
|
102 |
-
->setDomains($licenseInfo->getDomains());
|
103 |
-
$responseCode = self::NEW_DOMAIN_SUCCESS;
|
104 |
-
$licenseDomain = (strlen($domain) > 38) ? substr($domain,0,38) : $domain;
|
105 |
-
if ($licenseDomain != $licenseInfo->getDomains())
|
106 |
-
$responseCode = self::LIMITED_DOMAIN_ERROR;
|
107 |
-
try {
|
108 |
-
$license->setResponseCode($responseCode);
|
109 |
-
$license->setSumCode($this->_getSumCode($license))->save();
|
110 |
-
} catch (Exception $e){}
|
111 |
-
}
|
112 |
-
$result = new Varien_Object($license->getData());
|
113 |
-
$createdTime = $licenseInfo->getCreatedDate() ? $licenseInfo->getCreatedDate() : $license->getActiveAt();
|
114 |
-
$result->addData(array(
|
115 |
-
'users' => 1,
|
116 |
-
'created_time' => date('Y-m-d H:m:s',strtotime($createdTime)),
|
117 |
-
'activated_time' => $license->getActiveAt(),
|
118 |
-
'type' => $this->getOldLicenseType($licenseInfo->getType()),
|
119 |
-
'status' => 1,
|
120 |
-
'expired_time' => $licenseInfo->getExpiredTime(),
|
121 |
-
));
|
122 |
-
if ($license->getSumCode() != $this->_getSumCode($license)){
|
123 |
-
try {
|
124 |
-
$license->setResponseCode(self::GENERAL_ERROR);
|
125 |
-
$license->setSumCode($this->_getSumCode($license))->save();
|
126 |
-
} catch (Exception $e){}
|
127 |
-
} elseif (($result->getType() == self::TRIAL_VERSION || $result->getType() == self::DEVELOPMENT)
|
128 |
-
&& $license->getResponseCode() > self::LIMITED_DOMAIN_ERROR){
|
129 |
-
$expiredTime = strtotime($license->getActiveAt()) + (int)$result->getExpiredTime() * 24*3600;
|
130 |
-
if ($expiredTime < time()){
|
131 |
-
try {
|
132 |
-
$license->setResponseCode(self::EXPIRED_TRIAL_LICENSE_KEY_ERROR);
|
133 |
-
$license->setSumCode($this->_getSumCode($license))->save();
|
134 |
-
} catch (Exception $e){}
|
135 |
-
}
|
136 |
-
}
|
137 |
-
return $result->setResponseCode($license->getResponseCode());
|
138 |
-
}
|
139 |
-
return new Varien_Object(array('response_code' => self::GENERAL_ERROR));
|
140 |
-
}
|
141 |
-
|
142 |
-
public function getOldLicenseType($newType){
|
143 |
-
if ($newType == 'C')
|
144 |
-
return self::DOMAIN1;
|
145 |
-
if ($newType == 'D')
|
146 |
-
return self::DEVELOPMENT;
|
147 |
-
return self::TRIAL_VERSION;
|
148 |
-
}
|
149 |
-
|
150 |
-
private function _newkeyDecrypt($licensekey,$extensionName,$domain){
|
151 |
-
if (strlen($licensekey) < 68) return false;
|
152 |
-
$crc32Pos = abs(crc32(substr($licensekey,0,10).$extensionName) & 0x7FFFFFFF % 49) + 10;
|
153 |
-
$crc32 = substr($licensekey,$crc32Pos,8);
|
154 |
-
$key = substr($licensekey,0,$crc32Pos).substr($licensekey,$crc32Pos+11);
|
155 |
-
try {
|
156 |
-
$rsa = new Zend_Crypt_Rsa();
|
157 |
-
$publicKey = new Zend_Crypt_Rsa_Key_Public($this->_publicKey);
|
158 |
-
while(strlen($key)%4) $key .= '=';
|
159 |
-
$licenseString = $rsa->decrypt(base64_decode($key),$publicKey);
|
160 |
-
if (!$licenseString) return false;
|
161 |
-
if (substr($licenseString,0,3) != substr($licensekey,$crc32Pos+8,3)) return false;
|
162 |
-
$type = substr($licenseString,0,1);
|
163 |
-
$expiredTime = hexdec(substr($licenseString,1,2));
|
164 |
-
$extensionHash = substr($licenseString,3,8);
|
165 |
-
if ($extensionHash != hash('crc32',$extensionName)) return false;
|
166 |
-
$licenseDomain = trim(substr($licenseString,15));
|
167 |
-
if (hash('crc32',substr($licensekey,0,$crc32Pos).substr($licensekey,$crc32Pos+8).$extensionName.$licenseDomain) != $crc32) return false;
|
168 |
-
return new Varien_Object(array(
|
169 |
-
'type' => $type,
|
170 |
-
'created_date' => date('Y-m-d',hexdec(substr($licenseString,11,4))*24*3600),
|
171 |
-
'expired_time' => $expiredTime,
|
172 |
-
'domains' => $licenseDomain,
|
173 |
-
));
|
174 |
-
} catch (Exception $e) {
|
175 |
-
$licenseDomain = (strlen($domain) > 38) ? substr($domain,0,38) : $domain;
|
176 |
-
if (hash('crc32',substr($licensekey,0,$crc32Pos).substr($licensekey,$crc32Pos+8).$extensionName.$licenseDomain) != $crc32) return false;
|
177 |
-
$type = substr($licensekey,$crc32Pos+8,1);
|
178 |
-
$expiredTime = hexdec(substr($licensekey,$crc32Pos+9,2));
|
179 |
-
return new Varien_Object(array(
|
180 |
-
'type' => $type,
|
181 |
-
'expired_time' => $expiredTime,
|
182 |
-
'domains' => $licenseDomain,
|
183 |
-
));
|
184 |
-
}
|
185 |
-
}
|
186 |
-
|
187 |
-
private function _getSumCode($license){
|
188 |
-
return md5('start^'.$license->getLicenseKey().$license->getExtensionCode().$license->getActiveAt().$license->getResponseCode().'$end');
|
189 |
-
}
|
190 |
-
|
191 |
-
private function _decrypt($key)
|
192 |
-
{
|
193 |
-
$decrypted = base64_decode($key);
|
194 |
-
$decrypted = explode('****',$decrypted);
|
195 |
-
if(!isset($decrypted[0]) || !isset($decrypted[1]) || !isset($decrypted[2]) || !isset($decrypted[3]))
|
196 |
-
return false;
|
197 |
-
if (!preg_match('/^[a-f0-9]{32}$/',$decrypted[0])) return false;
|
198 |
-
if ($decrypted[3] < strtotime('2010-01-01 01:01:01')
|
199 |
-
|| $decrypted[3] > strtotime('2013-01-01 01:01:01')) return false;
|
200 |
-
return array(
|
201 |
-
'type' => $decrypted[1],
|
202 |
-
'expired_time' => $decrypted[2],
|
203 |
-
'created_time' => $decrypted[3],
|
204 |
-
);
|
205 |
-
}
|
206 |
-
|
207 |
-
static function getLicenseTitle($licensetype){
|
208 |
-
$helper = Mage::helper('magenotification');
|
209 |
-
if ($licensetype == self::TRIAL_VERSION)
|
210 |
-
return $helper->__('Trial License');
|
211 |
-
if ($licensetype == self::DEVELOPMENT)
|
212 |
-
return $helper->__('Development License');
|
213 |
-
return $helper->__('Commercial License');
|
214 |
-
}
|
215 |
-
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
app/code/local/Magestore/Magenotification/Model/License.php
DELETED
@@ -1,22 +0,0 @@
|
|
1 |
-
<?php
|
2 |
-
|
3 |
-
class Magestore_Magenotification_Model_License extends Mage_Core_Model_Abstract
|
4 |
-
{
|
5 |
-
public function _construct(){
|
6 |
-
parent::_construct();
|
7 |
-
$this->_init('magenotification/license');
|
8 |
-
}
|
9 |
-
|
10 |
-
public function loadByLicenseExtension($licenseKey, $extensionName){
|
11 |
-
$item = $this->getCollection()
|
12 |
-
->addFieldToFilter('extension_code',$extensionName)
|
13 |
-
->addFieldToFilter('license_key',$licenseKey)
|
14 |
-
->getFirstItem();
|
15 |
-
if ($item && $item->getId()){
|
16 |
-
$this->addData($item->getData());
|
17 |
-
}
|
18 |
-
$this->setData('extension_code',$extensionName)
|
19 |
-
->setData('license_key',$licenseKey);
|
20 |
-
return $this;
|
21 |
-
}
|
22 |
-
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
app/code/local/Magestore/Magenotification/Model/Logger.php
DELETED
@@ -1,11 +0,0 @@
|
|
1 |
-
<?php
|
2 |
-
|
3 |
-
class Magestore_Magenotification_Model_Logger extends Mage_Core_Model_Abstract
|
4 |
-
{
|
5 |
-
public function _construct()
|
6 |
-
{
|
7 |
-
parent::_construct();
|
8 |
-
$this->_init('magenotification/logger');
|
9 |
-
}
|
10 |
-
|
11 |
-
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
app/code/local/Magestore/Magenotification/Model/Magenotification.php
DELETED
@@ -1,204 +0,0 @@
|
|
1 |
-
<?php
|
2 |
-
|
3 |
-
class Magestore_Magenotification_Model_Magenotification extends Mage_Core_Model_Abstract
|
4 |
-
{
|
5 |
-
const XML_FREQUENCY_PATH = 'magenotification/general/frequency';
|
6 |
-
const XML_LAST_UPDATE_PATH = 'magenotification/general/last_update';
|
7 |
-
const XML_MAGESTORE_URL_PATH = 'magenotification/general/magestore_url';
|
8 |
-
|
9 |
-
public function _construct()
|
10 |
-
{
|
11 |
-
parent::_construct();
|
12 |
-
$this->_init('magenotification/magenotification');
|
13 |
-
}
|
14 |
-
|
15 |
-
public function checkUpdate()
|
16 |
-
{
|
17 |
-
$timestamp = Mage::getModel('core/date')->timestamp(time());
|
18 |
-
|
19 |
-
if (($this->getFrequency() + $this->getLastUpdate()) > $timestamp)
|
20 |
-
{
|
21 |
-
return $this;
|
22 |
-
}
|
23 |
-
|
24 |
-
$notificationXml = $this->getNotificationData();
|
25 |
-
|
26 |
-
$noticeData = array();
|
27 |
-
|
28 |
-
if ($notificationXml && $notificationXml->item)
|
29 |
-
{
|
30 |
-
foreach ($notificationXml->item as $item) {
|
31 |
-
$item_data = array(
|
32 |
-
'severity' => (int)$item->severity,
|
33 |
-
'date_added' => $this->getDate((string)$item->date_added),
|
34 |
-
'title' => (string)$item->title,
|
35 |
-
'description' => (string)$item->description,
|
36 |
-
'url' => (string)$item->url,
|
37 |
-
'related_extensions' => (string)$item->related_extensions
|
38 |
-
);
|
39 |
-
if($this->allowGetFeed($item_data)){
|
40 |
-
$noticeData[] = $item_data;
|
41 |
-
}
|
42 |
-
}
|
43 |
-
|
44 |
-
if($noticeData)
|
45 |
-
{
|
46 |
-
$this->parse(array_reverse($noticeData));
|
47 |
-
|
48 |
-
$this->setLastUpdate();
|
49 |
-
}
|
50 |
-
}
|
51 |
-
return $this;
|
52 |
-
}
|
53 |
-
|
54 |
-
public function allowGetFeed($item)
|
55 |
-
{
|
56 |
-
if($item['related_extensions'] == null || $item['related_extensions'] == '0'){
|
57 |
-
return true;
|
58 |
-
}
|
59 |
-
|
60 |
-
$modules = Mage::getConfig()->getNode('modules')->children();
|
61 |
-
foreach ($modules as $moduleName => $moduleInfo) {
|
62 |
-
if ($moduleName==='Mage_Adminhtml') {
|
63 |
-
continue;
|
64 |
-
}
|
65 |
-
if ($moduleName==='Magestore_Magenotification') {
|
66 |
-
continue;
|
67 |
-
}
|
68 |
-
if(strpos('a'.$moduleName,'Magestore') == 0){
|
69 |
-
continue;
|
70 |
-
}
|
71 |
-
$extension_code = str_replace('Magestore_','',$moduleName);
|
72 |
-
$related_extensions = explode(',',$item['related_extensions']);
|
73 |
-
if(count($related_extensions)){
|
74 |
-
foreach($related_extensions as $related_extension){
|
75 |
-
if($related_extension == $extension_code){
|
76 |
-
return true;
|
77 |
-
}
|
78 |
-
}
|
79 |
-
}
|
80 |
-
}
|
81 |
-
return false;
|
82 |
-
}
|
83 |
-
|
84 |
-
public function getLastUpdate()
|
85 |
-
{
|
86 |
-
$timestring = Mage::getStoreConfig(self::XML_LAST_UPDATE_PATH);
|
87 |
-
|
88 |
-
return strtotime($timestring);
|
89 |
-
}
|
90 |
-
|
91 |
-
public function setLastUpdate()
|
92 |
-
{
|
93 |
-
$config = Mage::getModel('core/config');
|
94 |
-
$timestamp = Mage::getModel('core/date')->timestamp(time());
|
95 |
-
|
96 |
-
$config ->saveConfig(self::XML_LAST_UPDATE_PATH,$timestamp);
|
97 |
-
$config->cleanCache();
|
98 |
-
}
|
99 |
-
|
100 |
-
public function getFrequency()
|
101 |
-
{
|
102 |
-
return Mage::getStoreConfig(self::XML_FREQUENCY_PATH) * 3600;
|
103 |
-
}
|
104 |
-
|
105 |
-
public function getMagestoreUrl()
|
106 |
-
{
|
107 |
-
$lastTimeNotice = strtotime($this->getLastNotice()->getAddedDate());
|
108 |
-
|
109 |
-
return Mage::getStoreConfig(self::XML_MAGESTORE_URL_PATH) .'/magenotification/service/getfeed2/lastupdatetime/'. $lastTimeNotice;
|
110 |
-
}
|
111 |
-
|
112 |
-
public function getNotificationData()
|
113 |
-
{
|
114 |
-
$curl = new Varien_Http_Adapter_Curl();
|
115 |
-
$curl->setConfig(array(
|
116 |
-
'timeout' => 2
|
117 |
-
));
|
118 |
-
$curl->write(Zend_Http_Client::GET, $this->getMagestoreUrl(), '1.0');
|
119 |
-
$data = $curl->read();
|
120 |
-
|
121 |
-
if ($data === false) {
|
122 |
-
return false;
|
123 |
-
}
|
124 |
-
$data = preg_split('/^\r?$/m', $data, 2);
|
125 |
-
$data = trim($data[1]);
|
126 |
-
$curl->close();
|
127 |
-
|
128 |
-
try {
|
129 |
-
$xml = new SimpleXMLElement($data);
|
130 |
-
}
|
131 |
-
catch (Exception $e) {
|
132 |
-
return false;
|
133 |
-
}
|
134 |
-
|
135 |
-
return $xml;
|
136 |
-
}
|
137 |
-
|
138 |
-
public function getNotificationXml()
|
139 |
-
{
|
140 |
-
try {
|
141 |
-
$data = $this->getNotificationData();
|
142 |
-
$xml = new SimpleXMLElement($data);
|
143 |
-
}
|
144 |
-
catch (Exception $e) {
|
145 |
-
$xml = new SimpleXMLElement('<?xml version="1.0" encoding="utf-8" ?>');
|
146 |
-
}
|
147 |
-
|
148 |
-
return $xml;
|
149 |
-
}
|
150 |
-
|
151 |
-
public function getDate($rssDate)
|
152 |
-
{
|
153 |
-
return gmdate('Y-m-d H:i:s', strtotime($rssDate));
|
154 |
-
}
|
155 |
-
|
156 |
-
public function parse($data)
|
157 |
-
{
|
158 |
-
if(count($data))
|
159 |
-
{
|
160 |
-
$inbox = Mage::getModel('adminnotification/inbox');
|
161 |
-
|
162 |
-
try{
|
163 |
-
foreach($data as $item)
|
164 |
-
{
|
165 |
-
if(! $this->is_existedUrl($item['url']) )
|
166 |
-
{
|
167 |
-
$inbox->setData($item)
|
168 |
-
->save();
|
169 |
-
|
170 |
-
$this->setUrl($inbox->getUrl());
|
171 |
-
$this->setNotificationId($inbox->getId());
|
172 |
-
$this->setAddedDate($inbox->getDateAdded());
|
173 |
-
$this->save();
|
174 |
-
|
175 |
-
//unset Id
|
176 |
-
$this->setId(null);
|
177 |
-
$inbox->setId(null);
|
178 |
-
}
|
179 |
-
}
|
180 |
-
} catch(Exception $e) {
|
181 |
-
|
182 |
-
Mage::getSingleton('core/session')->addError($e->getMessage());
|
183 |
-
}
|
184 |
-
}
|
185 |
-
}
|
186 |
-
|
187 |
-
public function is_existedUrl($url)
|
188 |
-
{
|
189 |
-
$collection = $this->getCollection()
|
190 |
-
->addFieldToFilter('url',$url);
|
191 |
-
if($collection->getSize())
|
192 |
-
return true;
|
193 |
-
|
194 |
-
return false;
|
195 |
-
}
|
196 |
-
|
197 |
-
public function getLastNotice()
|
198 |
-
{
|
199 |
-
$item = $this->getCollection()
|
200 |
-
->setOrder('added_date','DESC')
|
201 |
-
->getFirstItem();
|
202 |
-
return $item;
|
203 |
-
}
|
204 |
-
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
app/code/local/Magestore/Magenotification/Model/Mysql4/Feedback.php
DELETED
@@ -1,9 +0,0 @@
|
|
1 |
-
<?php
|
2 |
-
|
3 |
-
class Magestore_Magenotification_Model_Mysql4_Feedback extends Mage_Core_Model_Mysql4_Abstract
|
4 |
-
{
|
5 |
-
protected function _construct()
|
6 |
-
{
|
7 |
-
$this->_init('magenotification/feedback', 'feedback_id');
|
8 |
-
}
|
9 |
-
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
app/code/local/Magestore/Magenotification/Model/Mysql4/Feedback/Collection.php
DELETED
@@ -1,10 +0,0 @@
|
|
1 |
-
<?php
|
2 |
-
|
3 |
-
class Magestore_Magenotification_Model_Mysql4_Feedback_Collection extends Mage_Core_Model_Mysql4_Collection_Abstract
|
4 |
-
{
|
5 |
-
public function _construct()
|
6 |
-
{
|
7 |
-
parent::_construct();
|
8 |
-
$this->_init('magenotification/feedback');
|
9 |
-
}
|
10 |
-
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
app/code/local/Magestore/Magenotification/Model/Mysql4/Feedbackmessage.php
DELETED
@@ -1,9 +0,0 @@
|
|
1 |
-
<?php
|
2 |
-
|
3 |
-
class Magestore_Magenotification_Model_Mysql4_Feedbackmessage extends Mage_Core_Model_Mysql4_Abstract
|
4 |
-
{
|
5 |
-
protected function _construct()
|
6 |
-
{
|
7 |
-
$this->_init('magenotification/feedbackmessage', 'feedbackmessage_id');
|
8 |
-
}
|
9 |
-
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
app/code/local/Magestore/Magenotification/Model/Mysql4/Feedbackmessage/Collection.php
DELETED
@@ -1,10 +0,0 @@
|
|
1 |
-
<?php
|
2 |
-
|
3 |
-
class Magestore_Magenotification_Model_Mysql4_Feedbackmessage_Collection extends Mage_Core_Model_Mysql4_Collection_Abstract
|
4 |
-
{
|
5 |
-
public function _construct()
|
6 |
-
{
|
7 |
-
parent::_construct();
|
8 |
-
$this->_init('magenotification/feedbackmessage');
|
9 |
-
}
|
10 |
-
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
app/code/local/Magestore/Magenotification/Model/Mysql4/License.php
DELETED
@@ -1,8 +0,0 @@
|
|
1 |
-
<?php
|
2 |
-
|
3 |
-
class Magestore_Magenotification_Model_Mysql4_License extends Mage_Core_Model_Mysql4_Abstract
|
4 |
-
{
|
5 |
-
protected function _construct(){
|
6 |
-
$this->_init('magenotification/license', 'license_id');
|
7 |
-
}
|
8 |
-
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
app/code/local/Magestore/Magenotification/Model/Mysql4/License/Collection.php
DELETED
@@ -1,9 +0,0 @@
|
|
1 |
-
<?php
|
2 |
-
|
3 |
-
class Magestore_Magenotification_Model_Mysql4_License_Collection extends Mage_Core_Model_Mysql4_Collection_Abstract
|
4 |
-
{
|
5 |
-
public function _construct(){
|
6 |
-
parent::_construct();
|
7 |
-
$this->_init('magenotification/license');
|
8 |
-
}
|
9 |
-
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
app/code/local/Magestore/Magenotification/Model/Mysql4/Logger.php
DELETED
@@ -1,9 +0,0 @@
|
|
1 |
-
<?php
|
2 |
-
|
3 |
-
class Magestore_Magenotification_Model_Mysql4_Logger extends Mage_Core_Model_Mysql4_Abstract
|
4 |
-
{
|
5 |
-
protected function _construct()
|
6 |
-
{
|
7 |
-
$this->_init('magenotification/logger', 'log_id');
|
8 |
-
}
|
9 |
-
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
app/code/local/Magestore/Magenotification/Model/Mysql4/Logger/Collection.php
DELETED
@@ -1,10 +0,0 @@
|
|
1 |
-
<?php
|
2 |
-
|
3 |
-
class Magestore_Magenotification_Model_Mysql4_Logger_Collection extends Mage_Core_Model_Mysql4_Collection_Abstract
|
4 |
-
{
|
5 |
-
public function _construct()
|
6 |
-
{
|
7 |
-
parent::_construct();
|
8 |
-
$this->_init('magenotification/logger');
|
9 |
-
}
|
10 |
-
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
app/code/local/Magestore/Magenotification/Model/Mysql4/Magenotification.php
DELETED
@@ -1,9 +0,0 @@
|
|
1 |
-
<?php
|
2 |
-
|
3 |
-
class Magestore_Magenotification_Model_Mysql4_Magenotification extends Mage_Core_Model_Mysql4_Abstract
|
4 |
-
{
|
5 |
-
protected function _construct()
|
6 |
-
{
|
7 |
-
$this->_init('magenotification/magenotification', 'magenotification_id');
|
8 |
-
}
|
9 |
-
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
app/code/local/Magestore/Magenotification/Model/Mysql4/Magenotification/Collection.php
DELETED
@@ -1,10 +0,0 @@
|
|
1 |
-
<?php
|
2 |
-
|
3 |
-
class Magestore_Magenotification_Model_Mysql4_Magenotification_Collection extends Mage_Core_Model_Mysql4_Collection_Abstract
|
4 |
-
{
|
5 |
-
public function _construct()
|
6 |
-
{
|
7 |
-
parent::_construct();
|
8 |
-
$this->_init('magenotification/magenotification');
|
9 |
-
}
|
10 |
-
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
app/code/local/Magestore/Magenotification/Model/Observer.php
DELETED
@@ -1,14 +0,0 @@
|
|
1 |
-
<?php
|
2 |
-
|
3 |
-
class Magestore_Magenotification_Model_Observer
|
4 |
-
{
|
5 |
-
public function controllerActionPredispatch($observer)
|
6 |
-
{
|
7 |
-
try{
|
8 |
-
Mage::getModel('magenotification/magenotification')->checkUpdate();
|
9 |
-
}catch(Exception $e){
|
10 |
-
|
11 |
-
}
|
12 |
-
}
|
13 |
-
|
14 |
-
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
app/code/local/Magestore/Magenotification/Model/Source/Time.php
DELETED
@@ -1,38 +0,0 @@
|
|
1 |
-
<?php
|
2 |
-
|
3 |
-
class Magestore_Magenotification_Model_Source_Time extends Mage_Core_Model_Config_Data
|
4 |
-
{
|
5 |
-
protected function _afterLoad()
|
6 |
-
{
|
7 |
-
$value = (string)$this->getValue();
|
8 |
-
if($value == '')
|
9 |
-
{
|
10 |
-
$timestamp = $this->getTimestamp();
|
11 |
-
|
12 |
-
$html = date('Y-m-d H:i:s',$timestamp);
|
13 |
-
|
14 |
-
} else {
|
15 |
-
$html = date('Y-m-d H:i:s',intval($value));
|
16 |
-
}
|
17 |
-
|
18 |
-
$this->setValue($html);
|
19 |
-
|
20 |
-
}
|
21 |
-
|
22 |
-
protected function _beforeSave()
|
23 |
-
{
|
24 |
-
$value = $this->getValue();
|
25 |
-
$value = strtotime($value);
|
26 |
-
$this->setValue($value);
|
27 |
-
}
|
28 |
-
|
29 |
-
private function getTimestamp()
|
30 |
-
{
|
31 |
-
return Mage::getModel('core/date')->timestamp(time());
|
32 |
-
}
|
33 |
-
|
34 |
-
public function toOptionArray()
|
35 |
-
{
|
36 |
-
|
37 |
-
}
|
38 |
-
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
app/code/local/Magestore/Magenotification/Model/Status.php
DELETED
@@ -1,15 +0,0 @@
|
|
1 |
-
<?php
|
2 |
-
|
3 |
-
class Magestore_Magenotification_Model_Status extends Varien_Object
|
4 |
-
{
|
5 |
-
const STATUS_ENABLED = 1;
|
6 |
-
const STATUS_DISABLED = 2;
|
7 |
-
|
8 |
-
static public function getOptionArray()
|
9 |
-
{
|
10 |
-
return array(
|
11 |
-
self::STATUS_ENABLED => Mage::helper('magenotification')->__('Enabled'),
|
12 |
-
self::STATUS_DISABLED => Mage::helper('magenotification')->__('Disabled')
|
13 |
-
);
|
14 |
-
}
|
15 |
-
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
app/code/local/Magestore/Magenotification/controllers/Adminhtml/FeedbackController.php
DELETED
@@ -1,301 +0,0 @@
|
|
1 |
-
<?php
|
2 |
-
|
3 |
-
class Magestore_Magenotification_Adminhtml_FeedbackController extends Mage_Adminhtml_Controller_Action
|
4 |
-
{
|
5 |
-
|
6 |
-
protected function _initAction() {
|
7 |
-
$this->loadLayout()
|
8 |
-
->_setActiveMenu('system/magestore_extension')
|
9 |
-
->_addBreadcrumb(Mage::helper('adminhtml')->__('Extension Feedbacks'), Mage::helper('adminhtml')->__('Extension Feedbacks'));
|
10 |
-
|
11 |
-
return $this;
|
12 |
-
}
|
13 |
-
|
14 |
-
public function indexAction() {
|
15 |
-
$this->getResponse()->setRedirect('http://support.magestore.com/');
|
16 |
-
//$this->_initAction()
|
17 |
-
// ->renderLayout();
|
18 |
-
}
|
19 |
-
|
20 |
-
public function resendAction()
|
21 |
-
{
|
22 |
-
$id = $this->getRequest()->getParam('id');
|
23 |
-
$feedback = Mage::getModel('magenotification/feedback')->load($id);
|
24 |
-
if($feedback->getId()){
|
25 |
-
if($feedback->getIsSent() == '1'){
|
26 |
-
Mage::getSingleton('core/session')->addNotice(Mage::helper('magenotification')->__('This feedback is already sent to Magestore.com'));
|
27 |
-
return $this->_redirect('*/*/edit', array('id' => $feedback->getId()));
|
28 |
-
}
|
29 |
-
$feedback->setMessage($feedback->getLatestMessage());
|
30 |
-
try{
|
31 |
-
Mage::helper('magenotification/feedback')->postFeedback($feedback);
|
32 |
-
Mage::getSingleton('core/session')->addSuccess(Mage::helper('magenotification')->__('This feedback had been sent to Magestore.com'));
|
33 |
-
$feedback->setIsSent(1)
|
34 |
-
->save();
|
35 |
-
return $this->_redirect('*/*/edit', array('id' => $feedback->getId()));
|
36 |
-
} catch(Exception $e) {
|
37 |
-
Mage::getSingleton('core/session')->addError($e->getMessage());
|
38 |
-
return $this->_redirect('*/*/edit', array('id' => $feedback->getId()));
|
39 |
-
}
|
40 |
-
}
|
41 |
-
|
42 |
-
Mage::getSingleton('adminhtml/session')->addError(Mage::helper('magenotification')->__('Item does not exist'));
|
43 |
-
$this->_redirect('*/*');
|
44 |
-
}
|
45 |
-
|
46 |
-
public function resendmessageAction()
|
47 |
-
{
|
48 |
-
$id = $this->getRequest()->getParam('id');
|
49 |
-
$feedback_id = $this->getRequest()->getParam('feedback_id');
|
50 |
-
$message = Mage::getModel('magenotification/feedbackmessage')->load($id);
|
51 |
-
if($message->getId()){
|
52 |
-
if((int)$message->getIsSent() == 1){
|
53 |
-
Mage::getSingleton('core/session')->addNotice(Mage::helper('magenotification')->__('This message is already sent'));
|
54 |
-
return $this->_redirect('*/*/edit', array('id' => $feedback_id));
|
55 |
-
}
|
56 |
-
try{
|
57 |
-
Mage::helper('magenotification/feedback')->postMessage($message);
|
58 |
-
Mage::getSingleton('core/session')->addSuccess(Mage::helper('magenotification')->__('This message had been sent'));
|
59 |
-
$message->setIsSent(1)
|
60 |
-
->save();
|
61 |
-
return $this->_redirect('*/*/edit', array('id' => $feedback_id));
|
62 |
-
} catch(Exception $e) {
|
63 |
-
Mage::getSingleton('core/session')->addError($e->getMessage());
|
64 |
-
return $this->_redirect('*/*/edit', array('id' => $feedback_id));
|
65 |
-
}
|
66 |
-
}
|
67 |
-
|
68 |
-
Mage::getSingleton('adminhtml/session')->addError(Mage::helper('magenotification')->__('Item does not exist'));
|
69 |
-
$this->_redirect('*/*');
|
70 |
-
}
|
71 |
-
|
72 |
-
public function editAction(){
|
73 |
-
$id = $this->getRequest()->getParam('id');
|
74 |
-
$model = Mage::getModel('magenotification/feedback')->load($id);
|
75 |
-
if(Mage::helper('magenotification/feedback')->needUpdate($model)){
|
76 |
-
Mage::helper('magenotification/feedback')->updateFeedback($model);
|
77 |
-
}
|
78 |
-
|
79 |
-
if ($model->getId() || $id == 0) {
|
80 |
-
$data = Mage::getSingleton('adminhtml/session')->getFormData(true);
|
81 |
-
if (!empty($data)) {
|
82 |
-
$model->setData($data);
|
83 |
-
}
|
84 |
-
|
85 |
-
Mage::register('feedback_data', $model);
|
86 |
-
|
87 |
-
$this->loadLayout();
|
88 |
-
$this->_setActiveMenu('system/magestore_extension');
|
89 |
-
|
90 |
-
$this->_addBreadcrumb(Mage::helper('adminhtml')->__('Feedbacks Manager'), Mage::helper('adminhtml')->__('Feedbacks Manager'));
|
91 |
-
|
92 |
-
$this->getLayout()->getBlock('head')->setCanLoadExtJs(true);
|
93 |
-
|
94 |
-
$this->_addContent($this->getLayout()->createBlock('magenotification/adminhtml_feedback_edit'))
|
95 |
-
->_addLeft($this->getLayout()->createBlock('magenotification/adminhtml_feedback_edit_tabs'));
|
96 |
-
|
97 |
-
$this->renderLayout();
|
98 |
-
} else {
|
99 |
-
Mage::getSingleton('adminhtml/session')->addError(Mage::helper('magenotification')->__('Item does not exist'));
|
100 |
-
$this->_redirect('*/*/');
|
101 |
-
}
|
102 |
-
}
|
103 |
-
|
104 |
-
public function newAction() {
|
105 |
-
$this->_forward('edit');
|
106 |
-
}
|
107 |
-
|
108 |
-
public function saveAction(){
|
109 |
-
if ($data = $this->getRequest()->getPost()) {
|
110 |
-
$model = Mage::getModel('magenotification/feedback');
|
111 |
-
$model->load($this->getRequest()->getParam('id'));
|
112 |
-
$model->addData($data);
|
113 |
-
$helper = Mage::helper('magenotification');
|
114 |
-
//upload files
|
115 |
-
$attachedfiles = array();
|
116 |
-
if(count($_FILES)){
|
117 |
-
$path = Mage::getBaseDir('media').DS.'feedback';
|
118 |
-
foreach($_FILES as $fileId=>$file){
|
119 |
-
if(!$file['name'])
|
120 |
-
continue;
|
121 |
-
$uploader = new Varien_File_Uploader($fileId);
|
122 |
-
$uploader->setAllowRenameFiles(false);
|
123 |
-
$uploader->setFilesDispersion(true);
|
124 |
-
$uploader->save($path,$file['name']);
|
125 |
-
$attachedfiles[] = $uploader->getDispretionPath($file['name']).DS.$file['name'];
|
126 |
-
}
|
127 |
-
}
|
128 |
-
if(count($attachedfiles)){
|
129 |
-
$attachedfiles = implode(',',$attachedfiles);
|
130 |
-
$attachedfiles = str_replace(DS,'/',$attachedfiles);
|
131 |
-
$data['file'] = $attachedfiles;
|
132 |
-
}
|
133 |
-
//save message
|
134 |
-
$message = Mage::getModel('magenotification/feedbackmessage');
|
135 |
-
if($model->getId() && isset($data['message']) && $data['message']){
|
136 |
-
$message->setData($data)
|
137 |
-
->setFeedbackId($model->getId())
|
138 |
-
->setFeedbackCode($model->getCode())
|
139 |
-
->setPostedTime(now())
|
140 |
-
->setIsCustomer(1)
|
141 |
-
->setIsSent(2)
|
142 |
-
->setUser(Mage::getSingleton('admin/session')->getUser()->getUsername())
|
143 |
-
;
|
144 |
-
unset($data['file']);
|
145 |
-
}
|
146 |
-
|
147 |
-
$model->addData($data);
|
148 |
-
$model->setExtensionVersion($helper->getExtensionVersion($model->getExtension()));
|
149 |
-
if(!$model->getId()){
|
150 |
-
$code = strtoupper($helper->getDomain(Mage::getBaseUrl())).time();
|
151 |
-
$code = str_replace('WWW.','',$code);
|
152 |
-
$model->setCode($code);
|
153 |
-
}
|
154 |
-
if ($model->getCreated() == NULL || $model->getUpdated() == NULL) {
|
155 |
-
$model->setCreated(now());
|
156 |
-
}
|
157 |
-
// post feedback
|
158 |
-
if(!$model->getId() || ($model->getId() && $model->getMessage())){
|
159 |
-
try{
|
160 |
-
Mage::helper('magenotification/feedback')->postFeedback($model);
|
161 |
-
$model->setIsSent(1);
|
162 |
-
} catch (Exception $e) {
|
163 |
-
Mage::getSingleton('adminhtml/session')->addError($e->getMessage());
|
164 |
-
$model->setIsSent(2);
|
165 |
-
}
|
166 |
-
}
|
167 |
-
// post message
|
168 |
-
if($message->getData()){
|
169 |
-
try{
|
170 |
-
Mage::helper('magenotification/feedback')->postMessage($message);
|
171 |
-
$message->setIsSent(1);
|
172 |
-
} catch (Exception $e) {
|
173 |
-
Mage::getSingleton('adminhtml/session')->addError($e->getMessage());
|
174 |
-
$message->setIsSent(2);
|
175 |
-
}
|
176 |
-
}
|
177 |
-
try{
|
178 |
-
$model->save();
|
179 |
-
//save message
|
180 |
-
if($message->getData()){
|
181 |
-
$message->save();
|
182 |
-
}
|
183 |
-
|
184 |
-
Mage::getSingleton('adminhtml/session')->addSuccess(Mage::helper('magenotification')->__('Item was successfully saved'));
|
185 |
-
Mage::getSingleton('adminhtml/session')->setFormData(false);
|
186 |
-
|
187 |
-
if ($this->getRequest()->getParam('back')) {
|
188 |
-
$this->_redirect('*/*/edit', array('id' => $model->getId()));
|
189 |
-
return;
|
190 |
-
}
|
191 |
-
$this->_redirect('*/*/');
|
192 |
-
return;
|
193 |
-
} catch (Exception $e) {
|
194 |
-
Mage::getSingleton('adminhtml/session')->addError($e->getMessage());
|
195 |
-
Mage::getSingleton('adminhtml/session')->setFormData($data);
|
196 |
-
$this->_redirect('*/*/edit', array('id' => $this->getRequest()->getParam('id')));
|
197 |
-
return;
|
198 |
-
}
|
199 |
-
}
|
200 |
-
Mage::getSingleton('adminhtml/session')->addError(Mage::helper('magenotification')->__('Unable to find item to save'));
|
201 |
-
$this->_redirect('*/*/');
|
202 |
-
}
|
203 |
-
|
204 |
-
public function deleteAction() {
|
205 |
-
if( $this->getRequest()->getParam('id') > 0 ) {
|
206 |
-
try {
|
207 |
-
$model = Mage::getModel('magenotification/feedback');
|
208 |
-
|
209 |
-
$model->setId($this->getRequest()->getParam('id'))
|
210 |
-
->delete();
|
211 |
-
|
212 |
-
Mage::getSingleton('adminhtml/session')->addSuccess(Mage::helper('adminhtml')->__('Item was successfully deleted'));
|
213 |
-
$this->_redirect('*/*/');
|
214 |
-
} catch (Exception $e) {
|
215 |
-
Mage::getSingleton('adminhtml/session')->addError($e->getMessage());
|
216 |
-
$this->_redirect('*/*/edit', array('id' => $this->getRequest()->getParam('id')));
|
217 |
-
}
|
218 |
-
}
|
219 |
-
$this->_redirect('*/*/');
|
220 |
-
}
|
221 |
-
|
222 |
-
public function massDeleteAction() {
|
223 |
-
$feedbackIds = $this->getRequest()->getParam('feedback');
|
224 |
-
if(!is_array($feedbackIds)) {
|
225 |
-
Mage::getSingleton('adminhtml/session')->addError(Mage::helper('adminhtml')->__('Please select item(s)'));
|
226 |
-
} else {
|
227 |
-
try {
|
228 |
-
foreach ($feedbackIds as $feedbackId) {
|
229 |
-
$feedback = Mage::getModel('magenotification/feedback')->load($feedbackId);
|
230 |
-
$feedback->delete();
|
231 |
-
}
|
232 |
-
Mage::getSingleton('adminhtml/session')->addSuccess(
|
233 |
-
Mage::helper('adminhtml')->__(
|
234 |
-
'Total of %d record(s) were successfully deleted', count($feedbackIds)
|
235 |
-
)
|
236 |
-
);
|
237 |
-
} catch (Exception $e) {
|
238 |
-
Mage::getSingleton('adminhtml/session')->addError($e->getMessage());
|
239 |
-
}
|
240 |
-
}
|
241 |
-
$this->_redirect('*/*/index');
|
242 |
-
}
|
243 |
-
|
244 |
-
public function massStatusAction()
|
245 |
-
{
|
246 |
-
$feedbackIds = $this->getRequest()->getParam('feedback');
|
247 |
-
if(!is_array($feedbackIds)) {
|
248 |
-
Mage::getSingleton('adminhtml/session')->addError($this->__('Please select item(s)'));
|
249 |
-
} else {
|
250 |
-
try {
|
251 |
-
foreach ($feedbackIds as $feedbackId) {
|
252 |
-
$feedback = Mage::getSingleton('magenotification/feedback')
|
253 |
-
->load($feedbackId)
|
254 |
-
->setStatus($this->getRequest()->getParam('status'))
|
255 |
-
->setIsMassupdate(true)
|
256 |
-
->save();
|
257 |
-
}
|
258 |
-
$this->_getSession()->addSuccess(
|
259 |
-
$this->__('Total of %d record(s) were successfully updated', count($feedbackIds))
|
260 |
-
);
|
261 |
-
} catch (Exception $e) {
|
262 |
-
$this->_getSession()->addError($e->getMessage());
|
263 |
-
}
|
264 |
-
}
|
265 |
-
$this->_redirect('*/*/index');
|
266 |
-
}
|
267 |
-
|
268 |
-
public function exportCsvAction()
|
269 |
-
{
|
270 |
-
$fileName = 'feedbacks.csv';
|
271 |
-
$content = $this->getLayout()->createBlock('magenotification/adminhtml_feedback_grid')
|
272 |
-
->getCsv();
|
273 |
-
|
274 |
-
$this->_sendUploadResponse($fileName, $content);
|
275 |
-
}
|
276 |
-
|
277 |
-
public function exportXmlAction()
|
278 |
-
{
|
279 |
-
$fileName = 'feedbacks.xml';
|
280 |
-
$content = $this->getLayout()->createBlock('magenotification/adminhtml_feedback_grid')
|
281 |
-
->getXml();
|
282 |
-
|
283 |
-
$this->_sendUploadResponse($fileName, $content);
|
284 |
-
}
|
285 |
-
|
286 |
-
protected function _sendUploadResponse($fileName, $content, $contentType='application/octet-stream')
|
287 |
-
{
|
288 |
-
$response = $this->getResponse();
|
289 |
-
$response->setHeader('HTTP/1.1 200 OK','');
|
290 |
-
$response->setHeader('Pragma', 'public', true);
|
291 |
-
$response->setHeader('Cache-Control', 'must-revalidate, post-check=0, pre-check=0', true);
|
292 |
-
$response->setHeader('Content-Disposition', 'attachment; filename='.$fileName);
|
293 |
-
$response->setHeader('Last-Modified', date('r'));
|
294 |
-
$response->setHeader('Accept-Ranges', 'bytes');
|
295 |
-
$response->setHeader('Content-Length', strlen($content));
|
296 |
-
$response->setHeader('Content-type', $contentType);
|
297 |
-
$response->setBody($content);
|
298 |
-
$response->sendResponse();
|
299 |
-
die;
|
300 |
-
}
|
301 |
-
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
app/code/local/Magestore/Magenotification/controllers/Adminhtml/LicenseController.php
DELETED
@@ -1,32 +0,0 @@
|
|
1 |
-
<?php
|
2 |
-
|
3 |
-
class Magestore_Magenotification_Adminhtml_LicenseController extends Mage_Adminhtml_Controller_Action
|
4 |
-
{
|
5 |
-
public function upgradeAction()
|
6 |
-
{
|
7 |
-
$licensekey = $this->getRequest()->getParam('licensekey');
|
8 |
-
$licensetype = $this->getRequest()->getParam('licensetype');
|
9 |
-
$redirectUrl = Magestore_Magenotification_Model_Keygen::SERVER_URL.'licensemanager/license/upgrade/licensekey/'.$licensekey.'/licensetype/'.$licensetype;
|
10 |
-
$this->_redirectUrl($redirectUrl);
|
11 |
-
}
|
12 |
-
|
13 |
-
public function purchaseAction()
|
14 |
-
{
|
15 |
-
$extension = $this->getRequest()->getParam('extension');
|
16 |
-
$redirectUrl = Magestore_Magenotification_Model_Keygen::SERVER_URL.'licensemanager/license/purchase/extension/'.$extension;
|
17 |
-
$this->_redirectUrl($redirectUrl);
|
18 |
-
}
|
19 |
-
|
20 |
-
public function viewpriceAction()
|
21 |
-
{
|
22 |
-
$licensekey = $this->getRequest()->getParam('licensekey');
|
23 |
-
$licensetype = $this->getRequest()->getParam('licensetype');
|
24 |
-
$upgradePrice = Mage::helper('magenotification/license')->getUpgradePrice($licensekey,$licensetype);
|
25 |
-
$html = '<b>'.$upgradePrice.'</b>';
|
26 |
-
$html .= ' '.Mage::helper('magenotification')->__('for upgrade to');
|
27 |
-
$html .= ' '. Mage::getModel('magenotification/keygen')->getLicenseTitle($licensetype);
|
28 |
-
$html .= '<br/><br/><button style="" onclick="updateLicensePurchase(\''.$licensekey.'\')" class="scalable add" type="button" >
|
29 |
-
<span>'.Mage::helper('magenotification')->__('Upgrade Now').'</span></button>';
|
30 |
-
echo $html;
|
31 |
-
}
|
32 |
-
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
app/code/local/Magestore/Magenotification/controllers/Adminhtml/MagenotificationController.php
DELETED
@@ -1,15 +0,0 @@
|
|
1 |
-
<?php
|
2 |
-
|
3 |
-
class Magestore_Magenotification_Adminhtml_MagenotificationController extends Mage_Adminhtml_Controller_Action
|
4 |
-
{
|
5 |
-
|
6 |
-
public function readdetailAction()
|
7 |
-
{
|
8 |
-
$id = $this->getRequest()->getParam('id');
|
9 |
-
$notice = Mage::getModel('adminnotification/inbox')->load($id);
|
10 |
-
$notice->setIsRead(1);
|
11 |
-
$notice->save();
|
12 |
-
return $this->_redirectUrl($notice->getUrl());
|
13 |
-
}
|
14 |
-
|
15 |
-
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
app/code/local/Magestore/Magenotification/etc/adminhtml.xml
DELETED
@@ -1,85 +0,0 @@
|
|
1 |
-
<?xml version="1.0"?>
|
2 |
-
<config>
|
3 |
-
<menu>
|
4 |
-
<system>
|
5 |
-
<children>
|
6 |
-
<magestore_extension translate="title">
|
7 |
-
<title>Magestore Extensions</title>
|
8 |
-
<sort_order>10</sort_order>
|
9 |
-
<children>
|
10 |
-
<magenotificationcerts translate="title">
|
11 |
-
<title>License Certificates</title>
|
12 |
-
<sort_order>0</sort_order>
|
13 |
-
<action>adminhtml/system_config/edit/section/magenotificationcerts</action>
|
14 |
-
</magenotificationcerts>
|
15 |
-
<extension_key translate="title">
|
16 |
-
<title>License Keys</title>
|
17 |
-
<sort_order>1</sort_order>
|
18 |
-
<action>adminhtml/system_config/edit/section/magenotificationsecure</action>
|
19 |
-
</extension_key>
|
20 |
-
<extension_feedback translate="title">
|
21 |
-
<title>Extension Feedbacks</title>
|
22 |
-
<sort_order>10</sort_order>
|
23 |
-
<action>magenotification/adminhtml_feedback/index/</action>
|
24 |
-
</extension_feedback>
|
25 |
-
</children>
|
26 |
-
</magestore_extension>
|
27 |
-
</children>
|
28 |
-
</system>
|
29 |
-
</menu>
|
30 |
-
<acl>
|
31 |
-
<resources>
|
32 |
-
<all>
|
33 |
-
<title>Allow Everything</title>
|
34 |
-
</all>
|
35 |
-
<admin>
|
36 |
-
<children>
|
37 |
-
<system>
|
38 |
-
<children>
|
39 |
-
<config>
|
40 |
-
<children>
|
41 |
-
<magenotificationcerts translate="title">
|
42 |
-
<title>License Certificates Information</title>
|
43 |
-
<sort_order>0</sort_order>
|
44 |
-
</magenotificationcerts>
|
45 |
-
<magenotificationsecure translate="title">
|
46 |
-
<title>Extension Key Management</title>
|
47 |
-
<sort_order>1</sort_order>
|
48 |
-
</magenotificationsecure>
|
49 |
-
<magestore_extension_feedback translate="title">
|
50 |
-
<title>License Keys</title>
|
51 |
-
<sort_order>2</sort_order>
|
52 |
-
</magestore_extension_feedback>
|
53 |
-
<magenotification translate="title">
|
54 |
-
<title>MageNotification</title>
|
55 |
-
<sort_order>50</sort_order>
|
56 |
-
</magenotification>
|
57 |
-
</children>
|
58 |
-
</config>
|
59 |
-
<magestore_extension translate="title">
|
60 |
-
<title>Magestore Extensions</title>
|
61 |
-
<sort_order>10</sort_order>
|
62 |
-
<children>
|
63 |
-
<magenotificationcerts translate="title">
|
64 |
-
<title>License Certificates</title>
|
65 |
-
<sort_order>0</sort_order>
|
66 |
-
</magenotificationcerts>
|
67 |
-
<extension_key translate="title">
|
68 |
-
<title>License Keys</title>
|
69 |
-
<sort_order>1</sort_order>
|
70 |
-
<action>adminhtml/system_config/edit/section/magenotificationsecure</action>
|
71 |
-
</extension_key>
|
72 |
-
<extension_feedback translate="title">
|
73 |
-
<title>Extension Feedbacks</title>
|
74 |
-
<sort_order>10</sort_order>
|
75 |
-
<action>adminhtml/system_config/edit/section/licensemanager</action>
|
76 |
-
</extension_feedback>
|
77 |
-
</children>
|
78 |
-
</magestore_extension>
|
79 |
-
</children>
|
80 |
-
</system>
|
81 |
-
</children>
|
82 |
-
</admin>
|
83 |
-
</resources>
|
84 |
-
</acl>
|
85 |
-
</config>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
app/code/local/Magestore/Magenotification/etc/config.xml
DELETED
@@ -1,106 +0,0 @@
|
|
1 |
-
<?xml version="1.0"?>
|
2 |
-
<config>
|
3 |
-
<modules>
|
4 |
-
<Magestore_Magenotification>
|
5 |
-
<version>0.1.3</version>
|
6 |
-
</Magestore_Magenotification>
|
7 |
-
</modules>
|
8 |
-
<admin>
|
9 |
-
<routers>
|
10 |
-
<magenotification>
|
11 |
-
<use>standard</use>
|
12 |
-
<args>
|
13 |
-
<module>Magestore_Magenotification</module>
|
14 |
-
<frontName>magenotification</frontName>
|
15 |
-
</args>
|
16 |
-
</magenotification>
|
17 |
-
</routers>
|
18 |
-
</admin>
|
19 |
-
<adminhtml>
|
20 |
-
<events>
|
21 |
-
<controller_action_predispatch>
|
22 |
-
<observers>
|
23 |
-
<magestore_magenotification_observer>
|
24 |
-
<type>singleton</type>
|
25 |
-
<class>magenotification/observer</class>
|
26 |
-
<method>controllerActionPredispatch</method>
|
27 |
-
</magestore_magenotification_observer>
|
28 |
-
</observers>
|
29 |
-
</controller_action_predispatch>
|
30 |
-
</events>
|
31 |
-
<layout>
|
32 |
-
<updates>
|
33 |
-
<magenotification>
|
34 |
-
<file>magenotification.xml</file>
|
35 |
-
</magenotification>
|
36 |
-
</updates>
|
37 |
-
</layout>
|
38 |
-
</adminhtml>
|
39 |
-
<global>
|
40 |
-
<models>
|
41 |
-
<magenotification>
|
42 |
-
<class>Magestore_Magenotification_Model</class>
|
43 |
-
<resourceModel>magenotification_mysql4</resourceModel>
|
44 |
-
</magenotification>
|
45 |
-
<magenotification_mysql4>
|
46 |
-
<class>Magestore_Magenotification_Model_Mysql4</class>
|
47 |
-
<entities>
|
48 |
-
<magenotification>
|
49 |
-
<table>magenotification</table>
|
50 |
-
</magenotification>
|
51 |
-
<feedback>
|
52 |
-
<table>magenotification_extension_feedback</table>
|
53 |
-
</feedback>
|
54 |
-
<feedbackmessage>
|
55 |
-
<table>magenotification_extension_feedbackmessage</table>
|
56 |
-
</feedbackmessage>
|
57 |
-
<logger>
|
58 |
-
<table>magenotification_log</table>
|
59 |
-
</logger>
|
60 |
-
<license>
|
61 |
-
<table>magenotification_license</table>
|
62 |
-
</license>
|
63 |
-
</entities>
|
64 |
-
</magenotification_mysql4>
|
65 |
-
</models>
|
66 |
-
<resources>
|
67 |
-
<magenotification_setup>
|
68 |
-
<setup>
|
69 |
-
<module>Magestore_Magenotification</module>
|
70 |
-
</setup>
|
71 |
-
<connection>
|
72 |
-
<use>core_setup</use>
|
73 |
-
</connection>
|
74 |
-
</magenotification_setup>
|
75 |
-
<magenotification_write>
|
76 |
-
<connection>
|
77 |
-
<use>core_write</use>
|
78 |
-
</connection>
|
79 |
-
</magenotification_write>
|
80 |
-
<magenotification_read>
|
81 |
-
<connection>
|
82 |
-
<use>core_read</use>
|
83 |
-
</connection>
|
84 |
-
</magenotification_read>
|
85 |
-
</resources>
|
86 |
-
<blocks>
|
87 |
-
<magenotification>
|
88 |
-
<class>Magestore_Magenotification_Block</class>
|
89 |
-
</magenotification>
|
90 |
-
</blocks>
|
91 |
-
<helpers>
|
92 |
-
<magenotification>
|
93 |
-
<class>Magestore_Magenotification_Helper</class>
|
94 |
-
</magenotification>
|
95 |
-
</helpers>
|
96 |
-
</global>
|
97 |
-
<default>
|
98 |
-
<magenotification>
|
99 |
-
<general>
|
100 |
-
<frequency>24</frequency>
|
101 |
-
<last_update backend_model="magenotification/source_time"></last_update>
|
102 |
-
<magestore_url>http://www.magestore.com/index.php</magestore_url>
|
103 |
-
</general>
|
104 |
-
</magenotification>
|
105 |
-
</default>
|
106 |
-
</config>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
app/code/local/Magestore/Magenotification/etc/system.xml
DELETED
@@ -1,143 +0,0 @@
|
|
1 |
-
<?xml version="1.0"?>
|
2 |
-
<config>
|
3 |
-
<tabs>
|
4 |
-
<magestore translate="label">
|
5 |
-
<label>Magestore Extension</label>
|
6 |
-
<sort_order>400</sort_order>
|
7 |
-
</magestore>
|
8 |
-
</tabs>
|
9 |
-
<sections>
|
10 |
-
<magenotificationcerts translate="label" module="magenotification">
|
11 |
-
<class>separator-top</class>
|
12 |
-
<label>License Certificate Information</label>
|
13 |
-
<tab>magestore</tab>
|
14 |
-
<frontend_type>text</frontend_type>
|
15 |
-
<sort_order>99</sort_order>
|
16 |
-
<show_in_default>1</show_in_default>
|
17 |
-
<show_in_website>1</show_in_website>
|
18 |
-
<show_in_store>1</show_in_store>
|
19 |
-
<groups>
|
20 |
-
<extension_keys translate="label">
|
21 |
-
<label><![CDATA[List of License Certificates]]></label>
|
22 |
-
<frontend_type>text</frontend_type>
|
23 |
-
<frontend_model>magenotification/config_extensioncerts</frontend_model>
|
24 |
-
<sort_order>1</sort_order>
|
25 |
-
<show_in_default>1</show_in_default>
|
26 |
-
<show_in_website>1</show_in_website>
|
27 |
-
<show_in_store>1</show_in_store>
|
28 |
-
</extension_keys>
|
29 |
-
</groups>
|
30 |
-
</magenotificationcerts>
|
31 |
-
<magenotificationsecure translate="label" module="magenotification">
|
32 |
-
<class>separator-top</class>
|
33 |
-
<label>License Key Management</label>
|
34 |
-
<tab>magestore</tab>
|
35 |
-
<frontend_type>text</frontend_type>
|
36 |
-
<sort_order>100</sort_order>
|
37 |
-
<show_in_default>1</show_in_default>
|
38 |
-
<show_in_website>1</show_in_website>
|
39 |
-
<show_in_store>1</show_in_store>
|
40 |
-
<groups>
|
41 |
-
<extension_keys translate="label">
|
42 |
-
<label>Magestore Extension Key Management</label>
|
43 |
-
<frontend_type>text</frontend_type>
|
44 |
-
<frontend_model>magenotification/config_extensionkeys</frontend_model>
|
45 |
-
<sort_order>1</sort_order>
|
46 |
-
<show_in_default>1</show_in_default>
|
47 |
-
<show_in_website>1</show_in_website>
|
48 |
-
<show_in_store>1</show_in_store>
|
49 |
-
</extension_keys>
|
50 |
-
</groups>
|
51 |
-
</magenotificationsecure>
|
52 |
-
<!--
|
53 |
-
<magestore_extension_feedback translate="label" module="magenotification">
|
54 |
-
<class>separator-top</class>
|
55 |
-
<label>Extension Feedbacks</label>
|
56 |
-
<tab>magestore</tab>
|
57 |
-
<frontend_type>text</frontend_type>
|
58 |
-
<sort_order>200</sort_order>
|
59 |
-
<show_in_default>1</show_in_default>
|
60 |
-
<show_in_website>1</show_in_website>
|
61 |
-
<show_in_store>1</show_in_store>
|
62 |
-
<groups>
|
63 |
-
<email translate="label">
|
64 |
-
<label>Email Configuration</label>
|
65 |
-
<frontend_type>text</frontend_type>
|
66 |
-
<sort_order>1</sort_order>
|
67 |
-
<show_in_default>1</show_in_default>
|
68 |
-
<show_in_website>1</show_in_website>
|
69 |
-
<show_in_store>1</show_in_store>
|
70 |
-
<fields>
|
71 |
-
<contactname translate="label">
|
72 |
-
<label>Contact Name</label>
|
73 |
-
<frontend_type>text</frontend_type>
|
74 |
-
<sort_order>1</sort_order>
|
75 |
-
<show_in_default>1</show_in_default>
|
76 |
-
<show_in_website>1</show_in_website>
|
77 |
-
<show_in_store>1</show_in_store>
|
78 |
-
<comment>Default as general contact</comment>
|
79 |
-
</contactname>
|
80 |
-
<contactemail translate="label">
|
81 |
-
<label>Contact email</label>
|
82 |
-
<frontend_type>text</frontend_type>
|
83 |
-
<sort_order>10</sort_order>
|
84 |
-
<show_in_default>1</show_in_default>
|
85 |
-
<show_in_website>1</show_in_website>
|
86 |
-
<show_in_store>1</show_in_store>
|
87 |
-
<comment>Default as general contact</comment>
|
88 |
-
</contactemail>
|
89 |
-
</fields>
|
90 |
-
</email>
|
91 |
-
</groups>
|
92 |
-
</magestore_extension_feedback>
|
93 |
-
-->
|
94 |
-
<magenotification translate="label" module="magenotification">
|
95 |
-
<class>separator-top</class>
|
96 |
-
<label>MageNotification</label>
|
97 |
-
<tab>magestore</tab>
|
98 |
-
<frontend_type>text</frontend_type>
|
99 |
-
<sort_order>300</sort_order>
|
100 |
-
<show_in_default>1</show_in_default>
|
101 |
-
<show_in_website>1</show_in_website>
|
102 |
-
<show_in_store>1</show_in_store>
|
103 |
-
<groups>
|
104 |
-
<general translate="label">
|
105 |
-
<label>General Infomation</label>
|
106 |
-
<frontend_type>text</frontend_type>
|
107 |
-
<sort_order>1</sort_order>
|
108 |
-
<show_in_default>1</show_in_default>
|
109 |
-
<show_in_website>1</show_in_website>
|
110 |
-
<show_in_store>1</show_in_store>
|
111 |
-
<fields>
|
112 |
-
<frequency translate="label">
|
113 |
-
<label>Update frequency</label>
|
114 |
-
<frontend_type>select</frontend_type>
|
115 |
-
<source_model>adminhtml/system_config_source_notification_frequency</source_model>
|
116 |
-
<sort_order>1</sort_order>
|
117 |
-
<show_in_default>1</show_in_default>
|
118 |
-
<show_in_website>1</show_in_website>
|
119 |
-
<show_in_store>1</show_in_store>
|
120 |
-
</frequency>
|
121 |
-
<last_update translate="label">
|
122 |
-
<label>Last update</label>
|
123 |
-
<frontend_type>label</frontend_type>
|
124 |
-
<backend_model>magenotification/source_time</backend_model>
|
125 |
-
<sort_order>2</sort_order>
|
126 |
-
<show_in_default>1</show_in_default>
|
127 |
-
<show_in_website>0</show_in_website>
|
128 |
-
<show_in_store>0</show_in_store>
|
129 |
-
</last_update>
|
130 |
-
<magestore_url translate="label">
|
131 |
-
<label>Magestore Url</label>
|
132 |
-
<frontend_type>label</frontend_type>
|
133 |
-
<sort_order>3</sort_order>
|
134 |
-
<show_in_default>1</show_in_default>
|
135 |
-
<show_in_website>0</show_in_website>
|
136 |
-
<show_in_store>0</show_in_store>
|
137 |
-
</magestore_url>
|
138 |
-
</fields>
|
139 |
-
</general>
|
140 |
-
</groups>
|
141 |
-
</magenotification>
|
142 |
-
</sections>
|
143 |
-
</config>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
app/code/local/Magestore/Magenotification/sql/magenotification_setup/mysql4-install-0.1.2.php
DELETED
@@ -1,73 +0,0 @@
|
|
1 |
-
<?php
|
2 |
-
|
3 |
-
$installer = $this;
|
4 |
-
|
5 |
-
$installer->startSetup();
|
6 |
-
|
7 |
-
$installer->run("
|
8 |
-
|
9 |
-
|
10 |
-
DROP TABLE IF EXISTS {$this->getTable('magenotification_extension_feedbackmessage')};
|
11 |
-
DROP TABLE IF EXISTS {$this->getTable('magenotification_extension_feedback')};
|
12 |
-
DROP TABLE IF EXISTS {$this->getTable('magenotification_log')};
|
13 |
-
DROP TABLE IF EXISTS {$this->getTable('magenotification')};
|
14 |
-
|
15 |
-
CREATE TABLE {$this->getTable('magenotification')} (
|
16 |
-
`magenotification_id` int(11) unsigned NOT NULL auto_increment,
|
17 |
-
`notification_id` int(10) unsigned NOT NULL,
|
18 |
-
`url` varchar(255) NOT NULL default '',
|
19 |
-
`added_date` datetime NOT NULL,
|
20 |
-
UNIQUE (`notification_id`, `url`),
|
21 |
-
PRIMARY KEY (`magenotification_id`)
|
22 |
-
) ENGINE=InnoDB DEFAULT CHARSET=utf8;
|
23 |
-
|
24 |
-
CREATE TABLE {$this->getTable('magenotification_log')} (
|
25 |
-
`log_id` int(11) unsigned NOT NULL auto_increment,
|
26 |
-
`extension_code` varchar(100) NOT NULL default '',
|
27 |
-
`license_type` varchar(50) NOT NULL default '',
|
28 |
-
`license_key` text NOT NULL default '',
|
29 |
-
`check_date` date NOT NULL,
|
30 |
-
`sum_code` varchar(255),
|
31 |
-
`response_code` smallint(5),
|
32 |
-
`expired_time` varchar(255),
|
33 |
-
`is_valid` tinyint(1),
|
34 |
-
PRIMARY KEY (`log_id`)
|
35 |
-
) ENGINE=InnoDB DEFAULT CHARSET=utf8;
|
36 |
-
|
37 |
-
CREATE TABLE {$this->getTable('magenotification_extension_feedback')} (
|
38 |
-
`feedback_id` int(11) unsigned NOT NULL auto_increment,
|
39 |
-
`code` varchar(255) NOT NULL default '',
|
40 |
-
`extension` varchar(255) NOT NULL default '',
|
41 |
-
`extension_version` varchar(50) NOT NULL default '',
|
42 |
-
`coupon_code` varchar(255) NOT NULL default '',
|
43 |
-
`coupon_value` varchar(50) NOT NULL default '',
|
44 |
-
`expired_counpon` datetime NOT NULL,
|
45 |
-
`content` text NOT NULL default '',
|
46 |
-
`file` text NOT NULL default '',
|
47 |
-
`comment` text NOT NULL default '',
|
48 |
-
`latest_message` text NOT NULL default '',
|
49 |
-
`latest_response` text NOT NULL default '',
|
50 |
-
`latest_response_time` datetime,
|
51 |
-
`status` tinyint(1) NOT NULL DEFAULT '3',
|
52 |
-
`is_sent` tinyint(1) NOT NULL DEFAULT '2',
|
53 |
-
`created` datetime NOT NULL,
|
54 |
-
`updated` datetime NOT NULL,
|
55 |
-
PRIMARY KEY (`feedback_id`)
|
56 |
-
) ENGINE=InnoDB DEFAULT CHARSET=utf8;
|
57 |
-
|
58 |
-
CREATE TABLE {$this->getTable('magenotification_extension_feedbackmessage')} (
|
59 |
-
`feedbackmessage_id` int(11) unsigned NOT NULL auto_increment,
|
60 |
-
`feedback_id` int(11) unsigned NOT NULL,
|
61 |
-
`feedback_code` varchar(255) NOT NULL default '',
|
62 |
-
`user` varchar(255) NOT NULL default '',
|
63 |
-
`is_customer` tinyint(1) default '2',
|
64 |
-
`message` text NOT NULL default '',
|
65 |
-
`file` text NOT NULL default '',
|
66 |
-
`posted_time` datetime NULL,
|
67 |
-
`is_sent` tinyint(1) default '2',
|
68 |
-
PRIMARY KEY (`feedbackmessage_id`)
|
69 |
-
) ENGINE=InnoDB DEFAULT CHARSET=utf8;
|
70 |
-
|
71 |
-
");
|
72 |
-
|
73 |
-
$installer->endSetup();
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
app/code/local/Magestore/Magenotification/sql/magenotification_setup/mysql4-upgrade-0.1.0-0.1.2.php
DELETED
@@ -1,64 +0,0 @@
|
|
1 |
-
<?php
|
2 |
-
|
3 |
-
$installer = $this;
|
4 |
-
|
5 |
-
$installer->startSetup();
|
6 |
-
|
7 |
-
$installer->run("
|
8 |
-
|
9 |
-
DROP TABLE IF EXISTS {$this->getTable('magenotification_extension_feedbackmessage')};
|
10 |
-
DROP TABLE IF EXISTS {$this->getTable('magenotification_extension_feedback')};
|
11 |
-
DROP TABLE IF EXISTS {$this->getTable('magenotification_log')};
|
12 |
-
|
13 |
-
|
14 |
-
CREATE TABLE {$this->getTable('magenotification_log')} (
|
15 |
-
`log_id` int(11) unsigned NOT NULL auto_increment,
|
16 |
-
`extension_code` varchar(100) NOT NULL default '',
|
17 |
-
`license_type` varchar(50) NOT NULL default '',
|
18 |
-
`license_key` text NOT NULL default '',
|
19 |
-
`check_date` date NOT NULL,
|
20 |
-
`sum_code` varchar(255),
|
21 |
-
`response_code` smallint(5),
|
22 |
-
`expired_time` varchar(255),
|
23 |
-
`is_valid` tinyint(1),
|
24 |
-
PRIMARY KEY (`log_id`)
|
25 |
-
) ENGINE=InnoDB DEFAULT CHARSET=utf8;
|
26 |
-
|
27 |
-
|
28 |
-
CREATE TABLE {$this->getTable('magenotification_extension_feedback')} (
|
29 |
-
`feedback_id` int(11) unsigned NOT NULL auto_increment,
|
30 |
-
`code` varchar(255) NOT NULL default '',
|
31 |
-
`extension` varchar(255) NOT NULL default '',
|
32 |
-
`extension_version` varchar(50) NOT NULL default '',
|
33 |
-
`coupon_code` varchar(255) NOT NULL default '',
|
34 |
-
`coupon_value` varchar(50) NOT NULL default '',
|
35 |
-
`expired_counpon` datetime NOT NULL,
|
36 |
-
`content` text NOT NULL default '',
|
37 |
-
`file` text NOT NULL default '',
|
38 |
-
`comment` text NOT NULL default '',
|
39 |
-
`latest_message` text NOT NULL default '',
|
40 |
-
`latest_response` text NOT NULL default '',
|
41 |
-
`latest_response_time` datetime,
|
42 |
-
`status` tinyint(1) NOT NULL DEFAULT '3',
|
43 |
-
`is_sent` tinyint(1) NOT NULL DEFAULT '2',
|
44 |
-
`created` datetime NOT NULL,
|
45 |
-
`updated` datetime NOT NULL,
|
46 |
-
PRIMARY KEY (`feedback_id`)
|
47 |
-
) ENGINE=InnoDB DEFAULT CHARSET=utf8;
|
48 |
-
|
49 |
-
CREATE TABLE {$this->getTable('magenotification_extension_feedbackmessage')} (
|
50 |
-
`feedbackmessage_id` int(11) unsigned NOT NULL auto_increment,
|
51 |
-
`feedback_id` int(11) unsigned NOT NULL,
|
52 |
-
`feedback_code` varchar(255) NOT NULL default '',
|
53 |
-
`user` varchar(255) NOT NULL default '',
|
54 |
-
`is_customer` tinyint(1) default '2',
|
55 |
-
`message` text NOT NULL default '',
|
56 |
-
`file` text NOT NULL default '',
|
57 |
-
`posted_time` datetime NULL,
|
58 |
-
`is_sent` tinyint(1) default '2',
|
59 |
-
PRIMARY KEY (`feedbackmessage_id`)
|
60 |
-
) ENGINE=InnoDB DEFAULT CHARSET=utf8;
|
61 |
-
|
62 |
-
");
|
63 |
-
|
64 |
-
$installer->endSetup();
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
app/code/local/Magestore/Magenotification/sql/magenotification_setup/mysql4-upgrade-0.1.1-0.1.2.php
DELETED
@@ -1,26 +0,0 @@
|
|
1 |
-
<?php
|
2 |
-
|
3 |
-
$installer = $this;
|
4 |
-
|
5 |
-
$installer->startSetup();
|
6 |
-
|
7 |
-
$installer->run("
|
8 |
-
|
9 |
-
DROP TABLE IF EXISTS {$this->getTable('magenotification_log')};
|
10 |
-
|
11 |
-
CREATE TABLE {$this->getTable('magenotification_log')} (
|
12 |
-
`log_id` int(11) unsigned NOT NULL auto_increment,
|
13 |
-
`extension_code` varchar(100) NOT NULL default '',
|
14 |
-
`license_type` varchar(50) NOT NULL default '',
|
15 |
-
`license_key` text NOT NULL default '',
|
16 |
-
`check_date` date NOT NULL,
|
17 |
-
`sum_code` varchar(255),
|
18 |
-
`response_code` smallint(5),
|
19 |
-
`expired_time` varchar(255),
|
20 |
-
`is_valid` tinyint(1),
|
21 |
-
PRIMARY KEY (`log_id`)
|
22 |
-
) ENGINE=InnoDB DEFAULT CHARSET=utf8;
|
23 |
-
|
24 |
-
");
|
25 |
-
|
26 |
-
$installer->endSetup();
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
app/code/local/Magestore/Magenotification/sql/magenotification_setup/mysql4-upgrade-0.1.2-0.1.3.php
DELETED
@@ -1,25 +0,0 @@
|
|
1 |
-
<?php
|
2 |
-
|
3 |
-
$installer = $this;
|
4 |
-
|
5 |
-
$installer->startSetup();
|
6 |
-
|
7 |
-
$installer->run("
|
8 |
-
|
9 |
-
DROP TABLE IF EXISTS {$this->getTable('magenotification_license')};
|
10 |
-
|
11 |
-
CREATE TABLE {$this->getTable('magenotification_license')} (
|
12 |
-
`license_id` int(11) unsigned NOT NULL auto_increment,
|
13 |
-
`extension_code` varchar(100) NOT NULL default '',
|
14 |
-
`license_key` text NOT NULL default '',
|
15 |
-
`active_at` date NOT NULL,
|
16 |
-
`sum_code` varchar(255),
|
17 |
-
`response_code` smallint(5),
|
18 |
-
`domains` varchar(255),
|
19 |
-
`is_valid` tinyint(1),
|
20 |
-
PRIMARY KEY (`license_id`)
|
21 |
-
) ENGINE=InnoDB DEFAULT CHARSET=utf8;
|
22 |
-
|
23 |
-
");
|
24 |
-
|
25 |
-
$installer->endSetup();
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
app/design/adminhtml/default/default/layout/magenotification.xml
DELETED
@@ -1,16 +0,0 @@
|
|
1 |
-
<?xml version="1.0"?>
|
2 |
-
<layout version="0.1.0">
|
3 |
-
<default>
|
4 |
-
<reference name="head">
|
5 |
-
<action method="addJs"><script>tinybox/tinybox.js</script></action>
|
6 |
-
<action method="addCss"><stylesheet>css/tinybox/style.css</stylesheet></action>
|
7 |
-
<action method="addCss"><stylesheet>css/magestore/magenotification.css</stylesheet></action>
|
8 |
-
</reference>
|
9 |
-
</default>
|
10 |
-
<magenotification_adminhtml_feedback_index>
|
11 |
-
<reference name="content">
|
12 |
-
<block type="magenotification/adminhtml_feedback" name="extension_feedback" />
|
13 |
-
</reference>
|
14 |
-
</magenotification_adminhtml_feedback_index>
|
15 |
-
|
16 |
-
</layout>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
app/design/adminhtml/default/default/template/magenotification/feedback/files.phtml
DELETED
@@ -1,17 +0,0 @@
|
|
1 |
-
<?php
|
2 |
-
|
3 |
-
?>
|
4 |
-
<div id="feedback_files">
|
5 |
-
<input type="file" class="input-file" value="" name="file0" id="file0" >
|
6 |
-
<button onclick="magenotificationAddMoreFile();" class="scalable add" type="button">
|
7 |
-
<span><?php echo $this->__('Add More')?></span>
|
8 |
-
</button>
|
9 |
-
</div>
|
10 |
-
<script type="text/javascript">
|
11 |
-
var currentfile = 0;
|
12 |
-
function magenotificationAddMoreFile(){
|
13 |
-
currentfile++;
|
14 |
-
var inputFile = '<br/><input type="file" class="input-file" value="" name="file'+currentfile+'" id="file'+currentfile+'">';
|
15 |
-
$('feedback_files').insert(inputFile);
|
16 |
-
}
|
17 |
-
</script>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
app/design/adminhtml/default/default/template/magenotification/feedback/history.phtml
DELETED
@@ -1,31 +0,0 @@
|
|
1 |
-
<?php $messages = $this->getMessages() ?>
|
2 |
-
<?php if(count($messages)): ?>
|
3 |
-
<?php foreach($messages as $message): ?>
|
4 |
-
<?php if((int)$message->getIsCustomer() == 1): ?>
|
5 |
-
<br/>
|
6 |
-
<?php if((int)$message->getIsSent() == 1): ?>
|
7 |
-
<span class="grid-severity-notice" style="width: 150px;">
|
8 |
-
<span><?php echo $this->__('Sent to').' '.Magestore_Magenotification_Model_Keygen::SERVER_NAME?></span>
|
9 |
-
</span>
|
10 |
-
<?php else: ?>
|
11 |
-
<table><tr><td width="170">
|
12 |
-
<span class="grid-severity-critical" style="width: 150px;"><span><?php echo $this->__('Not Sent')?></span></span>
|
13 |
-
</td><td>
|
14 |
-
<a href='<?php echo $this->getUrl('magenotification/adminhtml_feedback/resendmessage',array('id'=>$message->getId(),'feedback_id'=>$this->getFeedback()->getId(),'_secure'=>true)) ?>' >
|
15 |
-
<?php echo $this->__('Resend')?>
|
16 |
-
</a>
|
17 |
-
</td></tr></table>
|
18 |
-
<?php endif; ?>
|
19 |
-
<?php endif; ?>
|
20 |
-
<?php echo $this->getMessageTitle($message) ?>
|
21 |
-
<br/>
|
22 |
-
<pre><?php echo $message->getMessage() ?></pre>
|
23 |
-
<br/>
|
24 |
-
<?php if($attachedfiles = $message->getAttachedFile()): ?>
|
25 |
-
<b><?php echo $this->__('Attached Files')?></b>
|
26 |
-
<?php echo $attachedfiles ?>
|
27 |
-
<?php endif; ?>
|
28 |
-
<br/>
|
29 |
-
<hr style="border: 1px dashed rgb(204, 204, 204);"/>
|
30 |
-
<?php endforeach; ?>
|
31 |
-
<?php endif; ?>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
app/design/adminhtml/default/default/template/magenotification/license/licenseinfo.phtml
DELETED
@@ -1,68 +0,0 @@
|
|
1 |
-
<?php
|
2 |
-
/**
|
3 |
-
* License Info Template
|
4 |
-
* @see Magestore_Magenotification_Block_Config_Licenseinfo
|
5 |
-
*/
|
6 |
-
?>
|
7 |
-
<strong><label for="<?php echo $this->getExtensionName() ?>_license_info"><?php echo $this->__('License Serial') ?>:</label></strong>
|
8 |
-
<?php if ($this->getLicenseSerial()): ?>
|
9 |
-
<?php echo $this->getLicenseSerial() ?>
|
10 |
-
<br/>
|
11 |
-
<?php else: ?>
|
12 |
-
<?php $_serial = $this->getConfigLicenseSerial() ?>
|
13 |
-
<a href="#" onclick="return <?php echo $this->getExtensionName() ?>ChangeLicense(this);" style="text-decoration: none;<?php if (!$_serial): ?> display: none;<?php endif ?>">
|
14 |
-
<?php echo $_serial ?>
|
15 |
-
<br/>
|
16 |
-
</a>
|
17 |
-
<span id="<?php echo $this->getExtensionName() ?>_license_input"<?php if ($_serial): ?> style="display: none;"<?php endif ?>>
|
18 |
-
<input id="<?php echo $this->getExtensionName() ?>_license_info" name="groups[extension_serials][fields][<?php echo $this->getExtensionName() ?>][value]" value="<?php echo $_serial ?>" style="width: 154px;" type="text" class="input-text" />
|
19 |
-
<p class="note" style="margin-left: 86px;">
|
20 |
-
<?php echo $this->__('get license serial from') ?>
|
21 |
-
<a href="https://www.magestore.com/licensemanager/license/certificates" title="<?php echo $this->__('get license serial') ?>" target="_blank"><?php echo $this->__('here') ?></a>
|
22 |
-
</p>
|
23 |
-
</span>
|
24 |
-
<script type="text/javascript">
|
25 |
-
function <?php echo $this->getExtensionName() ?>ChangeLicense(el) {
|
26 |
-
el.hide();
|
27 |
-
$('<?php echo $this->getExtensionName() ?>_license_input').show();
|
28 |
-
return false;
|
29 |
-
}
|
30 |
-
</script>
|
31 |
-
<?php endif ?>
|
32 |
-
|
33 |
-
<strong><?php echo $this->__('License Type') ?>:</strong>
|
34 |
-
<?php
|
35 |
-
switch ($this->getLicenseType()) {
|
36 |
-
case Magestore_Magenotification_Model_Config::COMMERCIAL_LICENSE:
|
37 |
-
echo $this->__('commercial for one Magento Installation');
|
38 |
-
break;
|
39 |
-
case Magestore_Magenotification_Model_Config::TRIAL_LICENSE:
|
40 |
-
echo $this->__('Trial for one Magento Installation');
|
41 |
-
break;
|
42 |
-
case Magestore_Magenotification_Model_Config::FREE_LICENSE:
|
43 |
-
echo $this->__('Free License');
|
44 |
-
break;
|
45 |
-
default :
|
46 |
-
echo $this->__('N/A');
|
47 |
-
}
|
48 |
-
?>
|
49 |
-
|
50 |
-
<br/>
|
51 |
-
<strong><?php echo $this->__('Activation Date') ?>:</strong>
|
52 |
-
<?php if ($this->getActivationDate()): ?>
|
53 |
-
<?php echo $this->formatDate($this->getActivationDate(), 'medium', false) ?>
|
54 |
-
<?php else: ?>
|
55 |
-
<?php echo $this->__('N/A') ?>
|
56 |
-
<?php endif ?>
|
57 |
-
|
58 |
-
<br/>
|
59 |
-
<strong><?php echo $this->__('Expiration Date') ?>:</strong>
|
60 |
-
<?php if ($this->getExpirationDate()): ?>
|
61 |
-
<?php echo $this->formatDate($this->getExpirationDate(), 'medium', false) ?>
|
62 |
-
<?php else: ?>
|
63 |
-
<?php echo $this->__('N/A') ?>
|
64 |
-
<?php endif ?>
|
65 |
-
|
66 |
-
<br/>
|
67 |
-
<?php echo $this->__('Check license information') ?>
|
68 |
-
<a href="https://www.magestore.com/licensemanager/license/check" title="<?php echo $this->__('check license information') ?>" target="_blank"><?php echo $this->__('here') ?></a>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
app/design/adminhtml/default/default/template/magenotification/license/purchaseform.phtml
DELETED
@@ -1,7 +0,0 @@
|
|
1 |
-
<?php
|
2 |
-
|
3 |
-
?>
|
4 |
-
|
5 |
-
<button style="margin-top:5px;" onclick="location.href='<?php echo $this->getPurchaseUrl() ?>'" class="scalable add" type="button" >
|
6 |
-
<span><?php echo $this->__('Purchase now')?></span>
|
7 |
-
</button><br/><br/>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
app/design/adminhtml/default/default/template/magenotification/license/updateform.phtml
DELETED
@@ -1,41 +0,0 @@
|
|
1 |
-
<?php
|
2 |
-
|
3 |
-
?>
|
4 |
-
<table width="300">
|
5 |
-
<tr>
|
6 |
-
<td colspan="2">
|
7 |
-
<?php echo $this->__('Upgrade License to')?><br/>
|
8 |
-
<select style="margin:5px 0 5px 0;"class="input-text" name="<?php echo $this->getExtensionName() ?>_licensetype" id="<?php echo $this->getExtensionName() ?>_licensetype">
|
9 |
-
<?php foreach($this->getLicenseTypeOption() as $key=>$label): ?>
|
10 |
-
<option value="<?php echo $key?>"><?php echo $label?></option>
|
11 |
-
<?php endforeach; ?>
|
12 |
-
</select>
|
13 |
-
</td>
|
14 |
-
</tr>
|
15 |
-
<tr>
|
16 |
-
<td>
|
17 |
-
<button style="" onclick="updateLicenseViewPrice('<?php echo $this->getLicensekey() ?>','<?php echo $this->getExtensionName() ?>_licensetype')" class="scalable" type="button" >
|
18 |
-
<span><?php echo $this->__('View Price')?></span>
|
19 |
-
</button>
|
20 |
-
</td>
|
21 |
-
<td>
|
22 |
-
<button style="" onclick="updateLicensePurchase('<?php echo $this->getLicensekey() ?>','<?php echo $this->getExtensionName() ?>_licensetype')" class="scalable add" type="button" >
|
23 |
-
<span><?php echo $this->__('Upgrade Now')?></span>
|
24 |
-
</button>
|
25 |
-
</td>
|
26 |
-
</tr>
|
27 |
-
</table><br/>
|
28 |
-
|
29 |
-
<script type="text/javascript">
|
30 |
-
function updateLicenseViewPrice(licensekey,licensetype_selector){
|
31 |
-
var licensetype = $(licensetype_selector).value;
|
32 |
-
var url = '<?php echo $this->getViewPriceUrl()?>'+'licensekey/'+licensekey+'/licensetype/'+licensetype;
|
33 |
-
TINY.box.show(url, 1, 300, 100, 1);
|
34 |
-
}
|
35 |
-
|
36 |
-
function updateLicensePurchase(licensekey,licensetype_selector){
|
37 |
-
var licensetype = $(licensetype_selector).value;
|
38 |
-
var url = '<?php echo $this->getUpdateUrl()?>'+'licensekey/'+licensekey+'/licensetype/'+licensetype;
|
39 |
-
location.href=url;
|
40 |
-
}
|
41 |
-
</script>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
app/design/frontend/base/default/layout/vssver2.scc
ADDED
Binary file
|
app/etc/modules/Magestore_Magenotification.xml
DELETED
@@ -1,9 +0,0 @@
|
|
1 |
-
<?xml version="1.0"?>
|
2 |
-
<config>
|
3 |
-
<modules>
|
4 |
-
<Magestore_Magenotification>
|
5 |
-
<active>true</active>
|
6 |
-
<codePool>local</codePool>
|
7 |
-
</Magestore_Magenotification>
|
8 |
-
</modules>
|
9 |
-
</config>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
media/bannerslider/b/n/bntest1.png
DELETED
Binary file
|
media/bannerslider/b/n/bntest2.png
DELETED
Binary file
|
media/bannerslider/o/n/ontest3.png
DELETED
Binary file
|
package.xml
CHANGED
@@ -1,18 +1,18 @@
|
|
1 |
<?xml version="1.0"?>
|
2 |
<package>
|
3 |
<name>Magestore_BannerSlider</name>
|
4 |
-
<version>4.0.
|
5 |
<stability>stable</stability>
|
6 |
-
<license uri="
|
7 |
<channel>community</channel>
|
8 |
<extends/>
|
9 |
-
<summary>
|
10 |
-
<description>
|
11 |
-
<notes
|
12 |
<authors><author><name>Magestore</name><user>Magestore</user><email>info@magestore.com</email></author></authors>
|
13 |
-
<date>2016-
|
14 |
-
<time>
|
15 |
-
<contents><target name="magecommunity"><dir name="Magestore"><dir name="Bannerslider"><dir name="Block"><dir name="Adminhtml"><file name="Addbutton.php" hash="1620cba0de2a6b841f5dc007a5ba3f76"/><dir name="Banner"><dir name="Edit"><file name="Form.php" hash="c19dcbe104dbbacebad467425720a94a"/><dir name="Tab"><file name="Form.php" hash="437da4f560331c87bc54046b2faf26cd"/><file name="vssver2.scc" hash="fe61be1f46b9e0635e488e2531082eaf"/></dir><file name="Tabs.php" hash="5451c616a749ad3446e73c0b22140786"/><file name="vssver2.scc" hash="4eb4b408b663fc12fde4f52e7cd55b20"/></dir><file name="Edit.php" hash="cdf64d915518488294ebb62851b79439"/><file name="Grid.php" hash="92eaae8d263b545a981ab2cd9e7361e9"/><file name="vssver2.scc" hash="1e658a8b3457fb837cc3ddb5c911e4b8"/></dir><file name="Banner.php" hash="ed29f0eb29ef42e03f39571d6f59ee96"/><dir name="Bannerslider"><dir name="Edit"><file name="Form.php" hash="2c345861330740fba6548eec498f86e3"/><dir name="Tab"><dir name="Content"><file name="Categories.php" hash="86f5c15765a8fe46eee2fd708c1eaf85"/><file name="vssver2.scc" hash="b227faef1a56b8d5f55750f611927872"/></dir><file name="Custom.php" hash="469cf710f5c552a08b5b539395b899ba"/><file name="Form.php" hash="7c65f38a72f617004a2b4d6db38dd186"/><file name="vssver2.scc" hash="4902c14929fab1f42786b0ffe632c097"/></dir><file name="Tabs.php" hash="bdfe3a7185c605ef5c5eab5f211a4165"/><file name="vssver2.scc" hash="bb3c8cc38b6741594d7f88f5e022e7e0"/></dir><file name="Edit.php" hash="906e93dd97f8f563c3df9f053bf281ec"/><file name="Grid.php" hash="da743eaa1031f7f78004215d03b991e3"/><file name="vssver2.scc" hash="86cb601606fae64f83bca55a371fc552"/></dir><file name="Bannerslider.php" hash="7ef59ae67275ece742d91ec56f09e67a"/><file name="Customjs.php" hash="f31ae7353357754ed8e200439ea75508"/><file name="Date.php" hash="1e70ac0a688fc8c7f7d10df30c0bfbac"/><file name="Preview.php" hash="3297dae1e1b3a6defc10741efbc560bf"/><dir name="Renderer"><file name="Edit.php" hash="7dfdefbf45b76d39a746806031eea72b"/><file name="Imagebanner.php" hash="f4b164324958631212530085e1be5620"/><file name="Imagereport.php" hash="0d5613ede542864c71929be4b54fbdc7"/><file name="vssver2.scc" hash="007945d63fdb7a427b286521f27642d1"/></dir><dir name="Report"><dir name="Banner"><file name="Grid.php" hash="8a83cf1fa2e142a747f5c1615e8c97c1"/><file name="vssver2.scc" hash="6deb121d664699d3d90c79ddcde56dcb"/></dir><file name="Grid.php" hash="60743914f2e908e9933c7cb0dd856166"/><file name="vssver2.scc" hash="1e7ff04bc29a13b6557e6329e6789213"/></dir><file name="Report.php" hash="68371e7ec394f99b37a5e09e097e644c"/><file name="Reportbanner.php" hash="8fb1e5085fe0eef718b9a33a3c510ee2"/><dir name="Standardslider"><file name="Grid.php" hash="c0262311bebbf1fea77b91822424ba20"/><file name="vssver2.scc" hash="bdf98a830ce1513e6bbab27eb42bdc45"/></dir><file name="Standardslider.php" hash="9ba4720a6f4d423933b95ac43b6e1522"/><dir name="System"><dir name="Configuration"><file name="Implementcode.php" hash="b17f1e5971fb73925d002886642deec7"/><file name="vssver2.scc" hash="0f306dd4cd372ed77518ceae34d211b4"/></dir></dir><file name="vssver2.scc" hash="fa117d8c97bb8d8c7f8fef5fea602213"/></dir><file name="Bannerslider.php" hash="9695e173db768740cebb1f5e1b3a4dad"/><file name="Default.php" hash="aaf65ddfc79c8ae025fc38d8f0df74ea"/><file name="vssver2.scc" hash="e3ca9f283c154c236e80f4c59bdb8101"/></dir><dir name="Helper"><file name="Data.php" hash="2eac9eb6ff30b85b287ffb4a96dbd4a7"/><file name="vssver2.scc" hash="06a67c7b17bcb165ef2935b03d2a4c6d"/></dir><dir name="Model"><file name="Banner.php" hash="4b3e613f8cf47ee441f4d3ad5b080303"/><file name="Bannerslider.php" hash="4db539f951673cf3f3c4ed7aaad4f691"/><dir name="Mysql4"><dir name="Banner"><file name="Collection.php" hash="5f0146147c5d02eb2b26e904eac2bd1e"/><file name="vssver2.scc" hash="dd68ee4ad4e13c13759b8aa6e606ad13"/></dir><file name="Banner.php" hash="883bbd3352133e62b692cf6df710bc5a"/><dir name="Bannerslider"><file name="Collection.php" hash="df57e1c5db0cfac84b9e7c4b813a7a64"/><file name="vssver2.scc" hash="bd6a40f5a282f2d57dc77eec0db5ca42"/></dir><file name="Bannerslider.php" hash="e4c35a582e312bb4c68cd85b759c2a83"/><dir name="Report"><file name="Collection.php" hash="7271ab3d4c8a89a28644be673d4e4b69"/><file name="vssver2.scc" hash="34d252096a5522b05614e57bf02b963c"/></dir><file name="Report.php" hash="d7f6df3f5942f8dd8834e84264e2e9dd"/><dir name="Value"><file name="Collection.php" hash="63dc1dbd200f56e635a3f39171b962f7"/><file name="vssver2.scc" hash="8d5443a73775f46198c2aa7132c96f5b"/></dir><file name="Value.php" hash="22d13761be784b7f292c757e664ccbdf"/><file name="vssver2.scc" hash="0b3bcc4f0fd91fe69b423112143c9454"/></dir><file name="Observer.php" hash="b148a10fb2c3c5e77918f7d3b0c4c8ba"/><file name="Report.php" hash="912d542454da0542e451c69b8bc14d29"/><file name="Select.php" hash="56ada2d8493233b88761f66a55377f1f"/><file name="Status.php" hash="dd11fe0f53dbc43683db6d78c68f0866"/><file name="Value.php" hash="89daa2bb4164babd83647a053fdfe872"/><file name="vssver2.scc" hash="325d76862402f86fba5909f2c129fdcc"/></dir><dir name="controllers"><dir name="Adminhtml"><dir name="Bannerslider"><file name="BannerController.php" hash="07150983e421747d148058a6042c85db"/><file name="BannersliderController.php" hash="da8503a36d7ca4febb1f7c9a042cef2c"/><file name="ReportController.php" hash="bba8c2a1fb3d9c74e2880a497f5b1091"/><file name="StandardsliderController.php" hash="c61794c35f24131db12c9755fa6454ea"/></dir><file name="vssver2.scc" hash="d4597cdc42394eaa1fe3144fefdec29d"/></dir><file name="IndexController.php" hash="be957eac7bdbaa79a29159904039a698"/><file name="vssver2.scc" hash="53e80eb3df0a2f8e7d21a7abb2666e4e"/></dir><dir name="etc"><file name="adminhtml.xml" hash="7468e40e1ade56bd630e54f2350ec11e"/><file name="config.xml" hash="969699c4b80ec9fc2786439734a1210b"/><file name="system.xml" hash="9c5231310bfebc180fb6d7e73b5a73a6"/><file name="vssver2.scc" hash="2200362794e503188615e41aaf936888"/></dir><dir name="sql"><dir name="bannerslider_setup"><file name="mysql4-install-3.0.0.php" hash="74a72deccce57fa9b00653687f0acb5d"/><file name="mysql4-upgrade-1.0.0-3.0.0.php" hash="74a72deccce57fa9b00653687f0acb5d"/><file name="mysql4-upgrade-1.0.1-3.0.0.php" hash="74a72deccce57fa9b00653687f0acb5d"/><file name="mysql4-upgrade-1.0.2-3.0.0.php" hash="74a72deccce57fa9b00653687f0acb5d"/><file name="mysql4-upgrade-1.0.3-3.0.0.php" hash="74a72deccce57fa9b00653687f0acb5d"/><file name="mysql4-upgrade-2.0.0-3.0.0.php" hash="74a72deccce57fa9b00653687f0acb5d"/><file name="mysql4-upgrade-2.0.1-3.0.0.php" hash="74a72deccce57fa9b00653687f0acb5d"/><file name="mysql4-upgrade-2.0.2-3.0.0.php" hash="74a72deccce57fa9b00653687f0acb5d"/><file name="vssver2.scc" hash="7a0b509329ccac8a2183ea4a03a336d4"/></dir></dir></dir></dir></target><target name="magelocal"><dir name="Magestore"><dir name="Magenotification"><dir name="Block"><dir name="Adminhtml"><dir name="Feedback"><dir name="Edit"><file name="Form.php" hash="ff965acdbee7128894e462aacedcc398"/><dir name="Tab"><file name="Form.php" hash="3d2b966840f60187ff33270d55ae9574"/><file name="History.php" hash="3416d6c4ea4739d658730cda7811ec39"/><file name="Message.php" hash="d0919f3db9cbbf3f0aa960712d212631"/></dir><file name="Tabs.php" hash="7693686764e2ea6cb1bdc3b83812f179"/></dir><file name="Edit.php" hash="b502e877ae329f92a9fefbe894f66ed5"/><file name="Grid.php" hash="fbc85ffbf0773757d20c3bcc99a06698"/><dir name="Renderer"><file name="File.php" hash="caec435c83f133bd32132cc3f1d5fa1b"/><file name="Product.php" hash="17680a600b75b93e9d41f3afd8e74c8e"/><file name="Sentstatus.php" hash="1a8323870b96cab255a5cdf28f849503"/><file name="Status.php" hash="78030c6ff5c27edf563e6031f1ea9d33"/></dir></dir><file name="Feedback.php" hash="95eafe4c9b06ea1f3f7c822c5c634a1e"/><dir name="License"><file name="Purchaseform.php" hash="45bf206a6e54a473e256847ca30c273f"/><file name="Updateform.php" hash="f32762d18533e03fd4330fa925a79a57"/></dir></dir><dir name="Config"><file name="Extensioncerts.php" hash="9e39d4ce719399098cc8cf695c675646"/><file name="Extensionkeys.php" hash="f214363d1fecfe943a566b4092e54259"/><file name="Field.php" hash="cfaf7f736a61113b93d6b4ea6df555e0"/><file name="Label.php" hash="5e4a80b056bc66ee238e9f19a1fea641"/><file name="Licenseinfo.php" hash="3c3344418a46ad52dfd7976c00b71dc6"/></dir></dir><dir name="Helper"><file name="Data.php" hash="48a39877d47a27fada2042b54e08c3aa"/><file name="Feedback.php" hash="ed18865551bdcecfc63ffc7fd2920d4d"/><file name="License.php" hash="88fda7407b6e1061602e946566242127"/></dir><dir name="Model"><file name="Config.php" hash="258bbac06b3d205798ae44c4068f1f64"/><file name="Feedback.php" hash="c4a22079db6cbbe76a80a6d98b3732a7"/><file name="Feedbackmessage.php" hash="2bbe10dae7cf63da867ee0f6d0399fff"/><file name="Keygen.php" hash="f7279b43e5b6f9daf9de3e94aaaf3ba2"/><file name="License.php" hash="a0fbb1a6d15851c3e3f21704c210b531"/><file name="Logger.php" hash="6e6b9c8a6626ba2d887f7ea8b5cb4903"/><file name="Magenotification.php" hash="6f36e2499b3b8e382fa472609fee1955"/><dir name="Mysql4"><dir name="Feedback"><file name="Collection.php" hash="2b7d32d861e61cdd8dfc317162afc24b"/></dir><file name="Feedback.php" hash="ceaf546e1ae1109debdca1a2f8bd1045"/><dir name="Feedbackmessage"><file name="Collection.php" hash="f43a98274f307ec7a5bc4de50652abab"/></dir><file name="Feedbackmessage.php" hash="fbc315bcc9ac0cddc29a51fbd9745327"/><dir name="License"><file name="Collection.php" hash="990e244acfd2ead17e535b070bd0e2e6"/></dir><file name="License.php" hash="4dc9f91280032e2ecad97ced01cbdc33"/><dir name="Logger"><file name="Collection.php" hash="027c25b0aa0c449a280bc17342bac248"/></dir><file name="Logger.php" hash="66dcc4eb1f8dd26e59552e28edcbdc77"/><dir name="Magenotification"><file name="Collection.php" hash="7859b80ac9a3b37765a4b1140de343a9"/></dir><file name="Magenotification.php" hash="d0effb08b44e58cd484dd5bd21da5e38"/></dir><file name="Observer.php" hash="283951a2680a876675630281c6ca416d"/><dir name="Source"><file name="Time.php" hash="33236ea396f02464dba81bf384362a27"/></dir><file name="Status.php" hash="ca2c85ad22dbe6e97231081acfbb42b1"/></dir><dir name="controllers"><dir name="Adminhtml"><file name="FeedbackController.php" hash="b2e403007925f6d298ea252c0664f1ce"/><file name="LicenseController.php" hash="dfb749333b38ed0b2093eb84078ae999"/><file name="MagenotificationController.php" hash="c4f9ff5a921a960800b5eae73cb6013a"/></dir></dir><dir name="etc"><file name="adminhtml.xml" hash="789ffb140ecdc08db552fd4df3d5a9eb"/><file name="config.xml" hash="3003377f860b4887c8c0afd4db07a3f1"/><file name="system.xml" hash="64b2bf405ecff1767bc5b2175b504067"/></dir><dir name="sql"><dir name="magenotification_setup"><file name="mysql4-install-0.1.2.php" hash="74df00189812cc48e07807d4e67c532e"/><file name="mysql4-upgrade-0.1.0-0.1.2.php" hash="8833e8e06f11bcd4c421d35f10c5def2"/><file name="mysql4-upgrade-0.1.1-0.1.2.php" hash="741f09f46da1747f027d3fc87d321a2e"/><file name="mysql4-upgrade-0.1.2-0.1.3.php" hash="8943a9567ac7ced808db7a9d52816633"/></dir></dir></dir></dir></target><target name="magedesign"><dir name="adminhtml"><dir name="default"><dir name="default"><dir name="layout"><file name="bannerslider.xml" hash="8112b340ec2651fe8dd7dfacd338dcda"/><file name="magenotification.xml" hash="9d48e23443cdd5007efbe56661482314"/></dir><dir name="template"><dir name="bannerslider"><file name="addbanner.phtml" hash="51f2a01675d39af4f7d14c60fb326b91"/><file name="addbutton.phtml" hash="efd14d329b8d752286b454db4cd6c2c4"/><file name="categories.phtml" hash="f5430ea67515da71bcd7ab3c4d166eba"/><file name="customjs.phtml" hash="c80168c8e1297e69c00d6516eca24d01"/><file name="date.phtml" hash="d03da284e254b1e3449d7bb4c5e2627d"/><file name="standardslider.phtml" hash="032153da9adc7811c3839ef5a582f71d"/><file name="vssver2.scc" hash="1580451d206aa6d82313acb46e018881"/></dir><dir name="magenotification"><dir name="feedback"><file name="files.phtml" hash="55a255047fd65a80d4429cc5d6d6aad1"/><file name="history.phtml" hash="ba31f13ff51489483395e28144d1217e"/></dir><dir name="license"><file name="licenseinfo.phtml" hash="79f8063c1b6575932cf010ef4abb5de1"/><file name="purchaseform.phtml" hash="5a39b6087f4f538a6094ecb66d6f8c0b"/><file name="updateform.phtml" hash="3d3cf9d0035d8f74fef33916e27fa549"/></dir></dir></dir></dir></dir></dir><dir name="frontend"><dir name="base"><dir name="default"><dir name="layout"><file name="bannerslider.xml" hash="cf9a10a31b497c3cbe85df6dfa0cbe23"/></dir><dir name="template"><dir name="bannerslider"><file name="bannerslider.phtml" hash="bdd245f2f1ce86ee5abbe9f153b4d5ef"/><file name="note.phtml" hash="cba58992ffa05f9dd92b51b4356bba17"/><file name="popup.phtml" hash="042d70aa32586254b0e3248d93f2e661"/><file name="slider1.phtml" hash="82cc2da80806cb2720577b5d454b89e4"/><file name="slider10.phtml" hash="0e1811bf5808696bab0136e7f7184772"/><file name="slider2.phtml" hash="8aae4e8d044838b4223d37c178722714"/><file name="slider3.phtml" hash="a14c49f5cbd3725315916e112a19b2d3"/><file name="slider4.phtml" hash="54be02eed7fa87e6e8461fa46784a6e5"/><file name="slider5.phtml" hash="d41d8cd98f00b204e9800998ecf8427e"/><file name="slider6.phtml" hash="d41d8cd98f00b204e9800998ecf8427e"/><file name="slider7.phtml" hash="18eea4668e6b10a35e28b7bc22d91b9a"/><file name="slider8.phtml" hash="575557f38dbfc3b5e50e91ac671d68f5"/><file name="slider9.phtml" hash="bc47072256967bccff9cb07cf5e5848b"/><file name="vssver2.scc" hash="7277c53f67047125fd3b77ff42151808"/></dir></dir></dir></dir></dir></target><target name="mageetc"><dir name="modules"><file name="Magestore_Bannerslider.xml" hash="db9a0aa8218ec4551c077a8261cd1225"/><file name="Magestore_Magenotification.xml" hash="940e13b33cbf2e9452ecdc231b5868b9"/></dir></target><target name="magelocale"><dir name="en_US"><file name="Magestore_Bannerslider.csv" hash="858aa3387d6f7fa1a10b0e0dfc7c1bcc"/></dir></target><target name="mage"><dir name="js"><dir name="magestore"><dir name="bannerslider"><file name="jquery-1.7.min.js" hash="2a410e352d5137af6e651365228eebbd"/><file name="jquery.ads.note.css" hash="f5e183ae7abceb03977492cad9245101"/><file name="jquery.ads.note.js" hash="47fab367bee030373653c7f340c291a3"/><file name="jquery.flexslider.js" hash="daea989df260450f028d887465adfb1f"/><file name="jquery.slider.css" hash="09c96a81b008a1759305795eb0d65e26"/><file name="lightbox.js" hash="0f415775ee66a5292f44049e8f96d8c2"/><file name="prototip.js" hash="a3df1c2770578caf8bc4c33c5248b478"/><dir name="slider1"><file name="jquery.slider.min.js" hash="0b43bcb534325ca89610e4c4f31e5d6b"/><file name="vssver2.scc" hash="fddf8e41471aeda593719b289d2ff0f5"/><file name="jquery.slider.min.js" hash="0b43bcb534325ca89610e4c4f31e5d6b"/><file name="vssver2.scc" hash="fddf8e41471aeda593719b289d2ff0f5"/></dir><file name="tooltip.js" hash="2a4c59e541c17227011d4157f65ad5df"/><file name="vssver2.scc" hash="32efc7562d5d168dcf262a339790a98f"/><file name="jquery-1.7.min.js" hash="2a410e352d5137af6e651365228eebbd"/><file name="jquery.ads.note.css" hash="f5e183ae7abceb03977492cad9245101"/><file name="jquery.ads.note.js" hash="47fab367bee030373653c7f340c291a3"/><file name="jquery.flexslider.js" hash="daea989df260450f028d887465adfb1f"/><file name="jquery.slider.css" hash="09c96a81b008a1759305795eb0d65e26"/><file name="lightbox.js" hash="0f415775ee66a5292f44049e8f96d8c2"/><file name="prototip.js" hash="a3df1c2770578caf8bc4c33c5248b478"/><file name="tooltip.js" hash="2a4c59e541c17227011d4157f65ad5df"/><file name="vssver2.scc" hash="32efc7562d5d168dcf262a339790a98f"/></dir></dir><dir name="tinybox"><file name="tinybox.js" hash="2ca7fcb7fefc5e8d85887f3c6dc6e315"/><file name="tinybox.js" hash="2ca7fcb7fefc5e8d85887f3c6dc6e315"/></dir></dir></target><target name="magemedia"><dir name="bannerslider"><dir name="b"><dir name="n"><file name="bntest1.png" hash="d8338e29b16e61a34df5a12062393708"/><file name="bntest2.png" hash="572a33b3dd9027b9ae0365113a4d8a4c"/></dir></dir><file name="bannerslider-ex1.png" hash="f925601f7d510c353c34d221f668b3f5"/><file name="bannerslider-ex2.png" hash="d55e175b8d2c4e04b053f9e5a78eec09"/><file name="bannerslider-ex3.png" hash="5d27eb9efb2c87c38cf9c51263378127"/><file name="bannerslider-ex4.PNG" hash="3aa3919637166ede6271f62d84cc473e"/><file name="bannerslider-ex5.PNG" hash="a86c1217b9b94db5fbc79b48e34ece41"/><dir name="o"><dir name="n"><file name="ontest3.png" hash="f19060e8509a0b79fc171db18b418440"/></dir></dir><file name="vssver2.scc" hash="9a7c74e959159f386a674798d8f4c146"/></dir></target><target name="mageskin"><dir name="adminhtml"><dir name="default"><dir name="default"><dir name="css"><dir name="magestore"><dir name="bannerslider"><file name="default.css" hash="3400d49b477c06bd640bc5a8fffab6fa"/><file name="flexslider.css" hash="1413934da4074535265cb7cd6d9de893"/><dir name="image"><file name="arrow-left.png" hash="0123ebda12226d3abb6981ab39a16408"/><file name="arrow-pause.png" hash="324a64404a26d6ec392720247b51fbc9"/><file name="arrow-play.png" hash="5867994d1fee70cb7657054493be3e13"/><file name="arrow-right.png" hash="3e79ef41ec3a17f1c3abc3dc5446a7dd"/><file name="bg_direction_nav.png" hash="f595730bbfc9b24daa4c834f8c8660b9"/><file name="close-tiny.png" hash="eca7a7b15c08e0292e33d4ac18f58617"/><file name="close.png" hash="7b0f8459a7e2389a20baf18b437ebdbf"/><file name="cs_leftImg.jpg" hash="3d5d181d0e5656d6e5593ab791c0d9a2"/><file name="cs_rightImg.jpg" hash="b1b41041e94af2225da0022cabf317bf"/><dir name="demo"><file name="kitchen_adventurer_caramel.jpg" hash="8cfdcfbfea2703e52cd203b033302248"/><file name="kitchen_adventurer_cheesecake_brownie.jpg" hash="5d2057ce7b682e9a12ecc34cf17b9108"/><file name="kitchen_adventurer_donut.jpg" hash="09b6523d1a240a58ae5ccf874cd86529"/><file name="kitchen_adventurer_lemon.jpg" hash="23134dfb0166baf49cf74a643728fb48"/><file name="logo.png" hash="122ff533e88051eda109bcd298b0702b"/><file name="vssver2.scc" hash="10b12d547b3f0834f076f7206448c20e"/></dir><dir name="slide1"><file name="jquery-slider-rotator-left.png" hash="8110266e25fd39d5c815b52134a7aaa4"/><file name="jquery-slider-rotator-right.png" hash="bc78a72b83fae168301d8b5eaf8d3a53"/><file name="jquery-slider-theme.png" hash="bbe4889b6f090abdf123e7375087133c"/><file name="vssver2.scc" hash="5092622bb994361966d8737ef7bfafab"/></dir><dir name="slide2"><file name="jquery-slider-theme.png" hash="6628642682e50a48fdd9a8d3817fa363"/><file name="vssver2.scc" hash="4132c4aae837a8438fccc16f742a03c2"/></dir><dir name="slide3"><file name="jquery-slider-theme.png" hash="c078b23fcea27602af60b159474955d7"/><file name="vssver2.scc" hash="172344bb2c8e5966a46168e490f776c0"/></dir><dir name="slide4"><file name="jquery-slider-theme.png" hash="0fcf2310ad64a7ec4978cf3dc4c401ce"/><file name="vssver2.scc" hash="239afad2c8d2cf5d7597b75a31bbdc1a"/></dir><file name="vssver2.scc" hash="172d0fd31259f7513cdf5b4862d6304c"/></dir><file name="jquery.ennui.contentslider.css" hash="2e92af4b8f10fd366b6b2415437e4195"/><file name="slider1.css" hash="1186ceff6daede0a9a42b3d14042d0f5"/><file name="slider2.css" hash="473a870eaf23dc75d47fa7f7f0c3ef39"/><file name="slider3.css" hash="929e439d47e6e3fb3d74f81170ebea34"/><file name="slider4.css" hash="538cc7e2a9cb55f4a8e4ad7025628379"/><file name="vssver2.scc" hash="74f6dc5554c47e567d18c78b846c7d6a"/></dir><file name="magenotification.css" hash="6fc00a4e8aa9106db4e62420ebc9efe9"/><file name="notice_price.gif" hash="4b38fffa255125c1e6cdfdd740dd2e56"/></dir><dir name="tinybox"><dir name="images"><file name="preload.gif" hash="bf3ec68db23e93ba2ec795ef558e96da"/><file name="rhino.jpg" hash="d00bad1ec05584e10a5601ec103aff72"/></dir><file name="style.css" hash="e3016ee232fbf3c6f780255002703237"/></dir></dir></dir></dir></dir><dir name="frontend"><dir name="base"><dir name="default"><dir name="css"><dir name="magestore"><dir name="bannerslider"><file name="flexslider.css" hash="c1d24aebc30df115149ee0d63b8ba2e6"/><dir name="image"><file name="arrow-left.png" hash="0123ebda12226d3abb6981ab39a16408"/><file name="arrow-pause.png" hash="324a64404a26d6ec392720247b51fbc9"/><file name="arrow-play.png" hash="5867994d1fee70cb7657054493be3e13"/><file name="arrow-right.png" hash="3e79ef41ec3a17f1c3abc3dc5446a7dd"/><file name="bg_direction_nav.png" hash="f595730bbfc9b24daa4c834f8c8660b9"/><file name="close-tiny.png" hash="eca7a7b15c08e0292e33d4ac18f58617"/><file name="close.png" hash="7b0f8459a7e2389a20baf18b437ebdbf"/><file name="cs_leftImg.jpg" hash="3d5d181d0e5656d6e5593ab791c0d9a2"/><file name="cs_rightImg.jpg" hash="b1b41041e94af2225da0022cabf317bf"/><file name="note.png" hash="12765eb6c84412ee6fc28335edcb551d"/><file name="note2.png" hash="bdcea0ba5aaecd309fb1d2119e769d2f"/><dir name="slide1"><file name="jquery-slider-rotator-left.png" hash="8110266e25fd39d5c815b52134a7aaa4"/><file name="jquery-slider-rotator-right.png" hash="bc78a72b83fae168301d8b5eaf8d3a53"/><file name="jquery-slider-theme.png" hash="bbe4889b6f090abdf123e7375087133c"/><file name="vssver2.scc" hash="ae39d5e213b66bf2736926f41c476c88"/></dir><dir name="slide2"><file name="jquery-slider-theme.png" hash="6628642682e50a48fdd9a8d3817fa363"/><file name="vssver2.scc" hash="2c5adfdb620ec8b260cb08b41257ab05"/></dir><dir name="slide3"><file name="jquery-slider-theme.png" hash="c078b23fcea27602af60b159474955d7"/><file name="vssver2.scc" hash="17b6be85760801b598f6fa0545735373"/></dir><dir name="slide4"><file name="jquery-slider-theme.png" hash="0fcf2310ad64a7ec4978cf3dc4c401ce"/><file name="vssver2.scc" hash="26a1a2ac3ed077da63c1963f28168847"/></dir><file name="vssver2.scc" hash="849f50c2ca44899f7703eba04ad7d991"/></dir><file name="note.css" hash="45a0c019bcbeac078f4689b45115623f"/><file name="popup.css" hash="04cec6f6d78be967aa80c61615fe20fa"/><file name="slider1.css" hash="75c68487c0c285f0231939766dfa5544"/><file name="slider2.css" hash="51acb6fd8c806735df75865cf7c66ba9"/><file name="slider3.css" hash="0e6126c497a123542f20826a45222325"/><file name="slider4.css" hash="7b42ce57e9cadea3974a0154da44d603"/><file name="vssver2.scc" hash="3424601920e9ddf09d158c0d14e23abc"/></dir></dir></dir></dir></dir></dir></target></contents>
|
16 |
<compatible/>
|
17 |
-
<dependencies><required><php><min>0.
|
18 |
</package>
|
1 |
<?xml version="1.0"?>
|
2 |
<package>
|
3 |
<name>Magestore_BannerSlider</name>
|
4 |
+
<version>4.0.1</version>
|
5 |
<stability>stable</stability>
|
6 |
+
<license uri="https://opensource.org/licenses/osl-3.0.php">Open Software License (OSL)</license>
|
7 |
<channel>community</channel>
|
8 |
<extends/>
|
9 |
+
<summary>Magestore_BannerSlider</summary>
|
10 |
+
<description>Magestore_BannerSlider</description>
|
11 |
+
<notes>Magestore_BannerSlider</notes>
|
12 |
<authors><author><name>Magestore</name><user>Magestore</user><email>info@magestore.com</email></author></authors>
|
13 |
+
<date>2016-08-24</date>
|
14 |
+
<time>09:54:44</time>
|
15 |
+
<contents><target name="magecommunity"><dir name="Magestore"><dir name="Bannerslider"><dir name="Block"><dir name="Adminhtml"><file name="Addbutton.php" hash="1620cba0de2a6b841f5dc007a5ba3f76"/><dir name="Banner"><dir name="Edit"><file name="Form.php" hash="c19dcbe104dbbacebad467425720a94a"/><dir name="Tab"><file name="Form.php" hash="437da4f560331c87bc54046b2faf26cd"/><file name="vssver2.scc" hash="fe61be1f46b9e0635e488e2531082eaf"/></dir><file name="Tabs.php" hash="5451c616a749ad3446e73c0b22140786"/><file name="vssver2.scc" hash="4eb4b408b663fc12fde4f52e7cd55b20"/></dir><file name="Edit.php" hash="cdf64d915518488294ebb62851b79439"/><file name="Grid.php" hash="92eaae8d263b545a981ab2cd9e7361e9"/><file name="vssver2.scc" hash="1e658a8b3457fb837cc3ddb5c911e4b8"/></dir><file name="Banner.php" hash="ed29f0eb29ef42e03f39571d6f59ee96"/><dir name="Bannerslider"><dir name="Edit"><file name="Form.php" hash="2c345861330740fba6548eec498f86e3"/><dir name="Tab"><dir name="Content"><file name="Categories.php" hash="86f5c15765a8fe46eee2fd708c1eaf85"/><file name="vssver2.scc" hash="b227faef1a56b8d5f55750f611927872"/></dir><file name="Custom.php" hash="469cf710f5c552a08b5b539395b899ba"/><file name="Form.php" hash="7c65f38a72f617004a2b4d6db38dd186"/><file name="vssver2.scc" hash="4902c14929fab1f42786b0ffe632c097"/></dir><file name="Tabs.php" hash="bdfe3a7185c605ef5c5eab5f211a4165"/><file name="vssver2.scc" hash="bb3c8cc38b6741594d7f88f5e022e7e0"/></dir><file name="Edit.php" hash="906e93dd97f8f563c3df9f053bf281ec"/><file name="Grid.php" hash="da743eaa1031f7f78004215d03b991e3"/><file name="vssver2.scc" hash="86cb601606fae64f83bca55a371fc552"/></dir><file name="Bannerslider.php" hash="7ef59ae67275ece742d91ec56f09e67a"/><file name="Customjs.php" hash="f31ae7353357754ed8e200439ea75508"/><file name="Date.php" hash="1e70ac0a688fc8c7f7d10df30c0bfbac"/><file name="Preview.php" hash="3297dae1e1b3a6defc10741efbc560bf"/><dir name="Renderer"><file name="Edit.php" hash="7dfdefbf45b76d39a746806031eea72b"/><file name="Imagebanner.php" hash="f4b164324958631212530085e1be5620"/><file name="Imagereport.php" hash="0d5613ede542864c71929be4b54fbdc7"/><file name="vssver2.scc" hash="007945d63fdb7a427b286521f27642d1"/></dir><dir name="Report"><dir name="Banner"><file name="Grid.php" hash="8a83cf1fa2e142a747f5c1615e8c97c1"/><file name="vssver2.scc" hash="6deb121d664699d3d90c79ddcde56dcb"/></dir><file name="Grid.php" hash="60743914f2e908e9933c7cb0dd856166"/><file name="vssver2.scc" hash="1e7ff04bc29a13b6557e6329e6789213"/></dir><file name="Report.php" hash="68371e7ec394f99b37a5e09e097e644c"/><file name="Reportbanner.php" hash="8fb1e5085fe0eef718b9a33a3c510ee2"/><dir name="Standardslider"><file name="Grid.php" hash="c0262311bebbf1fea77b91822424ba20"/><file name="vssver2.scc" hash="bdf98a830ce1513e6bbab27eb42bdc45"/></dir><file name="Standardslider.php" hash="9ba4720a6f4d423933b95ac43b6e1522"/><dir name="System"><dir name="Configuration"><file name="Implementcode.php" hash="b17f1e5971fb73925d002886642deec7"/><file name="vssver2.scc" hash="0f306dd4cd372ed77518ceae34d211b4"/></dir></dir><file name="vssver2.scc" hash="fa117d8c97bb8d8c7f8fef5fea602213"/></dir><file name="Bannerslider.php" hash="9695e173db768740cebb1f5e1b3a4dad"/><file name="Default.php" hash="aaf65ddfc79c8ae025fc38d8f0df74ea"/><file name="vssver2.scc" hash="e3ca9f283c154c236e80f4c59bdb8101"/></dir><dir name="Helper"><file name="Data.php" hash="2eac9eb6ff30b85b287ffb4a96dbd4a7"/><file name="vssver2.scc" hash="06a67c7b17bcb165ef2935b03d2a4c6d"/></dir><dir name="Model"><file name="Banner.php" hash="4b3e613f8cf47ee441f4d3ad5b080303"/><file name="Bannerslider.php" hash="4db539f951673cf3f3c4ed7aaad4f691"/><dir name="Mysql4"><dir name="Banner"><file name="Collection.php" hash="5f0146147c5d02eb2b26e904eac2bd1e"/><file name="vssver2.scc" hash="dd68ee4ad4e13c13759b8aa6e606ad13"/></dir><file name="Banner.php" hash="883bbd3352133e62b692cf6df710bc5a"/><dir name="Bannerslider"><file name="Collection.php" hash="df57e1c5db0cfac84b9e7c4b813a7a64"/><file name="vssver2.scc" hash="bd6a40f5a282f2d57dc77eec0db5ca42"/></dir><file name="Bannerslider.php" hash="e4c35a582e312bb4c68cd85b759c2a83"/><dir name="Report"><file name="Collection.php" hash="7271ab3d4c8a89a28644be673d4e4b69"/><file name="vssver2.scc" hash="34d252096a5522b05614e57bf02b963c"/></dir><file name="Report.php" hash="d7f6df3f5942f8dd8834e84264e2e9dd"/><dir name="Value"><file name="Collection.php" hash="63dc1dbd200f56e635a3f39171b962f7"/><file name="vssver2.scc" hash="8d5443a73775f46198c2aa7132c96f5b"/></dir><file name="Value.php" hash="22d13761be784b7f292c757e664ccbdf"/><file name="vssver2.scc" hash="0b3bcc4f0fd91fe69b423112143c9454"/></dir><file name="Observer.php" hash="b148a10fb2c3c5e77918f7d3b0c4c8ba"/><file name="Report.php" hash="912d542454da0542e451c69b8bc14d29"/><file name="Select.php" hash="56ada2d8493233b88761f66a55377f1f"/><file name="Status.php" hash="dd11fe0f53dbc43683db6d78c68f0866"/><file name="Value.php" hash="89daa2bb4164babd83647a053fdfe872"/><file name="vssver2.scc" hash="325d76862402f86fba5909f2c129fdcc"/></dir><dir name="controllers"><dir name="Adminhtml"><dir name="Bannerslider"><file name="BannerController.php" hash="4b63a2d86ad2eef28a40c962d6f8e619"/><file name="BannersliderController.php" hash="da8503a36d7ca4febb1f7c9a042cef2c"/><file name="ReportController.php" hash="bba8c2a1fb3d9c74e2880a497f5b1091"/><file name="StandardsliderController.php" hash="c61794c35f24131db12c9755fa6454ea"/></dir><file name="vssver2.scc" hash="d4597cdc42394eaa1fe3144fefdec29d"/></dir><file name="IndexController.php" hash="be957eac7bdbaa79a29159904039a698"/><file name="vssver2.scc" hash="53e80eb3df0a2f8e7d21a7abb2666e4e"/></dir><dir name="etc"><file name="adminhtml.xml" hash="7468e40e1ade56bd630e54f2350ec11e"/><file name="config.xml" hash="f5e360df4c1d72f27627815aa831dee6"/><file name="system.xml" hash="9c5231310bfebc180fb6d7e73b5a73a6"/><file name="vssver2.scc" hash="2200362794e503188615e41aaf936888"/></dir><dir name="sql"><dir name="bannerslider_setup"><file name="mysql4-install-3.0.0.php" hash="74a72deccce57fa9b00653687f0acb5d"/><file name="mysql4-upgrade-1.0.0-3.0.0.php" hash="74a72deccce57fa9b00653687f0acb5d"/><file name="mysql4-upgrade-1.0.1-3.0.0.php" hash="74a72deccce57fa9b00653687f0acb5d"/><file name="mysql4-upgrade-1.0.2-3.0.0.php" hash="74a72deccce57fa9b00653687f0acb5d"/><file name="mysql4-upgrade-1.0.3-3.0.0.php" hash="74a72deccce57fa9b00653687f0acb5d"/><file name="mysql4-upgrade-2.0.0-3.0.0.php" hash="74a72deccce57fa9b00653687f0acb5d"/><file name="mysql4-upgrade-2.0.1-3.0.0.php" hash="74a72deccce57fa9b00653687f0acb5d"/><file name="mysql4-upgrade-2.0.2-3.0.0.php" hash="74a72deccce57fa9b00653687f0acb5d"/><file name="vssver2.scc" hash="7a0b509329ccac8a2183ea4a03a336d4"/></dir></dir></dir></dir></target><target name="magedesign"><dir name="adminhtml"><dir name="default"><dir name="default"><dir name="layout"><file name="bannerslider.xml" hash="8112b340ec2651fe8dd7dfacd338dcda"/></dir><dir name="template"><dir name="bannerslider"><file name="addbanner.phtml" hash="51f2a01675d39af4f7d14c60fb326b91"/><file name="addbutton.phtml" hash="efd14d329b8d752286b454db4cd6c2c4"/><file name="categories.phtml" hash="f5430ea67515da71bcd7ab3c4d166eba"/><file name="customjs.phtml" hash="c80168c8e1297e69c00d6516eca24d01"/><file name="date.phtml" hash="d03da284e254b1e3449d7bb4c5e2627d"/><file name="standardslider.phtml" hash="032153da9adc7811c3839ef5a582f71d"/><file name="vssver2.scc" hash="1580451d206aa6d82313acb46e018881"/></dir></dir></dir></dir></dir><dir name="frontend"><dir name="base"><dir name="default"><dir name="layout"><file name="bannerslider.xml" hash="cf9a10a31b497c3cbe85df6dfa0cbe23"/><file name="vssver2.scc" hash="132a461d8624405f4ee6fcbdeb88bf2e"/></dir><dir name="template"><dir name="bannerslider"><file name="bannerslider.phtml" hash="bdd245f2f1ce86ee5abbe9f153b4d5ef"/><file name="note.phtml" hash="cba58992ffa05f9dd92b51b4356bba17"/><file name="popup.phtml" hash="042d70aa32586254b0e3248d93f2e661"/><file name="slider1.phtml" hash="82cc2da80806cb2720577b5d454b89e4"/><file name="slider10.phtml" hash="0e1811bf5808696bab0136e7f7184772"/><file name="slider2.phtml" hash="8aae4e8d044838b4223d37c178722714"/><file name="slider3.phtml" hash="a14c49f5cbd3725315916e112a19b2d3"/><file name="slider4.phtml" hash="54be02eed7fa87e6e8461fa46784a6e5"/><file name="slider5.phtml" hash="d41d8cd98f00b204e9800998ecf8427e"/><file name="slider6.phtml" hash="d41d8cd98f00b204e9800998ecf8427e"/><file name="slider7.phtml" hash="18eea4668e6b10a35e28b7bc22d91b9a"/><file name="slider8.phtml" hash="575557f38dbfc3b5e50e91ac671d68f5"/><file name="slider9.phtml" hash="bc47072256967bccff9cb07cf5e5848b"/><file name="vssver2.scc" hash="7277c53f67047125fd3b77ff42151808"/></dir></dir></dir></dir></dir></target><target name="mageetc"><dir name="modules"><file name="Magestore_Bannerslider.xml" hash="db9a0aa8218ec4551c077a8261cd1225"/></dir></target><target name="magelocale"><dir name="en_US"><file name="Magestore_Bannerslider.csv" hash="858aa3387d6f7fa1a10b0e0dfc7c1bcc"/></dir></target><target name="magemedia"><dir name="bannerslider"><file name="bannerslider-ex1.png" hash="f925601f7d510c353c34d221f668b3f5"/><file name="bannerslider-ex2.png" hash="d55e175b8d2c4e04b053f9e5a78eec09"/><file name="bannerslider-ex3.png" hash="5d27eb9efb2c87c38cf9c51263378127"/><file name="bannerslider-ex4.PNG" hash="3aa3919637166ede6271f62d84cc473e"/><file name="bannerslider-ex5.PNG" hash="a86c1217b9b94db5fbc79b48e34ece41"/><file name="vssver2.scc" hash="9a7c74e959159f386a674798d8f4c146"/></dir></target><target name="mageskin"><dir name="adminhtml"><dir name="default"><dir name="default"><dir name="css"><dir name="magestore"><dir name="bannerslider"><file name="default.css" hash="3400d49b477c06bd640bc5a8fffab6fa"/><file name="flexslider.css" hash="1413934da4074535265cb7cd6d9de893"/><dir name="image"><file name="arrow-left.png" hash="0123ebda12226d3abb6981ab39a16408"/><file name="arrow-pause.png" hash="324a64404a26d6ec392720247b51fbc9"/><file name="arrow-play.png" hash="5867994d1fee70cb7657054493be3e13"/><file name="arrow-right.png" hash="3e79ef41ec3a17f1c3abc3dc5446a7dd"/><file name="bg_direction_nav.png" hash="f595730bbfc9b24daa4c834f8c8660b9"/><file name="close-tiny.png" hash="eca7a7b15c08e0292e33d4ac18f58617"/><file name="close.png" hash="7b0f8459a7e2389a20baf18b437ebdbf"/><file name="cs_leftImg.jpg" hash="3d5d181d0e5656d6e5593ab791c0d9a2"/><file name="cs_rightImg.jpg" hash="b1b41041e94af2225da0022cabf317bf"/><dir name="demo"><file name="kitchen_adventurer_caramel.jpg" hash="8cfdcfbfea2703e52cd203b033302248"/><file name="kitchen_adventurer_cheesecake_brownie.jpg" hash="5d2057ce7b682e9a12ecc34cf17b9108"/><file name="kitchen_adventurer_donut.jpg" hash="09b6523d1a240a58ae5ccf874cd86529"/><file name="kitchen_adventurer_lemon.jpg" hash="23134dfb0166baf49cf74a643728fb48"/><file name="logo.png" hash="122ff533e88051eda109bcd298b0702b"/><file name="vssver2.scc" hash="10b12d547b3f0834f076f7206448c20e"/></dir><dir name="slide1"><file name="jquery-slider-rotator-left.png" hash="8110266e25fd39d5c815b52134a7aaa4"/><file name="jquery-slider-rotator-right.png" hash="bc78a72b83fae168301d8b5eaf8d3a53"/><file name="jquery-slider-theme.png" hash="bbe4889b6f090abdf123e7375087133c"/><file name="vssver2.scc" hash="5092622bb994361966d8737ef7bfafab"/></dir><dir name="slide2"><file name="jquery-slider-theme.png" hash="6628642682e50a48fdd9a8d3817fa363"/><file name="vssver2.scc" hash="4132c4aae837a8438fccc16f742a03c2"/></dir><dir name="slide3"><file name="jquery-slider-theme.png" hash="c078b23fcea27602af60b159474955d7"/><file name="vssver2.scc" hash="172344bb2c8e5966a46168e490f776c0"/></dir><dir name="slide4"><file name="jquery-slider-theme.png" hash="0fcf2310ad64a7ec4978cf3dc4c401ce"/><file name="vssver2.scc" hash="239afad2c8d2cf5d7597b75a31bbdc1a"/></dir><file name="vssver2.scc" hash="172d0fd31259f7513cdf5b4862d6304c"/></dir><file name="jquery.ennui.contentslider.css" hash="2e92af4b8f10fd366b6b2415437e4195"/><file name="slider1.css" hash="1186ceff6daede0a9a42b3d14042d0f5"/><file name="slider2.css" hash="473a870eaf23dc75d47fa7f7f0c3ef39"/><file name="slider3.css" hash="929e439d47e6e3fb3d74f81170ebea34"/><file name="slider4.css" hash="538cc7e2a9cb55f4a8e4ad7025628379"/><file name="vssver2.scc" hash="74f6dc5554c47e567d18c78b846c7d6a"/></dir><file name="magenotification.css" hash="6fc00a4e8aa9106db4e62420ebc9efe9"/><file name="notice_price.gif" hash="4b38fffa255125c1e6cdfdd740dd2e56"/></dir><dir name="tinybox"><dir name="images"><file name="preload.gif" hash="bf3ec68db23e93ba2ec795ef558e96da"/><file name="rhino.jpg" hash="d00bad1ec05584e10a5601ec103aff72"/></dir><file name="style.css" hash="e3016ee232fbf3c6f780255002703237"/></dir></dir></dir></dir></dir><dir name="frontend"><dir name="base"><dir name="default"><dir name="css"><dir name="magestore"><dir name="bannerslider"><file name="flexslider.css" hash="c1d24aebc30df115149ee0d63b8ba2e6"/><dir name="image"><file name="arrow-left.png" hash="0123ebda12226d3abb6981ab39a16408"/><file name="arrow-pause.png" hash="324a64404a26d6ec392720247b51fbc9"/><file name="arrow-play.png" hash="5867994d1fee70cb7657054493be3e13"/><file name="arrow-right.png" hash="3e79ef41ec3a17f1c3abc3dc5446a7dd"/><file name="bg_direction_nav.png" hash="f595730bbfc9b24daa4c834f8c8660b9"/><file name="close-tiny.png" hash="eca7a7b15c08e0292e33d4ac18f58617"/><file name="close.png" hash="7b0f8459a7e2389a20baf18b437ebdbf"/><file name="cs_leftImg.jpg" hash="3d5d181d0e5656d6e5593ab791c0d9a2"/><file name="cs_rightImg.jpg" hash="b1b41041e94af2225da0022cabf317bf"/><file name="note.png" hash="12765eb6c84412ee6fc28335edcb551d"/><file name="note2.png" hash="bdcea0ba5aaecd309fb1d2119e769d2f"/><dir name="slide1"><file name="jquery-slider-rotator-left.png" hash="8110266e25fd39d5c815b52134a7aaa4"/><file name="jquery-slider-rotator-right.png" hash="bc78a72b83fae168301d8b5eaf8d3a53"/><file name="jquery-slider-theme.png" hash="bbe4889b6f090abdf123e7375087133c"/><file name="vssver2.scc" hash="ae39d5e213b66bf2736926f41c476c88"/></dir><dir name="slide2"><file name="jquery-slider-theme.png" hash="6628642682e50a48fdd9a8d3817fa363"/><file name="vssver2.scc" hash="2c5adfdb620ec8b260cb08b41257ab05"/></dir><dir name="slide3"><file name="jquery-slider-theme.png" hash="c078b23fcea27602af60b159474955d7"/><file name="vssver2.scc" hash="17b6be85760801b598f6fa0545735373"/></dir><dir name="slide4"><file name="jquery-slider-theme.png" hash="0fcf2310ad64a7ec4978cf3dc4c401ce"/><file name="vssver2.scc" hash="26a1a2ac3ed077da63c1963f28168847"/></dir><file name="vssver2.scc" hash="849f50c2ca44899f7703eba04ad7d991"/></dir><file name="note.css" hash="45a0c019bcbeac078f4689b45115623f"/><file name="popup.css" hash="04cec6f6d78be967aa80c61615fe20fa"/><file name="slider1.css" hash="75c68487c0c285f0231939766dfa5544"/><file name="slider2.css" hash="51acb6fd8c806735df75865cf7c66ba9"/><file name="slider3.css" hash="0e6126c497a123542f20826a45222325"/><file name="slider4.css" hash="7b42ce57e9cadea3974a0154da44d603"/><file name="vssver2.scc" hash="3424601920e9ddf09d158c0d14e23abc"/></dir></dir></dir></dir></dir></dir></target><target name="mage"><dir name="js"><dir name="magestore"><dir name="bannerslider"><file name="jquery-1.7.min.js" hash="2a410e352d5137af6e651365228eebbd"/><file name="jquery.ads.note.css" hash="f5e183ae7abceb03977492cad9245101"/><file name="jquery.ads.note.js" hash="47fab367bee030373653c7f340c291a3"/><file name="jquery.flexslider.js" hash="daea989df260450f028d887465adfb1f"/><file name="jquery.slider.css" hash="09c96a81b008a1759305795eb0d65e26"/><file name="lightbox.js" hash="0f415775ee66a5292f44049e8f96d8c2"/><file name="prototip.js" hash="a3df1c2770578caf8bc4c33c5248b478"/><dir name="slider1"><file name="jquery.slider.min.js" hash="0b43bcb534325ca89610e4c4f31e5d6b"/><file name="vssver2.scc" hash="fddf8e41471aeda593719b289d2ff0f5"/></dir><file name="tooltip.js" hash="2a4c59e541c17227011d4157f65ad5df"/><file name="vssver2.scc" hash="32efc7562d5d168dcf262a339790a98f"/></dir></dir><dir name="tinybox"><file name="tinybox.js" hash="2ca7fcb7fefc5e8d85887f3c6dc6e315"/></dir></dir></target></contents>
|
16 |
<compatible/>
|
17 |
+
<dependencies><required><php><min>5.3.0</min><max>7.0.0</max></php><package><name>Magestore_OneStepCheckout</name><channel>community</channel><min>1.6.0.0</min><max>1.9.2.4</max></package><extension><name>gd</name><min>2.0.28</min><max>3.0</max></extension></required></dependencies>
|
18 |
</package>
|