dupa.php 909 B

123456789101112131415161718192021
  1. <?
  2. require_once('superedit-SEF.php');
  3. SEF('DEBUG_S');
  4. require_once('stuff/caldav-client.php');
  5. //$cal = new CalDAVClient( "https://biuro.biall-net.pl:8443/principals/users/a.binder/", "a.binder", "uhuguso", "" );
  6. $cal = new CalDAVClient( "https://biuro.biall-net.pl:8443/calendars/__uids__/4720124D-5F20-4EAB-B501-4872E33F9A5C/calendar/", "a.binder", "uhuguso", "" );
  7. $options = $cal->DoOptionsRequest();
  8. DEBUG_S(-3,'options',$options);
  9. if ( isset($options["PROPFIND"]) ) {
  10. // Fetch some information about the events in that calendar
  11. $cal->SetDepth(1);
  12. $folder_xml = $cal->DoXMLRequest("PROPFIND", '<?xml version="1.0" encoding="utf-8" ?><propfind xmlns="DAV:"><prop><getcontentlength/><getcontenttype/><resourcetype/><getetag/></prop></propfind>' );
  13. }
  14. DEBUG_S(-3,'folder_xml',$folder_xml);
  15. $events = $cal->GetEvents("20130901T000000Z","20140101T000000Z");
  16. DEBUG_S(-3,'events',$events);
  17. ?>