hjkhghopjkertteerterterterertertrtoirh
bnmbertsurhetertertertertertertertpdf'tdfg
/
home
/
ubuntu
/
bmse.net
/
Upload FileeE
HOME
<?php header('Content-type: text/calendar; charset=utf-8'); header('Content-Disposition: inline; filename='.str_replace(" ","",$_REQUEST['name']).'.ics'); $iCal=''; $startDateTime = (isset($_REQUEST['start_dttm']) AND $_REQUEST['start_dttm']!="") ? $_REQUEST['start_dttm'] : " "; $endDateTime = (isset($_REQUEST['end_dttm']) AND $_REQUEST['end_dttm']!="") ? $_REQUEST['end_dttm'] : " "; $slotTime= (isset($_REQUEST['slot_time']) AND $_REQUEST['slot_time']!="") ? $_REQUEST['slot_time'] : " "; $name= (isset($_REQUEST['name']) AND $_REQUEST['name']!="") ? $_REQUEST['name'] : " "; $description= (isset($_REQUEST['description']) AND $_REQUEST['description']!="") ? $_REQUEST['description'] : " "; if(isset($_REQUEST['eid']) && $_REQUEST['eid']!=''){ if(isset($_REQUEST['type']) && $_REQUEST['type']=='lectureslot'){ $iCal="BEGIN:VCALENDAR VERSION:2.0 PRODID:-//hacksw/handcal//NONSGML v1.0//EN BEGIN:VEVENT DTSTAMP:".gmdate('Ymd').'T'.gmdate('His')."Z DTSTART:".date('Ymd\THis',strtotime($startDateTime))."Z DTEND:".date('Ymd\THis',strtotime($endDateTime))."Z SUMMARY:".trim($name," ")." DESCRIPTION:Time-".$slotTime." ".$description.". END:VEVENT END:VCALENDAR"; }else{ $iCal="BEGIN:VCALENDAR VERSION:2.0 PRODID:-//hacksw/handcal//NONSGML v1.0//EN BEGIN:VEVENT DTSTAMP:".gmdate('Ymd').'T'.gmdate('His')."Z DTSTART:".date('Ymd\THis',strtotime($startDateTime))."Z DTEND:".date('Ymd\THis',strtotime($endDateTime))."Z SUMMARY:".strip_tags(trim(urldecode($name)," "))." DESCRIPTION:".strip_tags(urldecode($description)).". END:VEVENT END:VCALENDAR"; } } echo $iCal; exit; ?>