68 Classifieds Blog

Features

Custom Administration Folder

Posted on October 28, 2008 by Eric Barnes

For those security conscious individuals this post will out line how to change the name of your administration folder. Please note this is only supported with versions v4.1 and newer.

Step 1.

The first step is to rename the administration folder. For this tutorial we will name it “admintest”.

Step 2.

Now that the folder has been renamed. Next open the file “admintest/includes/params.php”. By default it should include the following:

/**
* @copyright 68 Classifieds
*
* @author $Author: suzkaw $
* @version $Revision: 12 $
* @package 68Classifieds
* @link http://www.68classifieds.com
*
* @Updated: $Date: 2008-09-10 13:41:06 -0400 (Wed, 10 Sep 2008) $
*/
/**
* This file is included in the init file before any
* other php coding has started. This is usefull if your
* host requires a custom setting that you can not change.
*/
error_reporting(E_ALL & ~E_NOTICE & ~E_WARNING);
/* End of file administration/includes/params.php */

Just below the error_reporting line add this:
$base_dir = str_replace('admintest', '', dirname(dirname(__FILE__)));

The portion ‘admintest’ is the new administration folder name that we created in step one.

Now save and upload this file.

Step 3.

After the previous steps have been done you can now visit yoursite.com/admintest and should be able to login.

Troubleshooting

If you having troubles with step2 you can also define the full path to your classifieds root. For example:
$base_dir = '/home/name/public_html/';

The full path can be found by creating a phpinfo file.

Comments