diff options
author | Jim Hu <jimhu@users.sourceforge.net> | 2008-12-28 02:07:53 +0000 |
---|---|---|
committer | Jim Hu <jimhu@users.sourceforge.net> | 2008-12-28 02:07:53 +0000 |
commit | 48218216d38f52305a7a51939a9d55210af4baa9 (patch) | |
tree | 06a46a9b3f6af5f72c42aac22ff2325f647ef2c7 | |
parent | c0739ccf3bda644d52394a3e4c768964dec0d40e (diff) | |
download | phpicalendar-48218216d38f52305a7a51939a9d55210af4baa9.tar.gz phpicalendar-48218216d38f52305a7a51939a9d55210af4baa9.tar.bz2 phpicalendar-48218216d38f52305a7a51939a9d55210af4baa9.zip |
fix undef $rss in rss.php
-rw-r--r-- | calendars/test.ics | 2 | ||||
-rw-r--r-- | config.inc.php | 9 | ||||
-rw-r--r-- | functions/ical_parser.php | 2 | ||||
-rw-r--r-- | rss/rss.php | 2 |
4 files changed, 10 insertions, 5 deletions
diff --git a/calendars/test.ics b/calendars/test.ics index 2ceb909..577955b 100644 --- a/calendars/test.ics +++ b/calendars/test.ics @@ -1,6 +1,6 @@ BEGIN:VCALENDAR
VERSION:2.0
-X-WR-CALNAME:testing
+X-WR-CALNAME:testing \,comma
PRODID:-//Apple Computer\, Inc//iCal 2.0//EN
X-WR-RELCALID:E47AF849-67C8-49F0-AA36-9FD7495400FD
X-WR-TIMEZONE:US/Pacific
diff --git a/config.inc.php b/config.inc.php index 1f9beab..e541891 100644 --- a/config.inc.php +++ b/config.inc.php @@ -58,18 +58,23 @@ phpicalendar currently supports about 30 language variants. For a list of suppo # 'week_length' => '5', // Number of days to display in the week view # 'day_start' => '0600', // Start time for day grid # 'day_end' => '2000', // End time for day grid -); + /* ========= SPECIAL CALENDARS ========= */ + 'allow_webcals' => 'yes', + + +); + $blacklisted_cals[] = ''; // Fill in between the quotes the name of the calendars $blacklisted_cals[] = ''; // you wish to 'blacklist' or that you don't want to show up in your calendar $blacklisted_cals[] = ''; // list. This should be the exact calendar filename without .ics $blacklisted_cals[] = ''; // the parser will *not* parse any cal that is in this list (it will not be Web accessible) // add more lines as necessary -$list_webcals[] = ''; // Fill in between the quotes exact URL of a calendar that you wish +$list_webcals[] = 'http://www.google.com/calendar/ical/jim.hu.biobio%40gmail.com/public/basic.ics'; // Fill in between the quotes exact URL of a calendar that you wish $list_webcals[] = ''; // to show up in your calendar list. You must prefix the URL with http:// $list_webcals[] = ''; // or webcal:// and the filename should contain the .ics suffix $list_webcals[] = ''; // $allow_webcals does *not* need to be "yes" for these to show up and work diff --git a/functions/ical_parser.php b/functions/ical_parser.php index 82e76fe..a70522c 100644 --- a/functions/ical_parser.php +++ b/functions/ical_parser.php @@ -125,7 +125,7 @@ foreach ($cal_filelist as $cal_key=>$filename) { $nextline = fgets($ifile, 1024); $nextline = ereg_replace("[\r\n]", "", $nextline); } - $line = trim($line); + $line = trim(stripslashes($line)); switch ($line) { case 'BEGIN:VEVENT': diff --git a/rss/rss.php b/rss/rss.php index 918e104..4100c61 100644 --- a/rss/rss.php +++ b/rss/rss.php @@ -40,7 +40,7 @@ function enclose_items($rss_items){ function rss_item(){ global $uid,$event_start,$rss_title,$rss_link, $dayofweek, $event_text, $rss_description, $val; - $rss .= '<item>'."\n"; + $rss = '<item>'."\n"; $rss .= '<uid>'.$uid.'</uid>'."\n"; $rss .= '<event_start>'.$event_start.'</event_start>'."\n"; $rss .= '<title>'.$rss_title.'</title>'."\n"; |