diff --git a/config.php b/config.php index 7bf2a52..85bd5a9 100644 --- a/config.php +++ b/config.php @@ -12,8 +12,19 @@ define ('CACHEDIR', HOME . 'cache/'); define ('LOCALEDIR', HOME . 'locale/'); /* diese Pfade als URLS */ -// Evolver -define ('BASEURL', "http://localhost/~georg/bilder/"); +switch ($_SERVER["HTTP_HOST"]) +{ + // Georgs Testumgebung + case 'georgs_test': + define ('BASEURL', "http://". $_SERVER['SERVER_NAME'] . "/"); + define ('BASESURL', "https://". $_SERVER['SERVER_NAME'] . "/"); + break; + + // Evolver + default: + define ('BASEURL', "http://localhost/~georg/bilder/"); + define ('BASESURL', "https://localhost/~georg/bilder/"); +} define ('IMGURL', BASEURL . 'img/'); define ('LIBURL', BASEURL . 'libs/');