73 lines
1.8 KiB
PHP
73 lines
1.8 KiB
PHP
<!-- - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
|
|
Copyright 2017 by George Ruinelli <george@ruinelli.ch>
|
|
Licence: GPL
|
|
Last Change: 13.10.2017
|
|
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -->
|
|
|
|
<?
|
|
// error_reporting(~E_ALL); // disable error_reporting
|
|
error_reporting(E_ALL);
|
|
// error_reporting(E_STRICT);
|
|
|
|
require_once 'config.php';
|
|
|
|
require_once './ICal/ICal.php';
|
|
require_once './ICal/Event.php';
|
|
|
|
|
|
setlocale (LC_ALL, 'de_CH');
|
|
|
|
|
|
$weekdays = array("Mo", "Di", "Mi", "Do", "Fr", "Sa", " So");
|
|
$monthNames= array("Januar", "Februar", "März", "April", "Mai", "Juni", "Juli", "August", "September", "Oktober", "November", "Dezember");
|
|
$monthNamesShort= array("Jan", "Feb", "Mär", "Apr", "Mai", "Jun", "Jul", "Aug", "Sep", "Okt", "Nov", "Dez");
|
|
|
|
|
|
|
|
use ICal\ICal;
|
|
|
|
|
|
$ical = new ICal(URL_TO_CALENDAR, array(
|
|
'defaultSpan' => 2, // Default value
|
|
'defaultWeekStart' => 'MO', // Default value
|
|
'skipRecurrence' => false, // Default value
|
|
'useTimeZoneWithRRules' => false, // Default value
|
|
));
|
|
|
|
|
|
|
|
//parse date
|
|
// $monthDE = array(
|
|
// 'Januar' => 01,
|
|
// 'Februar' => 02,
|
|
// 'März' => 03,
|
|
// 'April' => 04,
|
|
// 'Mai' => 05,
|
|
// 'Juni' => 06,
|
|
// 'Juli' => 07,
|
|
// 'August' => 08,
|
|
// 'September' => 09,
|
|
// 'Oktober' => 10,
|
|
// 'November' => 11,
|
|
// 'Dezember' => 12
|
|
// );
|
|
|
|
|
|
//January,February,March,April,May,June,July,August,September,October,November,December
|
|
// $monthEN = array(
|
|
// 'January' => 01,
|
|
// 'February' => 02,
|
|
// 'March' => 03,
|
|
// 'April' => 04,
|
|
// 'May' => 05,
|
|
// 'June' => 06,
|
|
// 'July' => 07,
|
|
// 'August' => 08,
|
|
// 'September' => 09,
|
|
// 'October' => 10,
|
|
// 'November' => 11,
|
|
// 'December' => 12
|
|
// );
|
|
|
|
?>
|