[kronolith] [PATCH] direct link to guest calendars

Rob Lineweaver rlineweaver at harrisonburg.k12.va.us
Thu Sep 11 18:08:25 PDT 2003


Greetings,

The attached patch to kronolith/lib/base.php (CVS HEAD) enables a calendar with
guest privileges to be accessed directly by specifying the name of the calendar
as a GET parameter in the URL.  In other words, it lets you make a link on
another web page that takes visitors directly to a public calendar (without
going through the login screen -> Guest Services -> Calendar -> choose the
calendar).  The GET parameter name I chose is "public_calendar" and you can
make links directly to month, week, or day view as desired.

For instance, some of my schools are creating public calendars by allowing guest
access on a shared calendar and then linking to it directly from their school
web page with a URL such as:

http://webmail.harrisonburg.k12.va.us/horde/kronolith/?public_calendar=THMS

This code only activates if guest services have been enabled in your config.  It
also runs addslashes() on the GET data so I think it is safe from SQL injection
attempts (please correct me if this is not a good assumption).

Rob Lineweaver
Network Administrator
Harrisonburg City Public Schools
-------------- next part --------------
A non-text attachment was scrubbed...
Name: guest_calendar_link.patch
Type: text/diff
Size: 1088 bytes
Desc: not available
Url : http://lists.horde.org/archives/kronolith/attachments/20030911/3b6e214c/guest_calendar_link.bin


More information about the kronolith mailing list