24 include_once
'./Services/Calendar/classes/class.ilCalendarAuthenticationToken.php';
60 if(
$_GET[
'client_id'])
78 session_name(
'ILCALSESSID');
80 $logger =
$GLOBALS[
'DIC']->logger()->cal();
85 $logger->warning(
'Calendar token is invalid. Authentication failed.');
91 $GLOBALS[
'DIC'][
'ilAuthSession']->logout();
96 include_once
'./Services/Calendar/classes/Export/class.ilCalendarExport.php';
97 include_once
'./Services/Calendar/classes/class.ilCalendarCategories.php';
118 $GLOBALS[
'DIC'][
'ilAuthSession']->logout();
125 $GLOBALS[
'DIC']->logger()->cal()->info(
'Authentication token: ' .
$_GET[
'token']);
135 include_once
"Services/Context/classes/class.ilContext.php";
138 include_once
'./Services/Authentication/classes/class.ilAuthFactory.php';
141 require_once(
"Services/Init/classes/class.ilInitialisation.php");
144 $GLOBALS[
'lng']->loadLanguageModule(
'dateplaner');
155 $GLOBALS[
'DIC']->logger()->cal()->info(
'Initialisation of authentication token failed');
160 $GLOBALS[
'DIC']->logger()->cal()->info(
'No user id found for calendar synchronisation');
163 include_once
'./Services/User/classes/class.ilObjUser.php';
166 $GLOBALS[
'DIC']->logger()->cal()->notice(
'No valid user id found for calendar synchronisation');
170 include_once
'./Services/Init/classes/class.ilInitialisation.php';
172 ilInitialisation::initUserAccount();
176 $GLOBALS[
'DIC']->logger()->cal()->debug(
'no user object defined');
180 $GLOBALS[
'DIC']->logger()->cal()->debug(
'Current user is: ' .
$GLOBALS[
'DIC']->
user()->getId());
static deliverData($a_data, $a_filename, $mime="application/octet-stream", $charset="")
deliver data for download via browser.
if((!isset($_SERVER['DOCUMENT_ROOT'])) OR(empty($_SERVER['DOCUMENT_ROOT']))) $_SERVER['DOCUMENT_ROOT']
static _exists($a_id, $a_reference=false, $a_type=null)
checks if an object exists in object_data
parseRequest()
Fetch client id, the chosen calendar...
$GLOBALS['loaded']
Global hash that tracks already loaded includes.
const MODE_REMOTE_SELECTED
static initILIAS()
ilias initialisation
Export calendar(s) to ical format
static setContext($a_context)
set context
__construct()
Constructor.
static _getInstance($a_usr_id=0)
get singleton instance
static init($a_type)
Init context by type.
static lookupUser($a_token)
Lookup user by hash.
handleRequest()
Handle Request.
const CONTEXT_CALENDAR_TOKEN
Handles calendar authentication tokens for external calendar subscriptions.
Handles requests from external calendar applications