From b2cdfa500fa2ae85079e61be4a767b2960e47601 Mon Sep 17 00:00:00 2001 From: MaZderMind Date: Fri, 3 Jul 2015 13:09:15 +0200 Subject: ssl() and proto() helper to keep visitors on their url scheme --- config.php | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) (limited to 'config.php') diff --git a/config.php b/config.php index 744bcf7..6faf9fb 100644 --- a/config.php +++ b/config.php @@ -6,8 +6,12 @@ date_default_timezone_set('Europe/Berlin'); * In Produktionssituationen sollte manuell eine konfiguriert werden um Überraschungen zu vermeiden */ if($_SERVER['HTTP_HOST'] != 'localhost') - $GLOBALS['CONFIG']['BASEURL'] = 'http://streaming.media.ccc.de/'; + $GLOBALS['CONFIG']['BASEURL'] = proto().'://streaming.media.ccc.de/'; +/** + * Beispielkonfiguration für Produktionssituationen + */ +//$GLOBALS['CONFIG']['BASEURL'] = proto().'://streaming.media.ccc.de/'; $GLOBALS['CONFIG']['CONFERENCE'] = array( /** -- cgit v1.2.3