forked from fluxapps/LiveVoting
-
Notifications
You must be signed in to change notification settings - Fork 0
/
ilias.php
executable file
·37 lines (30 loc) · 1.09 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
32
33
34
35
36
37
<?php
/* Copyright (c) 1998-2009 ILIAS open source, Extended GPL, see docs/LICENSE */
/**
* @author Fabian Schmid <[email protected]>
*
* 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__ . '/../../../../../../../libs/composer/vendor/autoload.php';
require_once __DIR__ . "/vendor/autoload.php";
require_once "dir.php";
use LiveVoting\Conf\xlvoConf;
use LiveVoting\Context\InitialisationManager;
use LiveVoting\Context\xlvoContext;
use srag\DIC\LiveVoting\DICStatic;
$context = xlvoContext::getContext();
switch ($context) {
case xlvoContext::CONTEXT_PIN:
InitialisationManager::startMinimal();
break;
case xlvoContext::CONTEXT_ILIAS:
default:
InitialisationManager::startLight();
//TODO: catch error if user used the go to link but has no ilias authentication. Atm the error handling page is shown.
break;
}
xlvoConf::load();
DICStatic::dic()->ctrl()->setTargetScript(xlvoConf::getFullApiURL());
DICStatic::dic()->ctrl()->callBaseClass();
DICStatic::dic()->benchmark()->save();