aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorWesley Miaw <josuah@users.sourceforge.net>2003-11-24 03:35:51 +0000
committerWesley Miaw <josuah@users.sourceforge.net>2003-11-24 03:35:51 +0000
commit10db09b2d4a060f69872cf088f0bb65b16856835 (patch)
tree3d3ffcc1ca109208ee6e13a5c614234799cd296f
parentd2d402b37a7c0eebdfeb759bde783e5ddf234f44 (diff)
downloadphpicalendar-10db09b2d4a060f69872cf088f0bb65b16856835.tar.gz
phpicalendar-10db09b2d4a060f69872cf088f0bb65b16856835.tar.bz2
phpicalendar-10db09b2d4a060f69872cf088f0bb65b16856835.zip
1.36 was an old version, committed by mistake. 1.35 is good.
-rw-r--r--preferences.php10
1 files changed, 2 insertions, 8 deletions
diff --git a/preferences.php b/preferences.php
index e7d464f..7c67ec7 100644
--- a/preferences.php
+++ b/preferences.php
@@ -2,6 +2,7 @@
define('BASE','./');
include(BASE.'functions/ical_parser.php');
+include(BASE.'functions/calendar_functions.php');
$display_date = $preferences_lang;
if ($cookie_uri == '') {
@@ -157,14 +158,7 @@ include (BASE.'includes/header.inc.php');
// Begin Calendar Selection
//
print "<select name=\"cookie_calendar\" class=\"query_style\">\n";
- $dir_handle = @opendir($calendar_path) or die(error(sprintf($error_path_lang, $calendar_path), $cal_filename));
- $filelist = array();
- while ($file = readdir($dir_handle)) {
- if (preg_match("/^[^.].+\.ics$/", $file)) {
- array_push($filelist, $file);
- }
- }
- natcasesort($filelist);
+ $filelist = availableCalendarNames($username, $password, $ALL_CALENDARS_COMBINED);
foreach ($filelist as $file) {
$cal_filename_tmp = substr($file,0,-4);
$cal_tmp = urlencode($cal_filename_tmp);

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