6.0.0-beta1
▾
Tasks
New Task
Search
Photos
Wiki
▾
Tickets
New Ticket
Search
dev.horde.org
Toggle Alerts Log
Help
8/12/25
H
istory
A
ttachments
C
omment
W
atch
Download
Comment on [#691] FreeBusy view of shared calendars
*
Your Email Address
*
Spam protection
Enter the letters below:
.__ . ..__.. .. . [__)|__|[__]|__|\ / | | || || | \/
Comment
> Typically I would want my group's calendar to block out my free time > as well. This might be set by adding the calendar name to my fb URL, > e.g., .../fb.php?c[]=ME&c[]MYGROUPCALENDAR. > > > > Unfortunately group calendars are not indexed by name, but by a long > ID. I suggest mapping the names to IDs before doing the http > retrieve. A suggested for kronolith/lib/Kronolith.php follows. > > > > cvs diff -u -r HEAD kronolith/lib/Kronolith.php > > Index: kronolith/lib/Kronolith.php > > =================================================================== > > RCS file: /repository/kronolith/lib/Kronolith.php,v > > retrieving revision 1.235 > > diff -u -r1.235 Kronolith.php > > --- kronolith/lib/Kronolith.php 4 Oct 2004 15:29:23 -0000 1.235 > > +++ kronolith/lib/Kronolith.php 13 Oct 2004 21:08:37 -0000 > > @@ -1122,6 +1122,16 @@ > > return $url; > > } > > if (!empty($url)) { > > + > > + // Map all known calendar names to their IDs > > + global $all_calendars; > > + $url = rawurldecode($url); > > + foreach ($all_calendars as $cal) { > > + $pattern = "/\=" . $cal->get('name') . "(&|$)/i"; > > + $replacement = "=" . $cal->getName() . "$1"; > > + $url = preg_replace($pattern, $replacement, $url); > > + } > > + > > $data = @file_get_contents($url); > > if ($data) { > > $vCal = &new Horde_iCalendar(); > >
Attachment
Watch this ticket
N
ew Ticket
M
y Tickets
S
earch
Q
uery Builder
R
eports
Saved Queries
Open Bugs
Bugs waiting for Feedback
Open Bugs in Releases
Open Enhancements
Enhancements waiting for Feedback
Bugs with Patches
Enhancements with Patches
Release Showstoppers
Stalled Tickets
New Tickets
Horde 5 Showstoppers