aboutsummaryrefslogtreecommitdiffstats
path: root/rss
diff options
context:
space:
mode:
authorWesley Miaw <josuah@users.sourceforge.net>2005-10-30 01:32:44 +0000
committerWesley Miaw <josuah@users.sourceforge.net>2005-10-30 01:32:44 +0000
commitfc81f9ebde033c58f729f392dba7914112d40720 (patch)
tree949f1a56d5a6de5695d93eb6c01adc3f24907c4f /rss
parent966c67f92d14beaf7f6a2ba3386a8e6953cf9eb3 (diff)
downloadphpicalendar-fc81f9ebde033c58f729f392dba7914112d40720.zip
phpicalendar-fc81f9ebde033c58f729f392dba7914112d40720.tar.gz
phpicalendar-fc81f9ebde033c58f729f392dba7914112d40720.tar.bz2
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.php6
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
+?>

© 2014-2020 Faster IT GmbH | imprint | privacy policy