Adding a backup link without enabling admin access
2 posts by 2 authors in: Forums > CMS Builder
Last Post: March 26, 2010 (RSS)
Hi all,
This is just a quick hack to enable the ability for editor's and authors to run the backup script without giving them full administrative rights to the software.
First create a text link section and set the link URL to:
admin.php?menu=admin&action=backup
If you log in now as an author or editor and try and run the backup script you'll notice that you'll just get an error.
To fix this open lib/menus/admin/actionHandler.php and right at the top of this file you'll see about 4 lines titled "### check access level" --- comment out or delete these 4 lines.
Next go down to about line 73 and find this:
showInterface('admin/general.php');
replace this with:
showInterface('');
That's it. This hack actually enables the editor/author to access the administration section but only if they are able to guess the URL (like: admin.php?menu=admin&action=general).
This is just a quick hack to enable the ability for editor's and authors to run the backup script without giving them full administrative rights to the software.
First create a text link section and set the link URL to:
admin.php?menu=admin&action=backup
If you log in now as an author or editor and try and run the backup script you'll notice that you'll just get an error.
To fix this open lib/menus/admin/actionHandler.php and right at the top of this file you'll see about 4 lines titled "### check access level" --- comment out or delete these 4 lines.
Next go down to about line 73 and find this:
showInterface('admin/general.php');
replace this with:
showInterface('');
That's it. This hack actually enables the editor/author to access the administration section but only if they are able to guess the URL (like: admin.php?menu=admin&action=general).
Re: [johnnybegood] Adding a backup link without enabling admin access
By Donna - March 26, 2010
Neat hack, thanks for sharing. :)
Donna
--
support@interactivetools.com
--
support@interactivetools.com