config tweaks

Xagone

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 :
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!
Xagone Inc. (formerly VotreEspace)
[url="http://xagone.com/"]http://xagone.com/[/url]