aboutsummaryrefslogtreecommitdiff
path: root/config.php
diff options
context:
space:
mode:
authorMaZderMind2015-02-26 09:11:07 +0100
committerMaZderMind2015-02-26 09:11:07 +0100
commitaf10857ecd132aafbebfc93a5febbb992741e57f (patch)
tree581cabcc63dc7dbf388086ea87cd38ec2384ed79 /config.php
parent3713d507991e5bb96c52767e81ac5c9ffe5beaa3 (diff)
Automatically set Base-URL when not on Localhost
Diffstat (limited to 'config.php')
-rw-r--r--config.php3
1 files changed, 2 insertions, 1 deletions
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/';