aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--calendars/test.ics2
-rw-r--r--config.inc.php9
-rw-r--r--functions/ical_parser.php2
-rw-r--r--rss/rss.php2
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";

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