diff options
author | Wesley Miaw <josuah@users.sourceforge.net> | 2005-10-30 01:32:44 +0000 |
---|---|---|
committer | Wesley Miaw <josuah@users.sourceforge.net> | 2005-10-30 01:32:44 +0000 |
commit | fc81f9ebde033c58f729f392dba7914112d40720 (patch) | |
tree | 949f1a56d5a6de5695d93eb6c01adc3f24907c4f /rss | |
parent | 966c67f92d14beaf7f6a2ba3386a8e6953cf9eb3 (diff) | |
download | phpicalendar-fc81f9ebde033c58f729f392dba7914112d40720.tar.gz phpicalendar-fc81f9ebde033c58f729f392dba7914112d40720.tar.bz2 phpicalendar-fc81f9ebde033c58f729f392dba7914112d40720.zip |
Added support for recursively searching for calendars in your
$calendar_path and the new iCal calendar repository structure. The
calendars are still referenced by calendar name, so all URLs are unchanged.
Refactored the date parsing code out of ical_parser.php and into
date_functions.php. Minor logic changes to the parser to correctly
populate the TODO date and time values.
Refactored the calendar name code into a new getCalendarName() function,
since calendar names may no longer be determined solely by filename if
using an iCal repository. Template code updated to match.
Added calls to stripslashes() for calendar text data, such as the summaries
and descriptions. Also put stripslashes() into people data, since people's
names may contain escaped characters.
Diffstat (limited to 'rss')
-rw-r--r-- | rss/index.php | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/rss/index.php b/rss/index.php index dc1c8d7..e888a1f 100644 --- a/rss/index.php +++ b/rss/index.php @@ -19,12 +19,12 @@ if (empty($default_path)) { $current_view = "rssindex"; $display_date = "RSS Info"; -$filelist = availableCalendarNames($username, $password, $ALL_CALENDARS_COMBINED); +$filelist = availableCalendars($username, $password, $ALL_CALENDARS_COMBINED); foreach ($filelist as $file) { // $cal_filename is the filename of the calendar without .ics // $cal is a urlencoded version of $cal_filename // $cal_displayname is $cal_filename with occurrences of "32" replaced with " " - $cal_filename_tmp = substr($file,0,-4); + $cal_filename_tmp = getCalendarName($file); $cal_tmp = urlencode($cal_filename_tmp); $cal_displayname_tmp = str_replace("32", " ", $cal_filename_tmp); $rss_list .= '<font class="V12" color="blue"><b>'.$cal_displayname_tmp.' '. $calendar_lang.'</b></font><br />'; @@ -75,4 +75,4 @@ $page->replace_tags(array( $page->output(); -?>
\ No newline at end of file +?> |