easymaintanance_module - Version 0.1.5

Version Notes

-enhancement

Download this release

Release Info

Developer Biztech
Extension easymaintanance_module
Version 0.1.5
Comparing to
See all releases


Code changes from version 0.1.4 to 0.1.5

EasySiteMaintenance.pdf ADDED
Binary file
app/code/local/Biztech/Easymaintanance/Model/Notification.php CHANGED
@@ -1,5 +1,4 @@
1
  <?php
2
-
3
  class Biztech_Easymaintanance_Model_Notification extends Mage_Core_Model_Abstract
4
  {
5
  public function _construct()
1
  <?php
 
2
  class Biztech_Easymaintanance_Model_Notification extends Mage_Core_Model_Abstract
3
  {
4
  public function _construct()
app/code/local/Biztech/Easymaintanance/Model/Observer.php CHANGED
@@ -7,61 +7,154 @@ class Biztech_Easymaintanance_Model_Observer {
7
  public function initControllerRouters($request) {
8
  $adminFrontName = Mage::getConfig()->getNode('admin/routers/adminhtml/args/frontName');
9
  $redirect_url = array_map('trim', explode("\n", Mage::getStoreConfig('easymaintanance/general/redirecturl', Mage::app()->getStore())));
10
-
11
-
12
- $area = Mage::app()->getRequest()->getOriginalPathInfo();
13
-
 
 
 
 
14
  if ((!preg_match('/' . $adminFrontName . '/', $area)) && (!preg_match('/postFeedback/', $area)) &&
15
  (!preg_match('/postnotify/', $area)) && (!in_array($area, $redirect_url)) && (!preg_match('/checkTimer/', $area)) &&
16
- Mage::app()->getRequest()->getBaseUrl() != "/downloader") {
17
 
18
  $storeId = Mage::app()->getStore()->getStoreId();
19
  $isEnabled = Mage::getStoreConfig('easymaintanance/general/enabled', $storeId);
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
20
 
21
- if ($isEnabled == 1) {
22
- $allowedIPs = Mage::getStoreConfig('easymaintanance/general/allowedIPs', $storeId);
23
- $allowedIPs = preg_replace('/ /', '', $allowedIPs);
24
- $IPs = array();
25
- if ('' !== trim($allowedIPs)) {
26
- $IPs = explode(',', $allowedIPs);
27
- }
28
- $currentIP = $_SERVER['REMOTE_ADDR'];
29
- $allowForAdmin = Mage::getStoreConfig('easymaintanance/general/allowforadmin', $storeId);
30
- $adminIp = null;
31
- if ($allowForAdmin == 1) {
32
- Mage::getSingleton('core/session', array('name' => 'adminhtml'));
33
- $adminSession = Mage::getSingleton('admin/session');
34
- if ($adminSession->isLoggedIn()) {
35
- $adminIp = $adminSession['_session_validator_data']['remote_addr'];
 
 
 
 
 
 
 
 
 
36
  }
37
- }
38
- if ($currentIP === $adminIp) {
39
- $this->createLog('Access granted for admin with IP: ' . $currentIP . ' and store ' . $storeId, $storeId);
40
- } else {
41
- if (!in_array($currentIP, $IPs)) {
42
- $this->createLog('Access denied for IP: ' . $currentIP . ' and store ' . $storeId, $storeId);
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
43
 
44
- $html = Mage::getSingleton('core/layout')->createBlock('core/template')->setTemplate('easymaintanance/easymaintanance.phtml')->toHtml();
45
 
46
- if (Mage::getStoreConfig('easymaintanance/contactus/active', $storeId) == 1):
47
- $html .= Mage::getSingleton('core/layout')->createBlock('core/template')->setTemplate('easymaintanance/popup_html.phtml')->toHtml(); endif;
48
- if (Mage::getStoreConfig('easymaintanance/notify/active', $storeId)):
49
- $html .= Mage::getSingleton('core/layout')->createBlock('core/template')->setTemplate('easymaintanance/notify.phtml')->toHtml();
50
- endif;
51
-
52
- if ('' !== $html) {
53
- Mage::getSingleton('core/session', array('name' => 'front'));
54
- $response = $request->getEvent()->getFront()->getResponse();
55
- $response->setHeader('HTTP/1.1', '503 Service Temporarily Unavailable');
56
- $response->setHeader('Status', '503 Service Temporarily Unavailable');
57
- $response->setHeader('Retry-After', '5000');
58
- $response->setBody($html);
59
- $response->sendHeaders();
60
- $response->outputBody();
 
 
 
 
 
61
  }
62
- exit();
63
- } else {
64
- $this->createLog('Access granted for IP: ' . $currentIP . ' and store ' . $storeId, $storeId);
65
  }
66
  }
67
  }
@@ -78,13 +171,13 @@ class Biztech_Easymaintanance_Model_Observer {
78
 
79
  public function timeralert() {
80
  $storeId = Mage::app()->getStore()->getStoreId();
81
- $hour = Mage::getStoreConfig('easymaintanance/timer/timer_hour', $storeId);
82
- $min = Mage::getStoreConfig('easymaintanance/timer/timer_min', $storeId);
83
 
84
  $isEnabled = Mage::getStoreConfig('easymaintanance/general/enabled', $storeId);
85
  if ($isEnabled == 1) {
86
 
87
- $time1 = strtotime(Mage::getStoreConfig('easymaintanance/timer/timer_date',$storeId)." ".$hour.":".$min.":"."00");
88
  $time2 = strtotime(date("m/d/Y H:i:s", Mage::getModel('core/date')->timestamp(time())));
89
 
90
  $minutes_diff = (int)round(abs($time1 - $time2) / 60);
7
  public function initControllerRouters($request) {
8
  $adminFrontName = Mage::getConfig()->getNode('admin/routers/adminhtml/args/frontName');
9
  $redirect_url = array_map('trim', explode("\n", Mage::getStoreConfig('easymaintanance/general/redirecturl', Mage::app()->getStore())));
10
+
11
+ $area = Mage::app()->getRequest()->getOriginalPathInfo();
12
+ $requestUri = Mage::app()->getRequest()->getRequestUri();
13
+
14
+ if($requestUri == "/index.php"){
15
+ $area = "/";
16
+ }
17
+
18
  if ((!preg_match('/' . $adminFrontName . '/', $area)) && (!preg_match('/postFeedback/', $area)) &&
19
  (!preg_match('/postnotify/', $area)) && (!in_array($area, $redirect_url)) && (!preg_match('/checkTimer/', $area)) &&
20
+ Mage::app()->getRequest()->getBaseUrl() != "/downloader" && (strpos($requestUri ,'admin') <= 0)) {
21
 
22
  $storeId = Mage::app()->getStore()->getStoreId();
23
  $isEnabled = Mage::getStoreConfig('easymaintanance/general/enabled', $storeId);
24
+ $timerEnabled = Mage::getStoreConfig('easymaintanance/timer/timer_enabled', $storeId);
25
+
26
+ $date = Mage::getStoreConfig('easymaintanance/timer/timer_start_date',$storeId);
27
+ $hour = Mage::getStoreConfig('easymaintanance/timer/timer_start_hour',$storeId);
28
+ $min = Mage::getStoreConfig('easymaintanance/timer/timer_start_min',$storeId);
29
+
30
+ $end_date = Mage::getStoreConfig('easymaintanance/timer/timer_end_date',$storeId);
31
+ $end_hour = Mage::getStoreConfig('easymaintanance/timer/timer_end_hour',$storeId);
32
+ $end_min = Mage::getStoreConfig('easymaintanance/timer/timer_end_min',$storeId);
33
+
34
+ $start_time = strtotime($date." ".$hour.":".$min.":"."00");
35
+ $end_time = strtotime($end_date." ".$end_hour.":".$end_min.":"."00");
36
+ $current_time = strtotime(date("m/d/Y H:i:s", Mage::getModel('core/date')->timestamp(time())));
37
+ $currentIP = '';
38
+ if ($isEnabled == 1) {
39
+ if($timerEnabled)
40
+ {
41
+ if($start_time <= $current_time && $end_time > $current_time)
42
+ {
43
+ $allowedIPs = Mage::getStoreConfig('easymaintanance/general/allowedIPs', $storeId);
44
+ $allowedIPs = preg_replace('/ /', '', $allowedIPs);
45
+ $IPs = array();
46
+ if ('' !== trim($allowedIPs)) {
47
+ $IPs = explode(',', $allowedIPs);
48
+ }
49
+ $allowForAdmin = Mage::getStoreConfig('easymaintanance/general/allowforadmin', $storeId);
50
+ if($allowedIPs || $allowForAdmin)
51
+ {
52
+ $currentIP = $_SERVER['X-Forwarded-For'];
53
+ if(!$currentIP)
54
+ $currentIP = $_SERVER['HTTP_X_FORWARDED_FOR'];
55
+ if(!$currentIP)
56
+ $currentIP = $_SERVER['REMOTE_ADDR'];
57
+ }
58
+ $adminIp = null;
59
+ if ($allowForAdmin == 1) {
60
+ Mage::getSingleton('core/session', array('name' => 'adminhtml'));
61
+ $adminSession = Mage::getSingleton('admin/session');
62
+ if ($adminSession->isLoggedIn()) {
63
+ $adminIp = $adminSession['_session_validator_data']['x-forwarded-for'];
64
+ if(!$adminIp)
65
+ $adminIp = $adminSession['_session_validator_data']['http_x_forwarded_for'];
66
+ if(!$adminIp)
67
+ $adminIp = $adminSession['_session_validator_data']['remote_addr'];
68
+ }
69
+ }
70
+ if ($currentIP === $adminIp) {
71
+ $this->createLog('Access granted for admin with IP: ' . $currentIP . ' and store ' . $storeId, $storeId);
72
+ } else {
73
+ if (!in_array($currentIP, $IPs)) {
74
+ $this->createLog('Access denied for IP: ' . $currentIP . ' and store ' . $storeId, $storeId);
75
 
76
+ $html = Mage::getSingleton('core/layout')->createBlock('core/template')->setTemplate('easymaintanance/easymaintanance.phtml')->toHtml();
77
+
78
+ if (Mage::getStoreConfig('easymaintanance/contactus/active', $storeId) == 1):
79
+ $html .= Mage::getSingleton('core/layout')->createBlock('core/template')->setTemplate('easymaintanance/popup_html.phtml')->toHtml();
80
+ endif;
81
+ if (Mage::getStoreConfig('easymaintanance/notify/active', $storeId)):
82
+ $html .= Mage::getSingleton('core/layout')->createBlock('core/template')->setTemplate('easymaintanance/notify.phtml')->toHtml();
83
+ endif;
84
+
85
+ if ('' !== $html) {
86
+ Mage::getSingleton('core/session', array('name' => 'front'));
87
+ $response = $request->getEvent()->getFront()->getResponse();
88
+ $response->setHeader('HTTP/1.1', '503 Service Temporarily Unavailable');
89
+ $response->setHeader('Status', '503 Service Temporarily Unavailable');
90
+ $response->setHeader('Retry-After', '5000');
91
+ $response->setBody($html);
92
+ $response->sendHeaders();
93
+ $response->outputBody();
94
+ }
95
+ exit();
96
+ } else {
97
+ $this->createLog('Access granted for IP: ' . $currentIP . ' and store ' . $storeId, $storeId);
98
+ }
99
+ }
100
  }
101
+ }else{
102
+ $allowedIPs = Mage::getStoreConfig('easymaintanance/general/allowedIPs', $storeId);
103
+ $allowedIPs = preg_replace('/ /', '', $allowedIPs);
104
+ $IPs = array();
105
+ if ('' !== trim($allowedIPs)) {
106
+ $IPs = explode(',', $allowedIPs);
107
+ }
108
+ $allowForAdmin = Mage::getStoreConfig('easymaintanance/general/allowforadmin', $storeId);
109
+ if($allowedIPs || $allowForAdmin)
110
+ {
111
+ $currentIP = $_SERVER['X-Forwarded-For'];
112
+ if(!$currentIP)
113
+ $currentIP = $_SERVER['HTTP_X_FORWARDED_FOR'];
114
+ if(!$currentIP)
115
+ $currentIP = $_SERVER['REMOTE_ADDR'];
116
+ }
117
+ $adminIp = null;
118
+ if ($allowForAdmin == 1) {
119
+ Mage::getSingleton('core/session', array('name' => 'adminhtml'));
120
+ $adminSession = Mage::getSingleton('admin/session');
121
+ if ($adminSession->isLoggedIn()) {
122
+ $adminIp = $adminSession['_session_validator_data']['x-forwarded-for'];
123
+ if(!$adminIp)
124
+ $adminIp = $adminSession['_session_validator_data']['http_x_forwarded_for'];
125
+ if(!$adminIp)
126
+ $adminIp = $adminSession['_session_validator_data']['remote_addr'];
127
+ }
128
+ }
129
+ if ($currentIP === $adminIp) {
130
+ $this->createLog('Access granted for admin with IP: ' . $currentIP . ' and store ' . $storeId, $storeId);
131
+ } else {
132
+ if (!in_array($currentIP, $IPs)) {
133
+ $this->createLog('Access denied for IP: ' . $currentIP . ' and store ' . $storeId, $storeId);
134
 
135
+ $html = Mage::getSingleton('core/layout')->createBlock('core/template')->setTemplate('easymaintanance/easymaintanance.phtml')->toHtml();
136
 
137
+ if (Mage::getStoreConfig('easymaintanance/contactus/active', $storeId) == 1):
138
+ $html .= Mage::getSingleton('core/layout')->createBlock('core/template')->setTemplate('easymaintanance/popup_html.phtml')->toHtml();
139
+ endif;
140
+ if (Mage::getStoreConfig('easymaintanance/notify/active', $storeId)):
141
+ $html .= Mage::getSingleton('core/layout')->createBlock('core/template')->setTemplate('easymaintanance/notify.phtml')->toHtml();
142
+ endif;
143
+
144
+ if ('' !== $html) {
145
+ Mage::getSingleton('core/session', array('name' => 'front'));
146
+ $response = $request->getEvent()->getFront()->getResponse();
147
+ $response->setHeader('HTTP/1.1', '503 Service Temporarily Unavailable');
148
+ $response->setHeader('Status', '503 Service Temporarily Unavailable');
149
+ $response->setHeader('Retry-After', '5000');
150
+ $response->setBody($html);
151
+ $response->sendHeaders();
152
+ $response->outputBody();
153
+ }
154
+ exit();
155
+ } else {
156
+ $this->createLog('Access granted for IP: ' . $currentIP . ' and store ' . $storeId, $storeId);
157
  }
 
 
 
158
  }
159
  }
160
  }
171
 
172
  public function timeralert() {
173
  $storeId = Mage::app()->getStore()->getStoreId();
174
+ $hour = Mage::getStoreConfig('easymaintanance/timer/timer_end_hour', $storeId);
175
+ $min = Mage::getStoreConfig('easymaintanance/timer/timer_end_min', $storeId);
176
 
177
  $isEnabled = Mage::getStoreConfig('easymaintanance/general/enabled', $storeId);
178
  if ($isEnabled == 1) {
179
 
180
+ $time1 = strtotime(Mage::getStoreConfig('easymaintanance/timer/timer_end_date',$storeId)." ".$hour.":".$min.":"."00");
181
  $time2 = strtotime(date("m/d/Y H:i:s", Mage::getModel('core/date')->timestamp(time())));
182
 
183
  $minutes_diff = (int)round(abs($time1 - $time2) / 60);
app/code/local/Biztech/Easymaintanance/Model/Validatehour.php ADDED
@@ -0,0 +1,14 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?php
2
+
3
+
4
+ class Biztech_Easymaintanance_Model_Validatehour extends Mage_Core_Model_Config_Data {
5
+
6
+ public function _afterSave()
7
+ {
8
+ $hour = $this->getValue();
9
+ if (!is_numeric($hour) || $hour < 0 || $hour > 24) {
10
+ Mage::throwException("Please mention hour in 24-hour format");
11
+ }
12
+ return parent::_afterSave();
13
+ }
14
+ }
app/code/local/Biztech/Easymaintanance/Model/Validatemin.php ADDED
@@ -0,0 +1,14 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?php
2
+
3
+
4
+ class Biztech_Easymaintanance_Model_Validatemin extends Mage_Core_Model_Config_Data {
5
+
6
+ public function _afterSave()
7
+ {
8
+ $min = $this->getValue();
9
+ if (!is_numeric($min) || $min < 0 || $min > 60) {
10
+ Mage::throwException("Minute should be numeric or should not be less than 0 and greater than 60.");
11
+ }
12
+ return parent::_afterSave();
13
+ }
14
+ }
app/code/local/Biztech/Easymaintanance/controllers/Adminhtml/NotificationController.php CHANGED
@@ -1,6 +1,6 @@
1
  <?php
2
 
3
- class Biztech_Easymaintanance_Adminhtml_NotificationController extends Mage_Adminhtml_Controller_action
4
  {
5
 
6
  const XML_PATH_EMAIL_SENDER = 'contacts/email/sender_email_identity';
@@ -11,11 +11,12 @@
11
  $this->loadLayout()
12
  ->_setActiveMenu('notification/items')
13
  ->_addBreadcrumb(Mage::helper('adminhtml')->__('Notifications Manager'), Mage::helper('adminhtml')->__('Notification Manager'));
 
14
 
15
  return $this;
16
  }
17
 
18
- public function indexAction() {
19
 
20
  $this->_initAction()
21
  ->renderLayout();
1
  <?php
2
 
3
+ class Biztech_Easymaintanance_Adminhtml_NotificationController extends Mage_Adminhtml_Controller_Action
4
  {
5
 
6
  const XML_PATH_EMAIL_SENDER = 'contacts/email/sender_email_identity';
11
  $this->loadLayout()
12
  ->_setActiveMenu('notification/items')
13
  ->_addBreadcrumb(Mage::helper('adminhtml')->__('Notifications Manager'), Mage::helper('adminhtml')->__('Notification Manager'));
14
+ $this->_addContent($this->getLayout()->createBlock('easymaintanance/adminhtml_notification'));
15
 
16
  return $this;
17
  }
18
 
19
+ public function notificationAction() {
20
 
21
  $this->_initAction()
22
  ->renderLayout();
app/code/local/Biztech/Easymaintanance/etc/config.xml CHANGED
@@ -10,7 +10,7 @@
10
  <config>
11
  <modules>
12
  <Biztech_Easymaintanance>
13
- <version>0.1.4</version>
14
  </Biztech_Easymaintanance>
15
  </modules>
16
  <frontend>
@@ -40,7 +40,7 @@
40
  </modules>
41
  </translate>
42
  </frontend>
43
- <admin>
44
  <routers>
45
  <easymaintanance>
46
  <use>admin</use>
@@ -50,8 +50,19 @@
50
  </args>
51
  </easymaintanance>
52
  </routers>
 
 
 
 
 
 
 
 
 
 
 
53
  </admin>
54
- <adminhtml>
55
  <menu>
56
  <easymaintanance module="easymaintanance">
57
  <title>EasySiteMaintenance</title>
@@ -60,12 +71,12 @@
60
  <items module="easymaintanance">
61
  <title>Manage Notification</title>
62
  <sort_order>0</sort_order>
63
- <action>easymaintanance/adminhtml_notification</action>
64
  </items>
65
  </children>
66
  </easymaintanance>
67
  </menu>
68
- <acl>
69
  <resources>
70
  <all>
71
  <title>Allow Everything</title>
@@ -90,7 +101,8 @@
90
  </children>
91
  </admin>
92
  </resources>
93
- </acl>
 
94
  <layout>
95
  <updates>
96
  <easymaintanance>
10
  <config>
11
  <modules>
12
  <Biztech_Easymaintanance>
13
+ <version>0.1.5</version>
14
  </Biztech_Easymaintanance>
15
  </modules>
16
  <frontend>
40
  </modules>
41
  </translate>
42
  </frontend>
43
+ <!--<admin>
44
  <routers>
45
  <easymaintanance>
46
  <use>admin</use>
50
  </args>
51
  </easymaintanance>
52
  </routers>
53
+ </admin>-->
54
+ <admin>
55
+ <routers>
56
+ <adminhtml>
57
+ <args>
58
+ <modules>
59
+ <easymaintanance after="Mage_Adminhtml">Biztech_Easymaintanance_Adminhtml</easymaintanance>
60
+ </modules>
61
+ </args>
62
+ </adminhtml>
63
+ </routers>
64
  </admin>
65
+ <adminhtml>
66
  <menu>
67
  <easymaintanance module="easymaintanance">
68
  <title>EasySiteMaintenance</title>
71
  <items module="easymaintanance">
72
  <title>Manage Notification</title>
73
  <sort_order>0</sort_order>
74
+ <action>adminhtml/notification/notification</action>
75
  </items>
76
  </children>
77
  </easymaintanance>
78
  </menu>
79
+ <acl>
80
  <resources>
81
  <all>
82
  <title>Allow Everything</title>
101
  </children>
102
  </admin>
103
  </resources>
104
+ </acl>
105
+
106
  <layout>
107
  <updates>
108
  <easymaintanance>
app/code/local/Biztech/Easymaintanance/etc/system.xml CHANGED
@@ -176,9 +176,10 @@
176
  <show_in_website>1</show_in_website>
177
  <show_in_store>1</show_in_store>
178
  </timer_text>
179
- <timer_date translate="label">
180
- <label>Date</label>
181
- <comment>Add Date for set timer</comment>
 
182
  <frontend_type>text</frontend_type>
183
  <frontend_model>easymaintanance/adminhtml_system_config_date</frontend_model>
184
  <sort_order>4</sort_order>
@@ -187,21 +188,25 @@
187
  <show_in_store>1</show_in_store>
188
  <validate>required-entry</validate>
189
  <depends><timer_enabled>1</timer_enabled></depends>
190
- </timer_date>
191
- <timer_hour translate="label">
192
- <label>Hour</label>
193
- <comment>Add Hour in 24-hour format when you want to finish timer</comment>
 
194
  <frontend_type>text</frontend_type>
 
195
  <sort_order>5</sort_order>
196
  <show_in_default>1</show_in_default>
197
  <show_in_website>1</show_in_website>
198
  <show_in_store>1</show_in_store>
199
  <validate>required-entry</validate>
200
  <depends><timer_enabled>1</timer_enabled></depends>
201
- </timer_hour>
202
- <timer_min translate="label">
203
- <label>Minute</label>
204
- <comment>Add Minute when you want to finish timer</comment>
 
 
205
  <frontend_type>text</frontend_type>
206
  <sort_order>6</sort_order>
207
  <show_in_default>1</show_in_default>
@@ -209,12 +214,53 @@
209
  <show_in_store>1</show_in_store>
210
  <validate>required-entry</validate>
211
  <depends><timer_enabled>1</timer_enabled></depends>
212
- </timer_min>
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
213
  <timer_alert translate="label">
214
  <label>Alert Minutes</label>
215
  <comment>Add Minute to notify when timer comes to end</comment>
216
  <frontend_type>text</frontend_type>
217
- <sort_order>7</sort_order>
218
  <show_in_default>1</show_in_default>
219
  <show_in_website>1</show_in_website>
220
  <show_in_store>1</show_in_store>
@@ -222,7 +268,7 @@
222
  <timer_email translate="label">
223
  <label>Recipient Email</label>
224
  <frontend_type>text</frontend_type>
225
- <sort_order>8</sort_order>
226
  <show_in_default>1</show_in_default>
227
  <show_in_website>1</show_in_website>
228
  <show_in_store>1</show_in_store>
@@ -230,7 +276,7 @@
230
  <timer_email_template translate="label">
231
  <label>Email Template</label>
232
  <frontend_type>textarea</frontend_type>
233
- <sort_order>9</sort_order>
234
  <show_in_default>1</show_in_default>
235
  <show_in_website>1</show_in_website>
236
  <show_in_store>1</show_in_store>
176
  <show_in_website>1</show_in_website>
177
  <show_in_store>1</show_in_store>
178
  </timer_text>
179
+
180
+ <timer_start_date translate="label">
181
+ <label>Start Date</label>
182
+ <comment>Add Date for Start timer</comment>
183
  <frontend_type>text</frontend_type>
184
  <frontend_model>easymaintanance/adminhtml_system_config_date</frontend_model>
185
  <sort_order>4</sort_order>
188
  <show_in_store>1</show_in_store>
189
  <validate>required-entry</validate>
190
  <depends><timer_enabled>1</timer_enabled></depends>
191
+ </timer_start_date>
192
+
193
+ <timer_end_date translate="label">
194
+ <label>End Date</label>
195
+ <comment>Add Date for set timer</comment>
196
  <frontend_type>text</frontend_type>
197
+ <frontend_model>easymaintanance/adminhtml_system_config_date</frontend_model>
198
  <sort_order>5</sort_order>
199
  <show_in_default>1</show_in_default>
200
  <show_in_website>1</show_in_website>
201
  <show_in_store>1</show_in_store>
202
  <validate>required-entry</validate>
203
  <depends><timer_enabled>1</timer_enabled></depends>
204
+ </timer_end_date>
205
+
206
+ <timer_start_hour translate="label">
207
+ <label>Start Hour</label>
208
+ <comment>Add Hour in 24-hour format when you want to start timer</comment>
209
+ <backend_model>easymaintanance/validatehour</backend_model>
210
  <frontend_type>text</frontend_type>
211
  <sort_order>6</sort_order>
212
  <show_in_default>1</show_in_default>
214
  <show_in_store>1</show_in_store>
215
  <validate>required-entry</validate>
216
  <depends><timer_enabled>1</timer_enabled></depends>
217
+ </timer_start_hour>
218
+
219
+
220
+ <timer_end_hour translate="label">
221
+ <label>End Hour</label>
222
+ <comment>Add Hour in 24-hour format when you want to finish timer</comment>
223
+ <backend_model>easymaintanance/validatehour</backend_model>
224
+ <frontend_type>text</frontend_type>
225
+ <sort_order>7</sort_order>
226
+ <show_in_default>1</show_in_default>
227
+ <show_in_website>1</show_in_website>
228
+ <show_in_store>1</show_in_store>
229
+ <validate>required-entry</validate>
230
+ <depends><timer_enabled>1</timer_enabled></depends>
231
+ </timer_end_hour>
232
+
233
+ <timer_start_min translate="label">
234
+ <label>Start Minute</label>
235
+ <comment>Add Minute when you want to start timer. It should not be greater than 60.</comment>
236
+ <backend_model>easymaintanance/validatemin</backend_model>
237
+ <frontend_type>text</frontend_type>
238
+ <sort_order>8</sort_order>
239
+ <show_in_default>1</show_in_default>
240
+ <show_in_website>1</show_in_website>
241
+ <show_in_store>1</show_in_store>
242
+ <validate>required-entry</validate>
243
+ <depends><timer_enabled>1</timer_enabled></depends>
244
+ </timer_start_min>
245
+
246
+ <timer_end_min translate="label">
247
+ <label>End Minute</label>
248
+ <comment>Add Minute when you want to finish timer. It should not be greater than 60.</comment>
249
+ <backend_model>easymaintanance/validatemin</backend_model>
250
+ <frontend_type>text</frontend_type>
251
+ <sort_order>9</sort_order>
252
+ <show_in_default>1</show_in_default>
253
+ <show_in_website>1</show_in_website>
254
+ <show_in_store>1</show_in_store>
255
+ <validate>required-entry</validate>
256
+ <depends><timer_enabled>1</timer_enabled></depends>
257
+ </timer_end_min>
258
+
259
  <timer_alert translate="label">
260
  <label>Alert Minutes</label>
261
  <comment>Add Minute to notify when timer comes to end</comment>
262
  <frontend_type>text</frontend_type>
263
+ <sort_order>10</sort_order>
264
  <show_in_default>1</show_in_default>
265
  <show_in_website>1</show_in_website>
266
  <show_in_store>1</show_in_store>
268
  <timer_email translate="label">
269
  <label>Recipient Email</label>
270
  <frontend_type>text</frontend_type>
271
+ <sort_order>11</sort_order>
272
  <show_in_default>1</show_in_default>
273
  <show_in_website>1</show_in_website>
274
  <show_in_store>1</show_in_store>
276
  <timer_email_template translate="label">
277
  <label>Email Template</label>
278
  <frontend_type>textarea</frontend_type>
279
+ <sort_order>12</sort_order>
280
  <show_in_default>1</show_in_default>
281
  <show_in_website>1</show_in_website>
282
  <show_in_store>1</show_in_store>
app/code/local/Biztech/Easymaintanance/sql/easymaintanance_setup/mysql4-upgrade-0.1.2-0.1.3.php CHANGED
@@ -4,16 +4,5 @@
4
 
5
  $installer->startSetup();
6
 
7
- $installer->run("
8
-
9
- DROP TABLE IF EXISTS {$this->getTable('easysite_notify')};
10
- CREATE TABLE {$this->getTable('easysite_notify')} (
11
- `notification_id` int(11) unsigned NOT NULL auto_increment,
12
- `name` varchar(255) NOT NULL default '',
13
- `email` varchar(255) NOT NULL default '',
14
- PRIMARY KEY (`notification_id`)
15
- ) ENGINE=InnoDB DEFAULT CHARSET=utf8;
16
-
17
- ");
18
-
19
  $installer->endSetup();
4
 
5
  $installer->startSetup();
6
 
7
+
 
 
 
 
 
 
 
 
 
 
 
8
  $installer->endSetup();
app/code/local/Biztech/Easymaintanance/sql/easymaintanance_setup/mysql4-upgrade-0.1.3-0.1.4.php CHANGED
@@ -4,16 +4,5 @@
4
 
5
  $installer->startSetup();
6
 
7
- $installer->run("
8
-
9
- DROP TABLE IF EXISTS {$this->getTable('easysite_notify')};
10
- CREATE TABLE {$this->getTable('easysite_notify')} (
11
- `notification_id` int(11) unsigned NOT NULL auto_increment,
12
- `name` varchar(255) NOT NULL default '',
13
- `email` varchar(255) NOT NULL default '',
14
- PRIMARY KEY (`notification_id`)
15
- ) ENGINE=InnoDB DEFAULT CHARSET=utf8;
16
-
17
- ");
18
-
19
  $installer->endSetup();
4
 
5
  $installer->startSetup();
6
 
7
+
 
 
 
 
 
 
 
 
 
 
 
8
  $installer->endSetup();
app/code/local/Biztech/Easymaintanance/sql/easymaintanance_setup/mysql4-upgrade-0.1.4-0.1.5.php ADDED
@@ -0,0 +1,8 @@
 
 
 
 
 
 
 
 
1
+ <?php
2
+
3
+ $installer = $this;
4
+
5
+ $installer->startSetup();
6
+
7
+
8
+ $installer->endSetup();
app/design/frontend/default/default/template/easymaintanance/easymaintanance.phtml CHANGED
@@ -2,27 +2,50 @@
2
  <script language="javascript" type="text/javascript">setTimeout("location.reload();",20000);</script>
3
  <?php */ ?>
4
  <?php $storeId = Mage::app()->getStore()->getStoreId(); ?>
 
 
 
 
 
 
 
5
  <html>
6
  <head>
7
  <title>
8
  <?php
 
 
9
  if(Mage::getStoreConfig('easymaintanance/general/page_title',$storeId) != ''){
10
  echo strip_tags(Mage::getStoreConfig('easymaintanance/general/page_title',$storeId),NULL);
11
  }
12
  else{
13
- echo $this->__('Store Maintenance');
 
 
 
 
 
 
 
 
 
14
  }
15
  ?>
16
  </title>
17
  <link rel="stylesheet" type="text/css" href="<?php echo $this->getSkinUrl("easymaintanance/css/easymaintanance.css") ?>">
18
- <link rel="icon" href="<?php echo $this->getSkinUrl('favicon.ico'); ?>" type="image/x-icon" />
 
19
  <?php if (Mage::getStoreConfig('easymaintanance/contactus/active', $storeId) == 1 || Mage::getStoreConfig('easymaintanance/notify/active', $storeId) == 1 ): ?>
20
  <link rel="stylesheet" type="text/css" href="<?php echo $this->getSkinUrl("easymaintanance/css/popup.css") ?>">
21
  <script src="<?php echo Mage::getBaseUrl(Mage_Core_Model_Store::URL_TYPE_JS) . "prototype/prototype.js" ?>"></script>
22
  <script src="<?php echo Mage::getBaseUrl(Mage_Core_Model_Store::URL_TYPE_JS) . "prototype/effects.js" ?>"></script>
23
  <script src="<?php echo Mage::getBaseUrl(Mage_Core_Model_Store::URL_TYPE_JS) . "prototype/validation.js" ?>"></script>
24
  <script src="<?php echo $this->getSkinUrl("easymaintanance/js/popup.js") ?>"></script>
25
- <?php endif; ?>
 
 
 
 
26
  </head>
27
  <?php if(Mage::getStoreConfig('easymaintanance/timer/timer_enabled',$storeId) == 1): ?>
28
  <body onLoad="countdown(year,month,day,hour,minute)" <?php if(isset($image_path)){ ?>style="background-image: url(<?php echo $image_path ?>); filter: progid:DXImageTransform.Microsoft.AlphaImageLoader(
@@ -31,7 +54,6 @@
31
  <body <?php if(isset($image_path)){ ?>style="background-image: url(<?php echo $image_path ?>); filter: progid:DXImageTransform.Microsoft.AlphaImageLoader(
32
  src='<?php echo $image_path ?>', sizingMethod='scale'); -ms-filter: "progid:DXImageTransform.Microsoft.AlphaImageLoader(src='<?php echo $image_path ?>',sizingMethod='scale') ;" <?php } ?>>
33
  <?php endif; ?>
34
-
35
  <div class="main-container">
36
  <?php
37
  if(Mage::getStoreConfig('easymaintanance/general/logo')){
@@ -48,14 +70,14 @@
48
  </div>
49
  <?php } ?>
50
  <?php
51
- $date = Mage::getStoreConfig('easymaintanance/timer/timer_date',$storeId);
52
  $formatedDate = date('m/d/Y',strtotime($date));
53
  $date = explode('/', $formatedDate);
54
  $year = $date[2];
55
  $month = $date[0];
56
  $day = $date[1];
57
- $hour = Mage::getStoreConfig('easymaintanance/timer/timer_hour',$storeId);
58
- $min1 = Mage::getStoreConfig('easymaintanance/timer/timer_min',$storeId);
59
 
60
  $day = floor ($min1 / 1440);
61
  $hour1 = floor (($min1 - $day * 1440) / 60);
@@ -76,16 +98,6 @@
76
  // $maintenancePage = trim(Mage::getStoreConfig('easymaintanance/general/maintenanceHtml',$storeId));
77
  echo $maintenancePage;
78
  ?>
79
-
80
-
81
-
82
- <?php
83
- $bg_image = Mage::getStoreConfig('easymaintanance/general/background_image',$storeId);
84
- if(isset($bg_image) && $bg_image != null )
85
- {
86
- $image_path = Mage::getBaseUrl(Mage_Core_Model_Store::URL_TYPE_MEDIA).'easysitemaintenance/'.$bg_image;
87
- }
88
- ?>
89
  <?php if(Mage::getStoreConfig('easymaintanance/timer/timer_enabled',$storeId) == 1): ?>
90
  <div class="message clearfix" id="timer-text">
91
  <?php $text = Mage::getStoreConfig('easymaintanance/timer/timer_text',$storeId); ?>
@@ -106,7 +118,7 @@
106
  function countdown(yr,m,d,hr,min){
107
 
108
  theyear=yr;themonth=m;theday=d;thehour=hr;theminute=min;
109
- var today=new Date();
110
  var todayy=today.getYear();
111
  if (todayy < 1000)
112
  todayy+=1900;
@@ -125,7 +137,7 @@
125
  if (dday <= 0 && dhour <= 0 && dmin <= 0 && dsec <= 0) {
126
  document.getElementById('timer-text').style.display = "none";
127
  document.getElementById('timer-table').style.display = "none";
128
-
129
  }
130
  if(dday == 0 && dhour == 0 && dmin == 0 && dsec == 0)
131
  {
@@ -153,10 +165,10 @@
153
  <div class="countdown" >
154
  <div class="timer" id="timer-table">
155
  <div class="numbers" id="count2" style="padding: 5px 0 0 0; "></div>
156
- <div><strong id="dday"></strong>Days</div>
157
- <div><strong id="dhour"></strong>Hours</div>
158
- <div><strong id="dmin"></strong>Minutes</div>
159
- <div class="last"><strong id="dsec"></strong>Seconds</div>
160
  </div>
161
  </div>
162
  <?php endif; ?>
2
  <script language="javascript" type="text/javascript">setTimeout("location.reload();",20000);</script>
3
  <?php */ ?>
4
  <?php $storeId = Mage::app()->getStore()->getStoreId(); ?>
5
+ <?php
6
+ $bg_image = Mage::getStoreConfig('easymaintanance/general/background_image',$storeId);
7
+ if(isset($bg_image) && $bg_image != null )
8
+ {
9
+ $image_path = Mage::getBaseUrl(Mage_Core_Model_Store::URL_TYPE_MEDIA).'easysitemaintenance/'.$bg_image;
10
+ }
11
+ ?>
12
  <html>
13
  <head>
14
  <title>
15
  <?php
16
+ Mage::getSingleton('core/translate')->setLocale(Mage::app()->getLocale()->getLocaleCode())->init('frontend', true);
17
+
18
  if(Mage::getStoreConfig('easymaintanance/general/page_title',$storeId) != ''){
19
  echo strip_tags(Mage::getStoreConfig('easymaintanance/general/page_title',$storeId),NULL);
20
  }
21
  else{
22
+ echo $this->__('Site Maintenance');
23
+ }
24
+ $folderName = 'favicon';
25
+ $storeConfig = Mage::getStoreConfig('design/head/shortcut_icon');
26
+ $faviconFile = Mage::getBaseUrl('media') . $folderName . '/' . $storeConfig;
27
+ $absolutePath = Mage::getBaseDir('media') . '/' . $folderName . '/' . $storeConfig;
28
+ if(!is_null($storeConfig) && is_file($absolutePath)) {
29
+ $url = $faviconFile;
30
+ } else {
31
+ $url = $this->getSkinUrl('favicon.ico');
32
  }
33
  ?>
34
  </title>
35
  <link rel="stylesheet" type="text/css" href="<?php echo $this->getSkinUrl("easymaintanance/css/easymaintanance.css") ?>">
36
+ <link rel="icon" href="<?php echo $url; ?>" type="image/x-icon" />
37
+ <link rel="shortcut icon" href="<?php echo $url; ?>" type="image/x-icon" />
38
  <?php if (Mage::getStoreConfig('easymaintanance/contactus/active', $storeId) == 1 || Mage::getStoreConfig('easymaintanance/notify/active', $storeId) == 1 ): ?>
39
  <link rel="stylesheet" type="text/css" href="<?php echo $this->getSkinUrl("easymaintanance/css/popup.css") ?>">
40
  <script src="<?php echo Mage::getBaseUrl(Mage_Core_Model_Store::URL_TYPE_JS) . "prototype/prototype.js" ?>"></script>
41
  <script src="<?php echo Mage::getBaseUrl(Mage_Core_Model_Store::URL_TYPE_JS) . "prototype/effects.js" ?>"></script>
42
  <script src="<?php echo Mage::getBaseUrl(Mage_Core_Model_Store::URL_TYPE_JS) . "prototype/validation.js" ?>"></script>
43
  <script src="<?php echo $this->getSkinUrl("easymaintanance/js/popup.js") ?>"></script>
44
+ <?php endif; ?>
45
+ <script src="<?php echo Mage::getBaseUrl(Mage_Core_Model_Store::URL_TYPE_JS) . "mage/translate.js" ?>"></script>
46
+ <script type="text/javascript">//<![CDATA[
47
+ var Translator = new Translate([]);
48
+ //]]></script>
49
  </head>
50
  <?php if(Mage::getStoreConfig('easymaintanance/timer/timer_enabled',$storeId) == 1): ?>
51
  <body onLoad="countdown(year,month,day,hour,minute)" <?php if(isset($image_path)){ ?>style="background-image: url(<?php echo $image_path ?>); filter: progid:DXImageTransform.Microsoft.AlphaImageLoader(
54
  <body <?php if(isset($image_path)){ ?>style="background-image: url(<?php echo $image_path ?>); filter: progid:DXImageTransform.Microsoft.AlphaImageLoader(
55
  src='<?php echo $image_path ?>', sizingMethod='scale'); -ms-filter: "progid:DXImageTransform.Microsoft.AlphaImageLoader(src='<?php echo $image_path ?>',sizingMethod='scale') ;" <?php } ?>>
56
  <?php endif; ?>
 
57
  <div class="main-container">
58
  <?php
59
  if(Mage::getStoreConfig('easymaintanance/general/logo')){
70
  </div>
71
  <?php } ?>
72
  <?php
73
+ $date = Mage::getStoreConfig('easymaintanance/timer/timer_end_date',$storeId);
74
  $formatedDate = date('m/d/Y',strtotime($date));
75
  $date = explode('/', $formatedDate);
76
  $year = $date[2];
77
  $month = $date[0];
78
  $day = $date[1];
79
+ $hour = Mage::getStoreConfig('easymaintanance/timer/timer_end_hour',$storeId);
80
+ $min1 = Mage::getStoreConfig('easymaintanance/timer/timer_end_min',$storeId);
81
 
82
  $day = floor ($min1 / 1440);
83
  $hour1 = floor (($min1 - $day * 1440) / 60);
98
  // $maintenancePage = trim(Mage::getStoreConfig('easymaintanance/general/maintenanceHtml',$storeId));
99
  echo $maintenancePage;
100
  ?>
 
 
 
 
 
 
 
 
 
 
101
  <?php if(Mage::getStoreConfig('easymaintanance/timer/timer_enabled',$storeId) == 1): ?>
102
  <div class="message clearfix" id="timer-text">
103
  <?php $text = Mage::getStoreConfig('easymaintanance/timer/timer_text',$storeId); ?>
118
  function countdown(yr,m,d,hr,min){
119
 
120
  theyear=yr;themonth=m;theday=d;thehour=hr;theminute=min;
121
+ var today = new Date();
122
  var todayy=today.getYear();
123
  if (todayy < 1000)
124
  todayy+=1900;
137
  if (dday <= 0 && dhour <= 0 && dmin <= 0 && dsec <= 0) {
138
  document.getElementById('timer-text').style.display = "none";
139
  document.getElementById('timer-table').style.display = "none";
140
+
141
  }
142
  if(dday == 0 && dhour == 0 && dmin == 0 && dsec == 0)
143
  {
165
  <div class="countdown" >
166
  <div class="timer" id="timer-table">
167
  <div class="numbers" id="count2" style="padding: 5px 0 0 0; "></div>
168
+ <div><strong id="dday"></strong><?php echo $this->__('Days'); ?></div>
169
+ <div><strong id="dhour"></strong><?php echo $this->__('Hours'); ?></div>
170
+ <div><strong id="dmin"></strong><?php echo $this->__('Minutes'); ?></div>
171
+ <div class="last"><strong id="dsec"></strong><?php echo $this->__('Seconds'); ?></div>
172
  </div>
173
  </div>
174
  <?php endif; ?>
app/design/frontend/default/default/template/easymaintanance/notify.phtml CHANGED
@@ -7,6 +7,7 @@
7
  $name = '';
8
  $email = '';
9
  }
 
10
  ?>
11
  <div id="backgroundpopup" class="background-opacity" style="display: none; background: none repeat scroll 0% 0% rgb(0, 0, 0);"></div>
12
  <div id="notify_information" class="notification-container">
@@ -18,7 +19,7 @@
18
 
19
  isset($title) ? $title : 'Notify Me';
20
  ?>
21
- <div class="notification-title"> <?php echo $title ?> <?php if(isset($message) && $message != null): ?>
22
  <span class="notification-message"> <?php echo $message ?> </span>
23
  <?php endif; ?></div>
24
 
7
  $name = '';
8
  $email = '';
9
  }
10
+ Mage::getSingleton('core/translate')->setLocale(Mage::app()->getLocale()->getLocaleCode())->init('frontend', true);
11
  ?>
12
  <div id="backgroundpopup" class="background-opacity" style="display: none; background: none repeat scroll 0% 0% rgb(0, 0, 0);"></div>
13
  <div id="notify_information" class="notification-container">
19
 
20
  isset($title) ? $title : 'Notify Me';
21
  ?>
22
+ <div class="notification-title"> <?php echo $this->__($title) ?> <?php if(isset($message) && $message != null): ?>
23
  <span class="notification-message"> <?php echo $message ?> </span>
24
  <?php endif; ?></div>
25
 
app/design/frontend/default/default/template/easymaintanance/popup_html.phtml CHANGED
@@ -8,6 +8,7 @@ if($customer->isLoggedIn()){
8
  $name = '';
9
  $email = '';
10
  }
 
11
  ?>
12
  <?php if($config=="1") { ?>
13
  <div class="side-feedback">
8
  $name = '';
9
  $email = '';
10
  }
11
+ Mage::getSingleton('core/translate')->setLocale(Mage::app()->getLocale()->getLocaleCode())->init('frontend', true);
12
  ?>
13
  <?php if($config=="1") { ?>
14
  <div class="side-feedback">
app/locale/de_DE/Biztech_Easymaintanance.csv CHANGED
@@ -29,3 +29,14 @@ Timer Configuration,Timer-Konfiguration
29
  Contact Us Configuration,Kontakt Konfiguration
30
  Yes,Ja
31
  No,Keine
 
 
 
 
 
 
 
 
 
 
 
29
  Contact Us Configuration,Kontakt Konfiguration
30
  Yes,Ja
31
  No,Keine
32
+ Days,Tage
33
+ Hours,Stunden
34
+ Minutes,Minuten
35
+ Seconds,Sekunden
36
+ Notify Me,Benachrichtige Mich
37
+ Your Full Name,Ihr Vollst�ndiger Name
38
+ Your E-mail,Deine E-Mail
39
+ Submit,einreichen
40
+ Contact Us,Kontaktieren Sie Uns
41
+ Where did you hear about us,Wo haben Sie von uns geh�rt
42
+ Details,Details
app/locale/en_GB/Biztech_Easymaintanance.csv CHANGED
@@ -29,3 +29,7 @@ Timer Configuration,Timer Configuration
29
  Contact Us Configuration,Contact Us Configuration
30
  Yes,Yes
31
  No,No
 
 
 
 
29
  Contact Us Configuration,Contact Us Configuration
30
  Yes,Yes
31
  No,No
32
+ Days,Days
33
+ Hours,Hours
34
+ Minutes,Minutes
35
+ Seconds,Seconds
app/locale/en_US/Biztech_Easymaintanance.csv CHANGED
@@ -29,3 +29,7 @@ Timer Configuration,Timer Configuration
29
  Contact Us Configuration,Contact Us Configuration
30
  Yes,Yes
31
  No,No
 
 
 
 
29
  Contact Us Configuration,Contact Us Configuration
30
  Yes,Yes
31
  No,No
32
+ Days,Days
33
+ Hours,Hours
34
+ Minutes,Minutes
35
+ Seconds,Seconds
app/locale/fr_FR/Biztech_Easymaintanance.csv CHANGED
@@ -29,3 +29,7 @@ Timer Configuration,Configuration de la minuterie
29
  Contact Us Configuration,Contactez-nous Configuration
30
  Yes,Oui
31
  No,Non
 
 
 
 
29
  Contact Us Configuration,Contactez-nous Configuration
30
  Yes,Oui
31
  No,Non
32
+ Days,jours
33
+ Hours,heures
34
+ Minutes,minutes
35
+ Seconds,secondes
app/locale/it_IT/Biztech_Easymaintanance.csv CHANGED
@@ -29,3 +29,7 @@ Timer Configuration,Configurazione del timer
29
  Contact Us Configuration,Contattaci Configurazione
30
  Yes,Si
31
  No,No
 
 
 
 
29
  Contact Us Configuration,Contattaci Configurazione
30
  Yes,Si
31
  No,No
32
+ Days,Giorni
33
+ Hours,orario
34
+ Minutes,minuti
35
+ Seconds,secondi
app/locale/nl_NL/Biztech_Easymaintanance.csv CHANGED
@@ -29,3 +29,7 @@ Timer Configuration,timer Configuratie
29
  Contact Us Configuration,Contact Configuration
30
  Yes,ja
31
  No,geen
 
 
 
 
29
  Contact Us Configuration,Contact Configuration
30
  Yes,ja
31
  No,geen
32
+ Days,dagen
33
+ Hours,Hours
34
+ Minutes,notulen
35
+ Seconds,seconden
package.xml CHANGED
@@ -1,7 +1,7 @@
1
  <?xml version="1.0"?>
2
  <package>
3
  <name>easymaintanance_module</name>
4
- <version>0.1.4</version>
5
  <stability>stable</stability>
6
  <license uri="http://opensource.org/licenses/osl-3.0.php">OSL v3.0</license>
7
  <channel>community</channel>
@@ -17,11 +17,11 @@ Features&#xD;
17
  &#x2022; Works for multi-store too. If you run multiple store and manage all the stores from single admin panel, no issue will be encountered if you either want to put one, few or all stores under maintenance.&#xD;
18
  &#x2022; Though we provide a custom message for the maintenance page, but you can also display your own custom message. The choice is upto you either to display the default template provides by us or create your own. If you want to display your own custom message then you just need to add the html code, there is no need to create a separate page or redirect the maintenance page on another page for that. You can also display images.&#xD;
19
  </description>
20
- <notes>-Bug Fixes</notes>
21
  <authors><author><name>Biztech</name><user>biztechcon</user><email>sales@biztechconsultancy.com</email></author></authors>
22
- <date>2015-06-19</date>
23
- <time>05:11:42</time>
24
- <contents><target name="mageetc"><dir name="modules"><file name="Biztech_Easymaintanance.xml" hash="bb1ccb318bbbe160a71018e503d10b9b"/></dir></target><target name="magelocal"><dir name="Biztech"><dir name="Easymaintanance"><dir name="Block"><dir name="Adminhtml"><dir name="Notification"><dir name="Edit"><file name="Form.php" hash="1f5938a0215bb518db8153c39337cb11"/><dir name="Tab"><file name="Form.php" hash="ed8af40e323fbadc783f8673cd4b7963"/></dir><file name="Tabs.php" hash="039e86181e626be2582605b658665f20"/></dir><file name="Edit.php" hash="18b110d04a96829e147fddcb38acf8d4"/><file name="Grid.php" hash="88e821c9010ee5e4f6aead535a941c16"/></dir><file name="Notification.php" hash="109032e325e5c4e4e4473e964a4eaeea"/><dir name="System"><dir name="Config"><file name="Date.php" hash="03c969990d1dcabae3645a59793cd50d"/><file name="Editor.php" hash="b1c1cdb34820495f0c811caa07ad4272"/></dir></dir></dir><file name="Feedback.php" hash="827f19a5a94483c876070312cdbe8e0f"/><file name="Notification.php" hash="889ddbf6db504e8fa10bb344b13d3850"/></dir><dir name="Helper"><file name="Data.php" hash="7dc793440c9cb5bbeab249471af0cea6"/></dir><dir name="Model"><dir name="Mysql4"><dir name="Notification"><file name="Collection.php" hash="2629949da947bc6259fa5152c568a218"/></dir><file name="Notification.php" hash="4b166830cac8797e5101b8958a456e6f"/></dir><file name="Notification.php" hash="dc098194e853545378e9d2d95b819a73"/><file name="Observer.php" hash="631c5d6c0838cfac61b0f40cbf9d4361"/></dir><dir name="controllers"><dir name="Adminhtml"><file name="NotificationController.php" hash="4c2a3da26d670f6b16141deefeb0f11c"/></dir><file name="IndexController.php" hash="d486a34ad8aa9ac902d9a74cfe965b97"/></dir><dir name="etc"><file name="config.xml" hash="021dcf8ec1a2dae5faadde756330d45e"/><file name="system.xml" hash="2b56732d8390eb83a663602e3e425733"/></dir><dir name="sql"><dir name="easymaintanance_setup"><file name="mysql4-install-0.1.0.php" hash="74ea9846fddfa02d689d721530842bc7"/><file name="mysql4-upgrade-0.1.0-0.1.1.php" hash="6fef6eed753e41cd70f9cfc9268debff"/><file name="mysql4-upgrade-0.1.2-0.1.3.php" hash="6564991641ba29cc88f57efda97ee635"/><file name="mysql4-upgrade-0.1.3-0.1.4.php" hash="6564991641ba29cc88f57efda97ee635"/></dir></dir></dir></dir></target><target name="magedesign"><dir name="adminhtml"><dir name="default"><dir name="default"><dir name="layout"><file name="easymaintanance.xml" hash="a5fb50bbc8ab1584cf2041596ae105c9"/></dir></dir></dir></dir><dir name="frontend"><dir name="default"><dir name="default"><dir name="layout"><file name="easymaintanance.xml" hash="7e530ea686198bed24c40032b88a18f5"/></dir><dir name="template"><dir name="easymaintanance"><file name="Thumbs.db" hash="6afe2e5ff2d269395baac82a4ddd4313"/><file name="easymaintanance.phtml" hash="3786e6c081e01288c8bb49dcade90ae7"/><file name="notify.phtml" hash="ca3c925a4b720f9c6a2d8796f6eab93c"/><file name="popup_html.phtml" hash="b830926c60c935cc8f00d0b34b619ee9"/></dir></dir></dir></dir></dir></target><target name="mageskin"><dir name="frontend"><dir name="default"><dir name="default"><dir name="easymaintanance"><dir name="css"><file name="easymaintanance.css" hash="d6386e1b7f531d459091ffbd1b8c11ff"/><file name="popup.css" hash="cfce607ed7cd7a94ce67321c3615d6c0"/></dir><dir name="images"><file name="Thumbs.db" hash="65fc2dfcc62a6343f8bcc57ddffcfc20"/><file name="ajax-loader-onestep.gif" hash="cf9953e0d5241b49c3dee9d0051cca3d"/><file name="bg-body.png" hash="2b8a442e1a4728207161a643ca1c75d2"/><file name="bg-header.gif" hash="571932485b33226c2a11f5100aa1f8ae"/><file name="bg-header.png" hash="eed1fe20e0db02cdba4c24425ede9adb"/><file name="body-bg.jpg" hash="5063bf47a76bde725e0756ef66e988f1"/><file name="closebox.png" hash="f2aace763cfcc4d6f3427a8a0842e55c"/><file name="feedbacktab.png" hash="d288691dbb16c7b73187f1e2e9e96ba0"/><file name="general-btn.gif" hash="d04f8bf3e7bc194a031bb5b2ac7433ba"/><file name="general-input-bg.jpg" hash="5a63d17240be2d5acdd8d432c4e1caff"/><file name="loader.gif" hash="afacd501feecb0b0f196952014aec797"/><file name="time-bg.gif" hash="4ed0b926562d76560fc1855022bdea14"/><file name="time-bg.png" hash="6831e69ad40ac8db863653166ce0ace8"/><file name="title-seperator.png" hash="2d8ba062d36339feb1cca920cadc61fe"/></dir><dir name="js"><file name="popup.js" hash="6cd74e0ad4618201b61bc86a39e04c2c"/></dir></dir></dir></dir></dir></target><target name="magelocale"><dir name="en_US"><dir name="template"><dir name="email"><dir name="easymaintanance"><file name="contactus.html" hash="fad80bccd037f798f48fb4208bb8871a"/><file name="notification.html" hash="32f331ef1ba210f19d57b26bb7f1029f"/></dir></dir></dir><file name="Biztech_Easymaintanance.csv" hash="137a9fad5574a71471e008f15f061c54"/></dir><dir name="de_DE"><file name="Biztech_Easymaintanance.csv" hash="a3e7b748ff67994bb3d70b129f12ea11"/></dir><dir name="en_GB"><file name="Biztech_Easymaintanance.csv" hash="bbfbc1fd89f2c5de32b9d77d543a6588"/></dir><dir name="fr_FR"><file name="Biztech_Easymaintanance.csv" hash="99bef05b08798c87253c6f66a0c7cac6"/></dir><dir name="it_IT"><file name="Biztech_Easymaintanance.csv" hash="47f2d301a1610d4958bc54ac3832b286"/></dir><dir name="nl_NL"><file name="Biztech_Easymaintanance.csv" hash="90158980169e2e869ab7618ef5748380"/></dir></target></contents>
25
  <compatible/>
26
  <dependencies><required><php><min>5.1.0</min><max>6.0.0</max></php></required></dependencies>
27
  </package>
1
  <?xml version="1.0"?>
2
  <package>
3
  <name>easymaintanance_module</name>
4
+ <version>0.1.5</version>
5
  <stability>stable</stability>
6
  <license uri="http://opensource.org/licenses/osl-3.0.php">OSL v3.0</license>
7
  <channel>community</channel>
17
  &#x2022; Works for multi-store too. If you run multiple store and manage all the stores from single admin panel, no issue will be encountered if you either want to put one, few or all stores under maintenance.&#xD;
18
  &#x2022; Though we provide a custom message for the maintenance page, but you can also display your own custom message. The choice is upto you either to display the default template provides by us or create your own. If you want to display your own custom message then you just need to add the html code, there is no need to create a separate page or redirect the maintenance page on another page for that. You can also display images.&#xD;
19
  </description>
20
+ <notes>-enhancement</notes>
21
  <authors><author><name>Biztech</name><user>biztechcon</user><email>sales@biztechconsultancy.com</email></author></authors>
22
+ <date>2015-11-10</date>
23
+ <time>06:40:54</time>
24
+ <contents><target name="mageetc"><dir name="modules"><file name="Biztech_Easymaintanance.xml" hash="bb1ccb318bbbe160a71018e503d10b9b"/></dir></target><target name="magelocal"><dir name="Biztech"><dir name="Easymaintanance"><dir name="Block"><dir name="Adminhtml"><dir name="Notification"><dir name="Edit"><file name="Form.php" hash="1f5938a0215bb518db8153c39337cb11"/><dir name="Tab"><file name="Form.php" hash="ed8af40e323fbadc783f8673cd4b7963"/></dir><file name="Tabs.php" hash="039e86181e626be2582605b658665f20"/></dir><file name="Edit.php" hash="18b110d04a96829e147fddcb38acf8d4"/><file name="Grid.php" hash="88e821c9010ee5e4f6aead535a941c16"/></dir><file name="Notification.php" hash="109032e325e5c4e4e4473e964a4eaeea"/><dir name="System"><dir name="Config"><file name="Date.php" hash="03c969990d1dcabae3645a59793cd50d"/><file name="Editor.php" hash="b1c1cdb34820495f0c811caa07ad4272"/></dir></dir></dir><file name="Feedback.php" hash="827f19a5a94483c876070312cdbe8e0f"/><file name="Notification.php" hash="889ddbf6db504e8fa10bb344b13d3850"/></dir><dir name="Helper"><file name="Data.php" hash="7dc793440c9cb5bbeab249471af0cea6"/></dir><dir name="Model"><dir name="Mysql4"><dir name="Notification"><file name="Collection.php" hash="2629949da947bc6259fa5152c568a218"/></dir><file name="Notification.php" hash="4b166830cac8797e5101b8958a456e6f"/></dir><file name="Notification.php" hash="847a2a2f8a29f65b06ef18693f62a322"/><file name="Observer.php" hash="fdfd70ae3718cd7e94f0c525c0bf67fe"/><file name="Validatehour.php" hash="edd50c9829552bc766e48089856d878b"/><file name="Validatemin.php" hash="1c588eaf39d567ef32f0c4b2e41ab3c6"/></dir><dir name="controllers"><dir name="Adminhtml"><file name="NotificationController.php" hash="d4d33e8326cffc813c55886323f85728"/></dir><file name="IndexController.php" hash="d486a34ad8aa9ac902d9a74cfe965b97"/></dir><dir name="etc"><file name="config.xml" hash="35f90b7c94477a63386b82bd09e01d77"/><file name="system.xml" hash="babf8c96df52b170120b580ca8eed0e3"/></dir><dir name="sql"><dir name="easymaintanance_setup"><file name="mysql4-install-0.1.0.php" hash="74ea9846fddfa02d689d721530842bc7"/><file name="mysql4-upgrade-0.1.0-0.1.1.php" hash="6fef6eed753e41cd70f9cfc9268debff"/><file name="mysql4-upgrade-0.1.2-0.1.3.php" hash="d7a7afceee7949b3195ef33ab276f728"/><file name="mysql4-upgrade-0.1.3-0.1.4.php" hash="d7a7afceee7949b3195ef33ab276f728"/><file name="mysql4-upgrade-0.1.4-0.1.5.php" hash="d7a7afceee7949b3195ef33ab276f728"/></dir></dir></dir></dir></target><target name="magedesign"><dir name="adminhtml"><dir name="default"><dir name="default"><dir name="layout"><file name="easymaintanance.xml" hash="a5fb50bbc8ab1584cf2041596ae105c9"/></dir></dir></dir></dir><dir name="frontend"><dir name="default"><dir name="default"><dir name="layout"><file name="easymaintanance.xml" hash="7e530ea686198bed24c40032b88a18f5"/></dir><dir name="template"><dir name="easymaintanance"><file name="Thumbs.db" hash="6afe2e5ff2d269395baac82a4ddd4313"/><file name="easymaintanance.phtml" hash="6f867198bdc74edc16af40fcd7ce3e57"/><file name="notify.phtml" hash="ef9a2f45e3f5dddc102175f741bbd742"/><file name="popup_html.phtml" hash="c36678af0e9ed199842f7b52e1aa8c95"/></dir></dir></dir></dir></dir></target><target name="mageskin"><dir name="frontend"><dir name="default"><dir name="default"><dir name="easymaintanance"><dir name="css"><file name="easymaintanance.css" hash="d6386e1b7f531d459091ffbd1b8c11ff"/><file name="popup.css" hash="cfce607ed7cd7a94ce67321c3615d6c0"/></dir><dir name="images"><file name="Thumbs.db" hash="65fc2dfcc62a6343f8bcc57ddffcfc20"/><file name="ajax-loader-onestep.gif" hash="cf9953e0d5241b49c3dee9d0051cca3d"/><file name="bg-body.png" hash="2b8a442e1a4728207161a643ca1c75d2"/><file name="bg-header.gif" hash="571932485b33226c2a11f5100aa1f8ae"/><file name="bg-header.png" hash="eed1fe20e0db02cdba4c24425ede9adb"/><file name="body-bg.jpg" hash="5063bf47a76bde725e0756ef66e988f1"/><file name="closebox.png" hash="f2aace763cfcc4d6f3427a8a0842e55c"/><file name="feedbacktab.png" hash="d288691dbb16c7b73187f1e2e9e96ba0"/><file name="general-btn.gif" hash="d04f8bf3e7bc194a031bb5b2ac7433ba"/><file name="general-input-bg.jpg" hash="5a63d17240be2d5acdd8d432c4e1caff"/><file name="loader.gif" hash="afacd501feecb0b0f196952014aec797"/><file name="time-bg.gif" hash="4ed0b926562d76560fc1855022bdea14"/><file name="time-bg.png" hash="6831e69ad40ac8db863653166ce0ace8"/><file name="title-seperator.png" hash="2d8ba062d36339feb1cca920cadc61fe"/></dir><dir name="js"><file name="popup.js" hash="6cd74e0ad4618201b61bc86a39e04c2c"/></dir></dir></dir></dir></dir></target><target name="magelocale"><dir name="en_US"><dir name="template"><dir name="email"><dir name="easymaintanance"><file name="contactus.html" hash="fad80bccd037f798f48fb4208bb8871a"/><file name="notification.html" hash="32f331ef1ba210f19d57b26bb7f1029f"/></dir></dir></dir><file name="Biztech_Easymaintanance.csv" hash="afba103d507a10d3b2c22f8876e4c18a"/></dir><dir name="de_DE"><file name="Biztech_Easymaintanance.csv" hash="776bebd361577ce80361d27ec1b46872"/></dir><dir name="en_GB"><file name="Biztech_Easymaintanance.csv" hash="de98aa96514df4cc3004922049d0b10c"/></dir><dir name="fr_FR"><file name="Biztech_Easymaintanance.csv" hash="26adf18a12db7c187e864b01bc96b04c"/></dir><dir name="it_IT"><file name="Biztech_Easymaintanance.csv" hash="91ce707f8afe82ac1febb340520a30d5"/></dir><dir name="nl_NL"><file name="Biztech_Easymaintanance.csv" hash="8e5f0d40c19968092155706503d45f9f"/></dir></target><target name="mage"><dir name="."><file name="EasySiteMaintenance.pdf" hash="398db83e77e082975e5de2a06e86ffb6"/></dir></target></contents>
25
  <compatible/>
26
  <dependencies><required><php><min>5.1.0</min><max>6.0.0</max></php></required></dependencies>
27
  </package>