Locking calendars

From PHPicalWiki

Jump to: navigation, search

PHP iCalendar provides two methods of securing calendars, config level and Apache htaccess level. Both are configured in the config.inc.php file.

[edit] Config Level

If the configuration value for $allow_login is 'yes', a login form will be displayed on the calendar web pages. A map of username:password accounts to locked calendars lists which calendars should be unlocked if logged in. Calendar names should be the same as what is listed in the $locked_cals, again without the .ics suffix.

Example: $locked_map['username:password'] = array('Locked1', 'Locked2');

Webcals currently cannot be locked.

[edit] Apache .htaccess Level

If you are using HTTP authentication to protect access to the PHP iCalendar directory, the HTTP authenticated username will be used to identify users instead of the config level usernames. The login form will not be displayed, even if $allow_login is 'yes'. A map of HTTP authenticated usernames to locked calendars lists which calendars should be unlocked if logged in.Calendar names should be the same as what is listed in the $locked_cals, again without the .ics suffix.

Example: $apache_map['username'] = array('Locked1', 'Locked2');