Google Translate: |
Changing the Admin LocationA security feature of CubeCart version 4 is the ability to change the path of the Administration area.This can easily be done by following these easy steps. 1. Find the following file: /admin.php Rename it to your required name, for this example we are going to call it 'myadmin1.php'.2. Find the following directory: /admin/ Rename it to your required name, for this example we are going to call it 'myadmindirectory'.3. Find the following file: /includes/global.inc.php Edit the file, and you will see the following contents similar to below. Note the entries for 'adminFile' and 'adminFolder':
<?php
4. Change the file to show the changed admin file and folder, as shown below:
$glob['adminFile'] = 'admin.php'; $glob['adminFolder'] = 'admin'; $glob['dbdatabase'] = 'my_database_name'; $glob['dbhost'] = 'localhost'; $glob['dbpassword'] = 'my_password'; $glob['dbprefix'] = 'myPrefix_'; $glob['dbusername'] = 'my_username'; $glob['encoder'] = 'ioncube'; $glob['installed'] = '1'; $glob['license_key'] = 'XXXXX-XXXX-X-XXXXXXXXXX-XXXXXXXX'; $glob['rootRel'] = '/shop/'; $glob['storeURL'] = 'http://www.mydomain.com/shop'; ?>
<?php
$glob['adminFile'] = 'myadmin1.php'; $glob['adminFolder'] = 'myadmindirectory'; $glob['dbdatabase'] = 'my_database_name'; $glob['dbhost'] = 'localhost'; $glob['dbpassword'] = 'my_password'; $glob['dbprefix'] = 'myPrefix_'; $glob['dbusername'] = 'my_username'; $glob['encoder'] = 'ioncube'; $glob['installed'] = '1'; $glob['license_key'] = 'XXXXX-XXXX-X-XXXXXXXXXX-XXXXXXXX'; $glob['rootRel'] = '/shop/'; $glob['storeURL'] = 'http://www.mydomain.com/shop'; ?> IMPORTANT: The file name and directory/folder are case sensitive. 5. Save and upload the new 'global'inc.php', and log into your admin using the address: http://www.mydomain.com/shop/myadmin1.php |
| Comments, Feedback, Suggestions and Documentation Submissions please post in the Documentation Chat Forum. |