aboutsummaryrefslogtreecommitdiffstats
path: root/preferences.php
diff options
context:
space:
mode:
authorChad Little <clittle@users.sourceforge.net>2003-11-24 03:15:57 +0000
committerChad Little <clittle@users.sourceforge.net>2003-11-24 03:15:57 +0000
commitd2d402b37a7c0eebdfeb759bde783e5ddf234f44 (patch)
tree3f582fc7a74245b2d2bef74c4774d2aeed11d786 /preferences.php
parentc25ffb161bca97dd17abe2eb6d13ad2b86328228 (diff)
downloadphpicalendar-d2d402b37a7c0eebdfeb759bde783e5ddf234f44.tar.gz
phpicalendar-d2d402b37a7c0eebdfeb759bde783e5ddf234f44.tar.bz2
phpicalendar-d2d402b37a7c0eebdfeb759bde783e5ddf234f44.zip
Updated for 1.0 RC-1
Diffstat (limited to 'preferences.php')
-rw-r--r--preferences.php10
1 files changed, 8 insertions, 2 deletions
diff --git a/preferences.php b/preferences.php
index 7c67ec7..e7d464f 100644
--- a/preferences.php
+++ b/preferences.php
@@ -2,7 +2,6 @@
define('BASE','./');
include(BASE.'functions/ical_parser.php');
-include(BASE.'functions/calendar_functions.php');
$display_date = $preferences_lang;
if ($cookie_uri == '') {
@@ -158,7 +157,14 @@ include (BASE.'includes/header.inc.php');
// Begin Calendar Selection
//
print "<select name=\"cookie_calendar\" class=\"query_style\">\n";
- $filelist = availableCalendarNames($username, $password, $ALL_CALENDARS_COMBINED);
+ $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);
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