diff options
author | jwangen <jwangen> | 2002-09-30 12:09:17 +0000 |
---|---|---|
committer | jwangen <jwangen> | 2002-09-30 12:09:17 +0000 |
commit | ea76f46e8677d5d0d3fa5400fb1211d2df6071a6 (patch) | |
tree | 1b0483292aae547cf5c2a32d84c77de90952dfa0 /init.inc.php | |
parent | 8973b748535409a51987c391c5c892c89d80269f (diff) | |
download | phpicalendar-ea76f46e8677d5d0d3fa5400fb1211d2df6071a6.tar.gz phpicalendar-ea76f46e8677d5d0d3fa5400fb1211d2df6071a6.tar.bz2 phpicalendar-ea76f46e8677d5d0d3fa5400fb1211d2df6071a6.zip |
added yearly recurrence support
merged allday events and regular recurring events, see dev-email list for
details
alldays.ics is a test file that just has allday events
Diffstat (limited to 'init.inc.php')
-rw-r--r-- | init.inc.php | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/init.inc.php b/init.inc.php index a4bfc35..31f8c1e 100644 --- a/init.inc.php +++ b/init.inc.php @@ -39,6 +39,15 @@ $cal = urlencode($cal_filename); if (!isset($filename)) { $filename = $calendar_path."/".$cal_filename.".ics"; + if (!file_exists($filename)) { + $dir_handle = @opendir($calendar_path) or die("Unable to open $calendar_path"); + while ($file = readdir($dir_handle)) { + if (strstr ($file, ".ics")) { + $filename = $calendar_path."/".$file; + break; + } + } + } } ?>
\ No newline at end of file |