Ajout : DAViCal + CalDavZAP + AgenDAV .
[lhc/ateliers.git] / etc / agendav / caldav.php
diff --git a/etc/agendav/caldav.php b/etc/agendav/caldav.php
new file mode 100755 (executable)
index 0000000..44f4eee
--- /dev/null
@@ -0,0 +1,32 @@
+<?php
+
+$scheme = 'http';
+if (strtolower($_SERVER['HTTPS']) == 'on') {
+       $scheme = 'https';
+ }
+
+$config['caldav_calendar_url'] = "$scheme://davical.heureux-cyclage.org/caldav.php/%s/";
+$config['caldav_http_auth_method'] = CURLAUTH_BASIC;
+$config['caldav_principal_url'] = "$scheme://davical.heureux-cyclage.org/caldav.php/%u/";
+$config['default_permissions'] = array('C:read-free-busy');
+$config['enable_calendar_sharing'] = TRUE;
+$config['owner_permissions'] = array
+ ( 'all'
+ , 'read'
+ , 'unlock'
+ , 'read-acl'
+ , 'read-current-user-privilege-set'
+ , 'C:read-free-busy'
+ , 'write-acl'
+ , 'write'
+ , 'write-properties'
+ , 'write-content'
+ , 'bind'
+ , 'unbind'
+ );
+$config['public_caldav_url'] = "$scheme://davical.heureux-cyclage.org/caldav.php/%s/";
+$config['read_profile_permissions'] = array
+ ( 'read'
+ , 'C:read-free-busy'
+ );
+$config['read_write_profile_permissions'] = array('C:read-free-busy', 'read', 'write');