Guest bobdydd Posted June 9, 2013 Posted June 9, 2013 Hi Just getting going and trying to make the site a little more secure. Are there any instructions as to how to change the Admin folder to a new name (say admin123) in version 5. The only thing I found on the subject was this. http://forums.cubecart.com/topic/44047-move-admin-area/?hl=%2Bmove+%2Badmin But they never discussed it further. I would be grateful if someone could help Best Regards Quote
bsmither Posted June 9, 2013 Posted June 9, 2013 In the file /includes/global.inc.php, you can change the admin foldername (admin) and the admin filename (admin.php) to whatever you want. And it will mostly work. There are a couple of places in the CubeCart code that are hard-coded to use admin and admin.php. /admin/index.php, line 2 and 3 /js/admin.js, six places, and I'm not sure how one gets around that /js/plugins/jquery.filetree.js, line 50, same as above Here are two examples of what should be used: $link = $GLOBALS['storeURL'].'/'.$GLOBALS['config']->get('config','adminFile').'?_g=products'; $link = sprintf('%s?_g=products',$glob['adminFile']); (It seems like there is a lack of consistency in the programming, but, oh well.) $glob is not available after the Config class is instantiated. This only happens on the store side. Both $GLOBALS['config'] and $glob are available on the admin side. And there is no guarantee that mod programmers follow this. Quote
Guest bobdydd Posted June 10, 2013 Posted June 10, 2013 Hi BSmither Thanks for coming back so soon. There is a very good instruction on how to do this for CubeCart Version 4 http://www.cubecartforums.org/docs/index.php?id=187 But it is not the same as version 5. Maybe someone who is a little more familiar with CC than I am could transpose it for version 5. Anyway I will give your recommendation a go later today. Once again thanks Quote
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.