mirror of
https://gitlab.com/davical-project/davical.git
synced 2026-03-12 07:54:21 +00:00
33 lines
968 B
PHP
33 lines
968 B
PHP
<?php
|
|
/**
|
|
* DAViCal Timezone Service handler
|
|
*
|
|
* @package davical
|
|
* @subpackage caldav
|
|
* @author Andrew McMillan <andrew@morphoss.com>
|
|
* @copyright Morphoss Ltd
|
|
* @license http://gnu.org/copyleft/gpl.html GNU GPL v3 or later
|
|
*/
|
|
require("./always.php");
|
|
require("PublicSession.php");
|
|
$session = new PublicSession();
|
|
|
|
param_to_global('action','{(capabilities|list|get|expand|update)}');
|
|
param_to_global('format','{(text/calendar|application/calendar+xml)}');
|
|
param_to_global('changesince');
|
|
param_to_global('start');
|
|
param_to_global('end');
|
|
param_to_global('lang');
|
|
$returnall = isset($_GET['returnall']);
|
|
param_to_global('tzid');
|
|
|
|
$request = new CalDAVRequest();
|
|
|
|
$code_file = sprintf( 'tz/%s.php', $action );
|
|
if ( ! @include_once( $code_file ) ) {
|
|
$request->PreconditionFailed(400, "supported-action", 'The action "'+$_GET['action']+'" is not understood.' );
|
|
}
|
|
|
|
$request->DoResponse( 500, translate("The application failed to understand that request.") );
|
|
|