Calendar
Features:
- Data is stored in a text file.
- Time zone adjustment.
- Multiple events on the same day.
- Recurrent events (monthly and yearly).
- Multiple calendars.
- Customizable templates.
Download:
Version 2.2.2 (17 KB) 14 May 07 (Timezone adjustment fix)
Demos:
In action - Multiple calendars (password: demo)
Licence:
Installation:
- Extract all files to a directory on your server.
- chmod 'data.txt' to 666.
- Load
http://YOURSITE/PATH/TO/CALENDAR/index.phpon a web browser, and check the Document Root setting status. - Edit 'config.php' as following:
- If there's an error with the Document Root in step 3, ask your web host and
change
$cal_cfg['document_root']accordingly. - Change
$cal_cfg['password']to your preferred password. - In case you want to display Sunday at the beginning of a week,
change
$cal_cfg['sunday_endweek']tofalseand change the order of$cal_cfg['days']accordingly.
- If there's an error with the Document Root in step 3, ask your web host and
change
Usage:
- In the page where you want to include the calendar:
<?php
include('PATH/TO/CALENDAR/calendar.php');
$calendar = new WingedCalendar();
// to display a single calendar
$calendar->show_calendar();
// OR to display multiple calendars
$calendar->show_calendar(PREVIOUS, NEXT);
// where PREVIOUS and NEXT are the number of months
// before and after the current month respectively.
?>
- Link to the calendar stylesheet in the <head> section:
<link rel="stylesheet" type="text/css" href="PATH/TO/CALENDAR/style.css" />