Calendar

Features:

Download:

Version 2.2.2 (17 KB) 14 May 07 (Timezone adjustment fix)

Demos:

In action - Multiple calendars (password: demo)

Licence:

GPL

Installation:

  1. Extract all files to a directory on your server.
  2. chmod 'data.txt' to 666.
  3. Load http://YOURSITE/PATH/TO/CALENDAR/index.php on a web browser, and check the Document Root setting status.
  4. 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'] to false and change the order of $cal_cfg['days'] accordingly.

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" />