WebsiteBaker Community Forum

General Community => Global WebsiteBaker 2.8.x discussion => Topic started by: Xagone on April 16, 2009, 09:47:14 PM

Title: config tweaks
Post by: Xagone on April 16, 2009, 09:47:14 PM
didn't know were to put this.

but just for fun, I've tweak my config file to be more... versatile..

with some install I move them from a server to another, to a subdomains to a folder and so forth, i need to change the config everytime, so in config.php i've tweaked it like this :

after the mysql configs, i've replaced the defined of WB_PATH,WB_URL,ADMIN_PATH & ADMIN_URL by this :
Code: [Select]
define('WB_ADMIN_FOLDER','/admin');
define('WB_PATH', dirname(__FILE__));
define('WB_URL', 'http://'.$_SERVER['HTTP_HOST']);
define('ADMIN_PATH', WB_PATH.WB_ADMIN_FOLDER);
define('ADMIN_URL', WB_URL.WB_ADMIN_FOLDER);

there is no practicality to this, just mental gymnastic fun!