forked from fluxapps/LiveVoting
-
Notifications
You must be signed in to change notification settings - Fork 0
/
ilias.php
31 lines (28 loc) · 1.25 KB
/
ilias.php
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
<?php
/* Copyright (c) 1998-2009 ILIAS open source, Extended GPL, see docs/LICENSE */
/**
* @author Fabian Schmid <fs@studer-raimann.ch>
*
*
* Acts as ILIAS entry-point and calls ILIAS-call-structure
* Depending on Context, an ILIAS environment or just the pin context is loaded
*/
require_once('dir.php');
require_once('./Customizing/global/plugins/Services/Repository/RepositoryObject/LiveVoting/classes/Context/class.xlvoInitialisation.php');
require_once('./Customizing/global/plugins/Services/Repository/RepositoryObject/LiveVoting/classes/Js/class.xlvoJs.php');
require_once('./Customizing/global/plugins/Services/Repository/RepositoryObject/LiveVoting/classes/Conf/class.xlvoConf.php');
require_once('./Customizing/global/plugins/Services/Repository/RepositoryObject/LiveVoting/classes/User/class.xlvoUser.php');
xlvoInitialisation::init();
global $ilUser;
if ($ilUser instanceof ilObjUser && $ilUser->getId()) {
xlvoUser::getInstance()->setIdentifier($ilUser->getId())->setType(xlvoUser::TYPE_ILIAS);
} else {
xlvoUser::getInstance()->setIdentifier(session_id())->setType(xlvoUser::TYPE_PIN);
}
global $ilCtrl, $ilBench;
/**
* @var ilCtrl $ilCtrl
*/
$ilCtrl->setTargetScript(xlvoConf::getFullApiURL());
$ilCtrl->callBaseClass();
$ilBench->save();