Jump to content

Moving Admin Area


Guest bobdydd

Recommended Posts

Guest bobdydd

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

 

Link to comment
Share on other sites

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.

Link to comment
Share on other sites

Guest bobdydd

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

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...