Search the Community
Showing results for tags 'ics'.
-
Sveiki, mēģinu palaist uz android kalendāru savu .ics failu, bet android nenolasa. Caur online ics validatoru man parādu šādu kļūdu: Missing VCALENDAR object near line # 1Reference: RFC 5545 3.4 iCalendar Object Mans kods: require_once('src/idiorm/dbase.php'); header("Content-Type: text/Calendar"); header("Content-Disposition: inline; filename=filename.ics"); $calendar =' BEGIN:VCALENDAR\n PRODID:-//kkas/kkas//v 0.1//LV VERSION:2.0\n METHOD:PUBLISH\n X-MS-OLK-FORCEINSPECTOROPEN:TRUE\n'; $events = ORM::for_table('events')->find_many(); foreach($events as $event){ $id = $event->id; $uid = $event->uid; $startdate = $event->startdate; $enddate = $event->startdate; $title = $event->title; $desc = $event->description; $addtime = $event->addtime; $modifed = $event->last_modifed; $calendar .='BEGIN:VEVENT\n CLASS:PUBLIC\n CREATED:'.$addtime.'\n DESCRIPTION:'.$desc.'\n DTSTAMP:'.$addtime.'\n DTSTART:'.$startdate.'\n DTEND:'.$startdate.'\n LAST-MODIFIED:'.$modifed.'\n LOCATION:\n PRIORITY:5\n SEQUENCE:0\n SUMMARY:LANGUAGE=lv:'.$title.'\n TRANSP:OPAQUE\n UID:'.$id.'\n X-MICROSOFT-CDO-BUSYSTATUS:BUSY\n X-MICROSOFT-CDO-IMPORTANCE:1\n X-MICROSOFT-DISALLOW-COUNTER:FALSE\n X-MS-OLK-ALLOWEXTERNCHECK:TRUE\n X-MS-OLK-AUTOFILLLOCATION:FALSE\n X-MS-OLK-CONFTYPE:0\n END:VEVENT\n'; } $calendar .='END:VCALENDAR'; echo $calendar; ?> Es īstiu nesaprotu kas nav pareizi! P.S. Paldies jau iepriekš.