From af10857ecd132aafbebfc93a5febbb992741e57f Mon Sep 17 00:00:00 2001 From: MaZderMind Date: Thu, 26 Feb 2015 09:11:07 +0100 Subject: Automatically set Base-URL when not on Localhost --- config.php | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/config.php b/config.php index 0405ccf..8e5e4d6 100644 --- a/config.php +++ b/config.php @@ -5,7 +5,8 @@ date_default_timezone_set('Europe/Berlin'); * Während der Entwicklung wird die BASEURL automatisch erraten * In Produktionssituationen sollte manuell eine konfiguriert werden um Überraschungen zu vermeiden */ -//$GLOBALS['CONFIG']['BASEURL'] = 'http://foo.com/bar/'; +if($_SERVER['HTTP_HOST'] != 'localhost') + $GLOBALS['CONFIG']['BASEURL'] = 'http://streaming.media.ccc.de/'; -- cgit v1.2.3