[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Phpgroupware-cvs] [19116] Small fix for ical.php : change a little bit
From: |
Caeies |
Subject: |
[Phpgroupware-cvs] [19116] Small fix for ical.php : change a little bit the headers for helping debug, and use chunk_split per default |
Date: |
Wed, 08 Jul 2009 08:50:31 +0000 |
Revision: 19116
http://svn.sv.gnu.org/viewvc/?view=rev&root=phpgroupware&revision=19116
Author: Caeies
Date: 2009-07-08 08:50:31 +0000 (Wed, 08 Jul 2009)
Log Message:
-----------
Small fix for ical.php : change a little bit the headers for helping debug, and
use chunk_split per default
Modified Paths:
--------------
branches/Version-0_9_16-branch/calendar/ical.php
Modified: branches/Version-0_9_16-branch/calendar/ical.php
===================================================================
--- branches/Version-0_9_16-branch/calendar/ical.php 2009-07-08 08:49:25 UTC
(rev 19115)
+++ branches/Version-0_9_16-branch/calendar/ical.php 2009-07-08 08:50:31 UTC
(rev 19116)
@@ -74,7 +74,6 @@
'noheader' => True
);
include('../header.inc.php');
- header('Content-type: text/calendar');
$login = $_SERVER['PHP_AUTH_USER'];
$passwd = $_SERVER['PHP_AUTH_PW'];
@@ -91,5 +90,9 @@
list($end['d'], $end['m'], $end['y']) = explode('-', date('d-n-Y',
strtotime("+$adv months")));
$ids = $so->list_events($start['y'], $start['m'], $start['d'],
$end['y'], $end['m'], $end['d']);
- echo $export->export( array('l_event_id' => $ids) );
+ $str = $export->export( array('l_event_id' => $ids, 'chunk_split' =>
True) );
+ header('Content-Disposition: inline; filename="phpgroupware.ics"');
+ header('Content-type: text/calendar');
+ header('Content-Length: '.strlen($str));
+ echo $str;
?>
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [Phpgroupware-cvs] [19116] Small fix for ical.php : change a little bit the headers for helping debug, and use chunk_split per default,
Caeies <=