Version Notes
- Added: Compatible with Magento ACL.
Download this release
Release Info
Developer | Magento Core Team |
Extension | MageBackup_MageBackupFree |
Version | 1.0.1 |
Comparing to | |
See all releases |
Code changes from version 1.0.0 to 1.0.1
- app/code/community/MageBackup/MageBackupFree/controllers/Adminhtml/Magebackupfree/BackupController.php +33 -2
- app/code/community/MageBackup/MageBackupFree/etc/adminhtml.xml +14 -3
- app/code/community/MageBackup/MageBackupFree/etc/config.xml +1 -1
- app/code/community/MageBackup/MageBackupFree/sql/magebackupfree_setup/mysql4-install-1.0.0.php +2 -2
- package.xml +5 -5
app/code/community/MageBackup/MageBackupFree/controllers/Adminhtml/Magebackupfree/BackupController.php
CHANGED
@@ -15,7 +15,7 @@ class MageBackup_MageBackupFree_Adminhtml_MageBackupFree_BackupController extend
|
|
15 |
|
16 |
protected function _initAction() {
|
17 |
$this->loadLayout()
|
18 |
-
->_setActiveMenu('
|
19 |
->_addBreadcrumb(Mage::helper('magebackupfree')->__('Backup Manager'),
|
20 |
Mage::helper('magebackupfree')->__('Backup Manager'));
|
21 |
|
@@ -46,7 +46,7 @@ class MageBackup_MageBackupFree_Adminhtml_MageBackupFree_BackupController extend
|
|
46 |
if ($backupModel->getId() || $backupId == 0) {
|
47 |
Mage::register('backup', $backupModel);
|
48 |
$this->loadLayout();
|
49 |
-
$this->_setActiveMenu('
|
50 |
$this->_addBreadcrumb(Mage::helper('magebackupfree')->__('Backup Manager'), Mage::helper('magebackupfree')->__('Backup Manager'));
|
51 |
$this->_addBreadcrumb(Mage::helper('magebackupfree')->__('Backup Description'), Mage::helper('magebackupfree')->__('Backup Description'));
|
52 |
|
@@ -212,4 +212,35 @@ class MageBackup_MageBackupFree_Adminhtml_MageBackupFree_BackupController extend
|
|
212 |
|
213 |
exit();
|
214 |
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
215 |
}
|
15 |
|
16 |
protected function _initAction() {
|
17 |
$this->loadLayout()
|
18 |
+
->_setActiveMenu('magebackupfree/backup')
|
19 |
->_addBreadcrumb(Mage::helper('magebackupfree')->__('Backup Manager'),
|
20 |
Mage::helper('magebackupfree')->__('Backup Manager'));
|
21 |
|
46 |
if ($backupModel->getId() || $backupId == 0) {
|
47 |
Mage::register('backup', $backupModel);
|
48 |
$this->loadLayout();
|
49 |
+
$this->_setActiveMenu('magebackupfree/backup');
|
50 |
$this->_addBreadcrumb(Mage::helper('magebackupfree')->__('Backup Manager'), Mage::helper('magebackupfree')->__('Backup Manager'));
|
51 |
$this->_addBreadcrumb(Mage::helper('magebackupfree')->__('Backup Description'), Mage::helper('magebackupfree')->__('Backup Description'));
|
52 |
|
212 |
|
213 |
exit();
|
214 |
}
|
215 |
+
|
216 |
+
/**
|
217 |
+
* Acl check for admin
|
218 |
+
*
|
219 |
+
* @return bool
|
220 |
+
*/
|
221 |
+
protected function _isAllowed() {
|
222 |
+
$action = strtolower($this->getRequest()->getActionName());
|
223 |
+
|
224 |
+
switch ($action) {
|
225 |
+
case 'new':
|
226 |
+
$aclResource = 'magebackupfree/backup/create';
|
227 |
+
break;
|
228 |
+
case 'edit':
|
229 |
+
$aclResource = 'magebackupfree/backup/edit';
|
230 |
+
break;
|
231 |
+
case 'save':
|
232 |
+
$aclResource = 'magebackupfree/backup/save';
|
233 |
+
break;
|
234 |
+
case 'download':
|
235 |
+
$aclResource = 'magebackupfree/backup/download';
|
236 |
+
break;
|
237 |
+
case 'delete':
|
238 |
+
$aclResource = 'magebackupfree/backup/delete';
|
239 |
+
break;
|
240 |
+
default:
|
241 |
+
$aclResource = 'magebackupfree/backup';
|
242 |
+
}
|
243 |
+
|
244 |
+
return Mage::getSingleton('admin/session')->isAllowed($aclResource);
|
245 |
+
}
|
246 |
}
|
app/code/community/MageBackup/MageBackupFree/etc/adminhtml.xml
CHANGED
@@ -38,10 +38,21 @@
|
|
38 |
</all>
|
39 |
<admin>
|
40 |
<children>
|
41 |
-
<
|
42 |
<title>Mage Backup Free Module</title>
|
43 |
-
<
|
44 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
45 |
<system>
|
46 |
<children>
|
47 |
<config>
|
38 |
</all>
|
39 |
<admin>
|
40 |
<children>
|
41 |
+
<magebackupfree>
|
42 |
<title>Mage Backup Free Module</title>
|
43 |
+
<children>
|
44 |
+
<backup translate="title">
|
45 |
+
<title>Manage Backups</title>
|
46 |
+
<children>
|
47 |
+
<create translate="title"><title>Create Backup</title></create>
|
48 |
+
<edit translate="title"><title>Edit Backup</title></edit>
|
49 |
+
<save translate="title"><title>Save Backup</title></save>
|
50 |
+
<download translate="title"><title>Download Backup</title></download>
|
51 |
+
<delete translate="title"><title>Delete Backup</title></delete>
|
52 |
+
</children>
|
53 |
+
</backup>
|
54 |
+
</children>
|
55 |
+
</magebackupfree>
|
56 |
<system>
|
57 |
<children>
|
58 |
<config>
|
app/code/community/MageBackup/MageBackupFree/etc/config.xml
CHANGED
@@ -9,7 +9,7 @@
|
|
9 |
<config>
|
10 |
<modules>
|
11 |
<MageBackup_MageBackupFree>
|
12 |
-
<version>1.0.
|
13 |
</MageBackup_MageBackupFree>
|
14 |
</modules>
|
15 |
|
9 |
<config>
|
10 |
<modules>
|
11 |
<MageBackup_MageBackupFree>
|
12 |
+
<version>1.0.1</version>
|
13 |
</MageBackup_MageBackupFree>
|
14 |
</modules>
|
15 |
|
app/code/community/MageBackup/MageBackupFree/sql/magebackupfree_setup/mysql4-install-1.0.0.php
CHANGED
@@ -18,8 +18,8 @@ $installer = $this;
|
|
18 |
$installer->startSetup();
|
19 |
|
20 |
$installer->run("
|
21 |
-
|
22 |
-
CREATE TABLE {$installer->getTable('magebackupfree_backups')} (
|
23 |
`backup_id` int(11) unsigned NOT NULL auto_increment,
|
24 |
`name` varchar(255) NOT NULL DEFAULT '',
|
25 |
`description` text NOT NULL DEFAULT '',
|
18 |
$installer->startSetup();
|
19 |
|
20 |
$installer->run("
|
21 |
+
DROP TABLE IF EXISTS {$installer->getTable('magebackupfree_backups')};
|
22 |
+
CREATE TABLE IF NOT EXISTS {$installer->getTable('magebackupfree_backups')} (
|
23 |
`backup_id` int(11) unsigned NOT NULL auto_increment,
|
24 |
`name` varchar(255) NOT NULL DEFAULT '',
|
25 |
`description` text NOT NULL DEFAULT '',
|
package.xml
CHANGED
@@ -1,18 +1,18 @@
|
|
1 |
<?xml version="1.0"?>
|
2 |
<package>
|
3 |
<name>MageBackup_MageBackupFree</name>
|
4 |
-
<version>1.0.
|
5 |
<stability>stable</stability>
|
6 |
<license uri="http://opensource.org/licenses/osl-3.0.php">OSL V3.0</license>
|
7 |
<channel>community</channel>
|
8 |
<extends/>
|
9 |
<summary>Free Edition of MageBackup</summary>
|
10 |
<description>Free Edition of MageBackup</description>
|
11 |
-
<notes
|
12 |
<authors><author><name>MageBackup</name><user>auto-converted</user><email>admin@magebackup.com</email></author></authors>
|
13 |
-
<date>2013-
|
14 |
-
<time>
|
15 |
-
<contents><target name="mageetc"><dir name="modules"><file name="MageBackup_MageBackupFree.xml" hash="9b1789c611a9743bbf725e666d0412ec"/></dir></target><target name="magecommunity"><dir name="MageBackup"><dir name="MageBackupFree"><dir name="Block"><dir name="Adminhtml"><dir name="Backup"><dir name="Edit"><dir name="Tab"><file name="General.php" hash="9bc9d8dec92385678334b2e8706e4e65"/></dir><file name="Form.php" hash="a661f74e34974fe2761348e0d6b1afb8"/><file name="Tabs.php" hash="0617f27d4eb62a28a9055ec5289bf112"/></dir><dir name="Renderer"><file name="Download.php" hash="8743ed8d82b186e10c01d2e67cedbb2a"/><file name="Duration.php" hash="2ca43033a82f76810b83b423a2b7a05c"/><file name="Size.php" hash="e58ceed30def39daa8b6a0d2b725814a"/></dir><file name="Edit.php" hash="dd3b84acb742c2d288a2ab03f4aaf231"/><file name="Grid.php" hash="f5ced4e7f2439e79f7d3edc2a1b1df60"/></dir><file name="Backup.php" hash="4906de5fbbbcbe42c0e894d8f1c6dd29"/></dir><file name="Magebackupfree.php" hash="bca539013fb74f3525c927b6626e1f1c"/></dir><dir name="Helper"><file name="Data.php" hash="de1779d993db2cecdfab8860190f6f6a"/></dir><dir name="Model"><dir name="Backup"><file name="Backup.php" hash="d2031481cc901ea141b621e2bff5dda2"/><file name="Db.php" hash="79d819d238c05a4e1882d62caacb3fea"/><file name="File.php" hash="b46fb7049ace1f3a263529feae522e71"/></dir><dir name="Config"><dir name="Cron"><file name="Frequency.php" hash="6e24a4793ada7d22c19080a62911f9c8"/><file name="Hour.php" hash="fc2fd25f3091a0d51becb11427c34855"/></dir><file name="Backuptype.php" hash="5ad6bcda4d5fae0e429e7f7155eb70a0"/><file name="File.php" hash="b0030ec5911f3588d58b288a9f78338e"/></dir><dir name="Mysql4"><dir name="Backup"><file name="Collection.php" hash="3b93ee16ecb244e7e0d50fbe19481ae0"/></dir><file name="Backup.php" hash="d9ad5a01f68da24bd58a53d6d299e366"/></dir><file name="Backup.php" hash="959f09f99d6e31eef983f24a97f625a5"/><file name="Config.php" hash="e608f8421b5c5e1367b243aa9fb73d4f"/><file name="Status.php" hash="8d6ab9f92754bef1d25a072b5aeb5687"/></dir><dir name="controllers"><dir name="Adminhtml"><dir name="Magebackupfree"><file name="BackupController.php" hash="
|
16 |
<compatible/>
|
17 |
<dependencies/>
|
18 |
</package>
|
1 |
<?xml version="1.0"?>
|
2 |
<package>
|
3 |
<name>MageBackup_MageBackupFree</name>
|
4 |
+
<version>1.0.1</version>
|
5 |
<stability>stable</stability>
|
6 |
<license uri="http://opensource.org/licenses/osl-3.0.php">OSL V3.0</license>
|
7 |
<channel>community</channel>
|
8 |
<extends/>
|
9 |
<summary>Free Edition of MageBackup</summary>
|
10 |
<description>Free Edition of MageBackup</description>
|
11 |
+
<notes>- Added: Compatible with Magento ACL.</notes>
|
12 |
<authors><author><name>MageBackup</name><user>auto-converted</user><email>admin@magebackup.com</email></author></authors>
|
13 |
+
<date>2013-10-15</date>
|
14 |
+
<time>08:27:37</time>
|
15 |
+
<contents><target name="mageetc"><dir name="modules"><file name="MageBackup_MageBackupFree.xml" hash="9b1789c611a9743bbf725e666d0412ec"/></dir></target><target name="magecommunity"><dir name="MageBackup"><dir name="MageBackupFree"><dir name="Block"><dir name="Adminhtml"><dir name="Backup"><dir name="Edit"><dir name="Tab"><file name="General.php" hash="9bc9d8dec92385678334b2e8706e4e65"/></dir><file name="Form.php" hash="a661f74e34974fe2761348e0d6b1afb8"/><file name="Tabs.php" hash="0617f27d4eb62a28a9055ec5289bf112"/></dir><dir name="Renderer"><file name="Download.php" hash="8743ed8d82b186e10c01d2e67cedbb2a"/><file name="Duration.php" hash="2ca43033a82f76810b83b423a2b7a05c"/><file name="Size.php" hash="e58ceed30def39daa8b6a0d2b725814a"/></dir><file name="Edit.php" hash="dd3b84acb742c2d288a2ab03f4aaf231"/><file name="Grid.php" hash="f5ced4e7f2439e79f7d3edc2a1b1df60"/></dir><file name="Backup.php" hash="4906de5fbbbcbe42c0e894d8f1c6dd29"/></dir><file name="Magebackupfree.php" hash="bca539013fb74f3525c927b6626e1f1c"/></dir><dir name="Helper"><file name="Data.php" hash="de1779d993db2cecdfab8860190f6f6a"/></dir><dir name="Model"><dir name="Backup"><file name="Backup.php" hash="d2031481cc901ea141b621e2bff5dda2"/><file name="Db.php" hash="79d819d238c05a4e1882d62caacb3fea"/><file name="File.php" hash="b46fb7049ace1f3a263529feae522e71"/></dir><dir name="Config"><dir name="Cron"><file name="Frequency.php" hash="6e24a4793ada7d22c19080a62911f9c8"/><file name="Hour.php" hash="fc2fd25f3091a0d51becb11427c34855"/></dir><file name="Backuptype.php" hash="5ad6bcda4d5fae0e429e7f7155eb70a0"/><file name="File.php" hash="b0030ec5911f3588d58b288a9f78338e"/></dir><dir name="Mysql4"><dir name="Backup"><file name="Collection.php" hash="3b93ee16ecb244e7e0d50fbe19481ae0"/></dir><file name="Backup.php" hash="d9ad5a01f68da24bd58a53d6d299e366"/></dir><file name="Backup.php" hash="959f09f99d6e31eef983f24a97f625a5"/><file name="Config.php" hash="e608f8421b5c5e1367b243aa9fb73d4f"/><file name="Status.php" hash="8d6ab9f92754bef1d25a072b5aeb5687"/></dir><dir name="controllers"><dir name="Adminhtml"><dir name="Magebackupfree"><file name="BackupController.php" hash="fd51c8bed7c1c2b4ab6e62a25ddf1866"/></dir></dir></dir><dir name="etc"><file name="adminhtml.xml" hash="a059dd3ff0c6fbe66f2259df2ffae11a"/><file name="config.xml" hash="718e6df507a9a861cb495e0cf73dde12"/><file name="system.xml" hash="faba0655f1be7bf49782c51411f0bee5"/></dir><dir name="sql"><dir name="magebackupfree_setup"><file name="mysql4-install-1.0.0.php" hash="07185b2dacb2ce3f0560871c3f893544"/></dir></dir></dir></dir></target><target name="magedesign"><dir name="adminhtml"><dir name="default"><dir name="default"><dir name="layout"><file name="magebackupfree.xml" hash="969b28355c33bb692fae701f08618894"/></dir></dir></dir></dir></target><target name="magelocale"><dir name="en_US"><file name="MageBackup_MageBackupFree.csv" hash="b3bf6b19d43bc3e0088a4a793c671b80"/></dir></target></contents>
|
16 |
<compatible/>
|
17 |
<dependencies/>
|
18 |
</package>
|