24 include_once
'./Services/Calendar/classes/class.ilCalendarAuthenticationToken.php';
60 if (
$_GET[
'client_id']) {
74 session_name(
'ILCALSESSID');
76 $logger =
$GLOBALS[
'DIC']->logger()->cal();
80 $logger->warning(
'Calendar token is invalid. Authentication failed.');
85 $GLOBALS[
'DIC'][
'ilAuthSession']->logout();
90 include_once
'./Services/Calendar/classes/Export/class.ilCalendarExport.php';
91 include_once
'./Services/Calendar/classes/class.ilCalendarCategories.php';
93 #$export = new ilCalendarExport(array($this->getTokenHandler()->getCalendar())); 108 $GLOBALS[
'DIC'][
'ilAuthSession']->logout();
115 $GLOBALS[
'DIC']->logger()->cal()->info(
'Authentication token: ' .
$_GET[
'token']);
125 include_once
"Services/Context/classes/class.ilContext.php";
128 include_once
'./Services/Authentication/classes/class.ilAuthFactory.php';
131 require_once(
"Services/Init/classes/class.ilInitialisation.php");
134 $GLOBALS[
'lng']->loadLanguageModule(
'dateplaner');
144 $GLOBALS[
'DIC']->logger()->cal()->info(
'Initialisation of authentication token failed');
148 $GLOBALS[
'DIC']->logger()->cal()->info(
'No user id found for calendar synchronisation');
151 include_once
'./Services/User/classes/class.ilObjUser.php';
153 $GLOBALS[
'DIC']->logger()->cal()->notice(
'No valid user id found for calendar synchronisation');
157 include_once
'./Services/Init/classes/class.ilInitialisation.php';
159 ilInitialisation::initUserAccount();
162 $GLOBALS[
'DIC']->logger()->cal()->debug(
'no user object defined');
164 $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