skip to content
rift-valley-foundation.org

Config mit dynamischem Domainnamen

$pfad = 'http://'.$_SERVER['HTTP_HOST'];

define('DB_TYPE', 'mysql');
define('DB_HOST', 'host');
define('DB_USERNAME', 'username');
define('DB_PASSWORD', 'password');
define('DB_NAME', 'dbname');
define('TABLE_PREFIX', 'wb_');

define('WB_PATH', dirname(__FILE__));
define('WB_URL', $pfad);
define('ADMIN_PATH', WB_PATH.'/admin');
define('ADMIN_URL', $pfad.'/admin');

require_once(WB_PATH.'/framework/initialize.php');

Die Server-Variable $_SERVER['HTTP_HOST']' gibt folgendes aus: www.web-seitig.de