PluginProbe
Event Post / 5.0
Event Post v5.0
6.1.1 6.1.0 6.0.1 6.0.0 5.12.0 trunk 3.9 4.0 4.2 4.3 4.4 4.5 5.0 5.1 5.10.0 5.10.1 5.10.2 5.10.3 5.10.4 5.11.0 5.11.1 5.2 5.5 5.6 5.6.1 All 46 releases
← All changes | export/vcs.php +3 -20 4.35.0 View file →
@@ -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');