Back to vBulletin 3.8 Add-ons

KX - Rename Config File
Mod Version: 1.0.0, by Ziki

vB Version: 3.8.x Rating: (2 votes - 5.00 average) Installs: 53
Released: 14 Dec 2008 Last Update: Never Downloads: 221
Not Supported Code Changes Translations  

This modification was brought to you by
KXDesign
http://www.kxdesign.com/


~Modification name
Rename Config File

~Modification description
This modification allows you to rename or move the config.php file.This is to protect your sensible information and increase the security of your vBulletin board.

The majority of boards get hacked because a hacker uploads a malicious script to get hold of the config.php content.But if you move or rename it,there is no chance that they find out the location of it.

Tips & Tricks:

vBSEO -

Spoiler (click to open)


ye, cuz ur out of your forums folder! the folder has to be in your forums folder!

if sumone is using vbseo, uve to change the config path in config_vbseo.php too!

search
Code:
define('VBSEO_VB_CONFIG',              'config.php');
replace with
Code:
define('VBSEO_VB_CONFIG',              '../folder/newconfig.php');
important is the .. !

Close

Fool Hackers -

Spoiler (click to open)


why not keep a fake copy of config.php with this mod, in the original folder to fool hackers?

Close


~Modification options
None

~Modification info
File uploads: 0
File edits: 1
Templates: 0
Template edits: 0
Plugins: 0
SQL Queries: 0
Phrases: 0
Settings: 0
Hooks: 0

Install time: 1 minute
Install level: Light

~Modification installation

Step 1: Open includes/class_core.php and find:

Code:
include(CWD . '/includes/config.php');
		if (sizeof($config) == 0)
		{
			if (file_exists(CWD. '/includes/config.php'))
			{
				// config.php exists, but does not define $config
				die('<br /><br /><strong>Configuration</strong>: includes/config.php exists, but is not in the 3.6+ format. Please convert your config file via the new config.php.new.');
			}
			else
			{
				die('<br /><br /><strong>Configuration</strong>: includes/config.php does not exist. Please fill out the data in config.php.new and rename it to config.php');
			}
		}
And replace it with:

Code:
include(CWD . 'XXXXX');
		if (sizeof($config) == 0)
		{
			if (file_exists(CWD. 'XXXXX'))
			{
				// config.php exists, but does not define $config
				die('<br /><br /><strong>Configuration</strong>: includes/config.php exists, but is not in the 3.6+ format. Please convert your config file via the new config.php.new.');
			}
			else
			{
				die('<br /><br /><strong>Configuration</strong>: includes/config.php does not exist. Please fill out the data in config.php.new and rename it to config.php');
			}
		}
Where XXXXX is the relative path to your new config file.It can be, for instance:
admincp/mynewconfig.php or includes/configuration.php .

~Modification screenshots
None

~Modification changelog
  • 1.0.0 - First Release


~Modification copyright
This may not be distributed,released or claimed as your work without author's permission.

Download

File Type: %1$s kx_renameconfig.txt (1.6 KB, 228 downloads)

Similar Mods

Move and or Rename config.php vBulletin 3.5 Add-ons
Move and or Rename config.php vBulletin 3.0 Full Releases

vblts.ru supports vBulletin®, 2022-2025