WebsiteBaker Logo
  • *
  • Templates
  • Help
  • Add-ons
  • Download
  • Home
*
Welcome, Guest. Please login or register.

Login with username, password and session length
 

News


WebsiteBaker 2.13.6 is now available!


Will it continue with WB? It goes on! | Geht es mit WB weiter? Es geht weiter!
https://forum.websitebaker.org/index.php/topic,32340.msg226702.html#msg226702


The forum email address board@websitebaker.org is working again
https://forum.websitebaker.org/index.php/topic,32358.0.html


R.I.P Dietmar (luisehahne) and thank you for all your valuable work for WB
https://forum.websitebaker.org/index.php/topic,32355.0.html


* Support WebsiteBaker

Your donations will help to:

  • Pay for our dedicated server
  • Pay for domain registration
  • and much more!

You can donate by clicking on the button below.


  • Home
  • Help
  • Search
  • Login
  • Register

  • WebsiteBaker Community Forum »
  • General Community »
  • Global WebsiteBaker 2.8.x discussion »
  • config tweaks
  • Print
Pages: [1]   Go Down

Author Topic: config tweaks  (Read 4483 times)

Offline Xagone

  • Posts: 482
  • Gender: Male
  • Developper
    • Xagone Inc
config tweaks
« 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!
Logged
Xagone Inc. (formerly VotreEspace)
http://xagone.com/

  • Print
Pages: [1]   Go Up
  • WebsiteBaker Community Forum »
  • General Community »
  • Global WebsiteBaker 2.8.x discussion »
  • config tweaks
 

  • SMF 2.0.19 | SMF © 2017, Simple Machines
  • XHTML
  • RSS
  • WAP2