Ajout : agendav.cyclocoop.org .
[lhc/ateliers.git] / etc / agendav / caldav.php
1 <?php
2
3 $http_host=$_SERVER["HTTP_HOST"];
4 if (substr($http_host, 0, strlen("agendav.")) == "agendav.") {
5 $http_host = substr($http_host, strlen("agendav."));
6 }
7
8 $scheme = 'http';
9 if (strtolower($_SERVER['HTTPS']) == 'on') {
10 $scheme = 'https';
11 }
12
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
19 ( 'all'
20 , 'read'
21 , 'unlock'
22 , 'read-acl'
23 , 'read-current-user-privilege-set'
24 , 'C:read-free-busy'
25 , 'write-acl'
26 , 'write'
27 , 'write-properties'
28 , 'write-content'
29 , 'bind'
30 , 'unbind'
31 );
32 $config['public_caldav_url'] = "$scheme://davical.$http_host/caldav.php/%s/";
33 $config['read_profile_permissions'] = array
34 ( 'read'
35 , 'C:read-free-busy'
36 );
37 $config['read_write_profile_permissions'] = array('C:read-free-busy', 'read', 'write');