WordPress.org

Plugin Directory

Changeset 1623586


Ignore:
Timestamp:
03/28/17 08:55:46 (8 months ago)
Author:
bastho
Message:

mime types vcal/ical

Location:
event-post/trunk
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • event-post/trunk/eventpost.php

    r1617929 r1623586  
    22392239            $separator = "\n"; 
    22402240 
    2241         header("content-type:text/calendar"); 
     2241        header("content-type:text/x-icalendar"); 
    22422242        header("Pragma: public"); 
    22432243        header("Expires: 0"); 
  • event-post/trunk/export/ics.php

    r1617929 r1623586  
    11<?php 
    22if(isset($_GET['t']) && isset($_GET['sd']) && isset($_GET['ed']) && isset($_GET['d']) && isset($_GET['a']) && isset($_GET['u'])){ 
    3     header("content-type:text/x-vcalendar"); 
     3    header("content-type:text/".(isset($mime)?$mime:'x-icalendar')); 
    44    header("Pragma: public"); 
    55    header("Expires: 0"); 
  • event-post/trunk/export/vcs.php

    r1617929 r1623586  
    11<?php 
     2$mime='x-vcalendar'; 
    23$format='vcs'; 
    34include('ics.php'); 
Note: See TracChangeset for help on using the changeset viewer.