From 3b3487be53650bb9b39d9ed8c7afd1c04b943b60 Mon Sep 17 00:00:00 2001 From: Wesley Miaw Date: Sat, 22 Nov 2003 21:16:10 +0000 Subject: Added username/password login to access locked calendars. Moved calendar availability logic (with support for login) to a calendar_functions.php file. RSS feeds support the login feature when determining which calendars to return. Styles updated for the login box. --- config.inc.php | 13 +++++++++++++ 1 file changed, 13 insertions(+) (limited to 'config.inc.php') diff --git a/config.inc.php b/config.inc.php index b739dc4..c7fe55c 100644 --- a/config.inc.php +++ b/config.inc.php @@ -47,6 +47,7 @@ $allow_preferences = 'yes'; // Allow visitors to change various preferences v $printview_default = 'no'; // Set print view as the default view. day, week, and month only supported views for $default_view (listed well above). $show_todos = 'yes'; // Show your todo list on the side of day and week view. $show_completed = 'yes'; // Show completed todos on your todo list. +$show_login = 'no'; // Set to yes to prompt for login to unlock calendars. // Administration settings $allow_admin = 'no'; // Set to yes to allow the admin page - remember to change the default password if using 'internal' as the $auth_method @@ -68,6 +69,18 @@ $list_webcals[] = ''; // or webcal:// and the filename should contain the . $list_webcals[] = ''; // $allow_webcals does *not* need to be "yes" for these to show up and work // add more lines as necessary +$locked_cals[] = ''; // Fill in-between the quotes the names of the calendars you wish to hide +$locked_cals[] = ''; // unless unlocked by a username/password login. This should be the +$locked_cals[] = ''; // exact calendar filename without the .ics suffix. +$locked_cals[] = ''; // +// add more lines as necessary + +$locked_map[] = ''; // Map username:password accounts to locked calendars that should be +$locked_map[] = ''; // unlocked if logged in. Calendar names should be the same as what is +$locked_map[] = ''; // listed in the $locked_cals, again without the .ics suffix. +$locked_map[] = ''; // Example: $locked_map['username:password'] = array('Locked1', 'Locked2'); +// add more lines as necessary + $color_cals[] = 'silver'; // Fill in between the quotes the colors you want to display $color_cals[] = 'red'; // multiple calendars in. $color_cals[] = 'orange'; // The first color will be used if no color is selected. -- cgit v1.2.3