X-Git-Url: https://git.cyclocoop.org/?a=blobdiff_plain;f=etc%2Fagendav%2Fconfig.php;fp=etc%2Fagendav%2Fconfig.php;h=0709de5379249cd82433540f691e2a3e008d38c8;hb=49e8dcfd4c02e1648b1318eb1dc6874a01a8b614;hp=ca587a4079b80f89300c10fef407c9c3a30655bf;hpb=aa227b359bc50c41c7760edf38d326a2e36ddc77;p=lhc%2Fateliers.git diff --git a/etc/agendav/config.php b/etc/agendav/config.php index ca587a4..0709de5 100755 --- a/etc/agendav/config.php +++ b/etc/agendav/config.php @@ -3,13 +3,18 @@ require_once('/home/www/pub/agendav/web/public/../application/config/production/advanced.php'); require_once('/home/www/pub/agendav/web/public/../application/config/production/defaults.php'); +$http_host = $_SERVER['HTTP_HOST']; +if (substr($http_host, 0, strlen("agendav.")) == "agendav.") { + $http_host = substr($http_host, strlen("agendav.")); + } + $scheme = 'http'; if (strtolower($_SERVER['HTTPS']) == 'on') { $scheme = 'https'; } $config['additional_js'] = array(); -$config['base_url'] = "$scheme://agendav.heureux-cyclage.org/"; +$config['base_url'] = "$scheme://agendav.$http_host/"; $config['calendar_colors'] = array ( 'D4EAEF' , '3A89C9' @@ -34,7 +39,7 @@ $config['default_language'] = 'fr_FR'; $config['default_time_format'] = '24'; $config['default_timezone'] = 'Europe/Paris'; #$config['encryption_key'] = ''; -$config['footer'] = 'davical.heureux-cyclage.org'; +$config['footer'] = "davical.$http_host"; $config['format_column_day'] = 'ddd d MMMM'; $config['format_column_month'] = 'ddd'; $config['format_column_table'] = 'MMM d, yyyy'; @@ -50,4 +55,4 @@ $config['logout_redirect_to'] = ''; $config['proxy_ips'] = ''; $config['show_in_log']= array('ERROR', 'INFO', 'AUTHERR', 'AUTHOK'); # , 'INTERNALS', 'DEBUG' $config['show_public_caldav_url'] = TRUE; -$config['site_title'] = 'agendav.heureux-cyclage.org'; +$config['site_title'] = "agendav.$http_host";