| @@ -1,21 +1,4 @@ | ||
| 1 | 1 | <?php |
| 2 | -if(isset($_GET['t']) && isset($_GET['sd']) && isset($_GET['ed']) && isset($_GET['d']) && isset($_GET['a']) && isset($_GET['u'])){ | |
| 3 | - date_default_timezone_set('Europe/Paris') ; | |
| 4 | - header("content-type:text/x-vcalendar"); | |
| 5 | - header("Pragma: public"); | |
| 6 | - header("Expires: 0"); | |
| 7 | - header("Cache-Control: must-revalidate, post-check=0, pre-check=0"); | |
| 8 | - header("Cache-Control: public"); | |
| 9 | - header("Content-Disposition: attachment; filename=".$_GET['u'].".vcs;" ); | |
| 10 | - echo"BEGIN:VCALENDAR\r\nVERSION:2.0\r\n"; | |
| 11 | - $sta = array('ACCEPTED','COMPLETED'); | |
| 12 | - $mt = strtotime($_GET['sd']); | |
| 13 | - $vdat = date("Ymd",$mt).'T'.date("His",$mt).'Z'; | |
| 14 | - $vtz = $_GET['tz']; | |
| 15 | - $mte = strtotime($_GET['ed']); | |
| 16 | - $vdate = date("Ymd",$mte).'T'.date("His",$mte).'Z'; | |
| 17 | - //str_replace('-','',$m_date).'T'.str_replace(':','',$m_heure).'Z'; | |
| 18 | - echo"BEGIN:VEVENT\r\nPRODID:agenda_eelv\r\nSUMMARY:".stripslashes($_GET['t'])."\r\nUID:".$_GET['u']."\r\nLOCATION:".stripslashes($_GET['a'])."\r\nDTEND$vtz:$vdate\r\nDTSTART$vtz:$vdat\r\nDESCRIPTION:".stripslashes($_GET['d'])."\r\nEND:VEVENT\r\n"; | |
| 19 | - echo"END:VCALENDAR\r\n"; | |
| 20 | -} | |
| 21 | -?> | |
| 2 | +$mime='x-vcalendar'; | |
| 3 | +$format='vcs'; | |
| 4 | +include('ics.php'); | |