3 $http_host=$_SERVER["HTTP_HOST"];
4 if (substr($http_host, 0, strlen("agendav.")) == "agendav.") {
5 $http_host = substr($http_host, strlen("agendav."));
9 if (strtolower($_SERVER['HTTPS']) == 'on') {
13 $config['caldav_calendar_url'] = "$scheme://davical.$http_host/caldav.php/%s/";
14 $config['caldav_http_auth_method'] = CURLAUTH_BASIC
;
15 $config['caldav_principal_url'] = "$scheme://davical.$http_host/caldav.php/%u/";
16 $config['default_permissions'] = array('C:read-free-busy');
17 $config['enable_calendar_sharing'] = TRUE;
18 $config['owner_permissions'] = array
23 , 'read-current-user-privilege-set'
32 $config['public_caldav_url'] = "$scheme://davical.$http_host/caldav.php/%s/";
33 $config['read_profile_permissions'] = array
37 $config['read_write_profile_permissions'] = array('C:read-free-busy', 'read', 'write');