ILIAS  trunk Revision v12.0_alpha-377-g3641b37b9db
index.php
Go to the documentation of this file.
1<?php
2
19declare(strict_types=1);
20
21if (!file_exists('../../ilias.ini.php')) {
22 die('The ILIAS setup is not completed. Please run the setup routine.');
23}
24
25require_once '../../vendor/composer/vendor/autoload.php';
26
27chdir('..');
28
29$cookie_path = dirname($_SERVER['PHP_SELF'], 2);
30
31/* if ilias is called directly within the docroot $cookie_path
32is set to '/' expecting on servers running under windows..
33here it is set to '\'.
34in both cases a further '/' won't be appended due to the following regex
35*/
36$cookie_path .= (!preg_match("/[\/|\\\\]$/", $cookie_path)) ? '/' : '';
37
38if (isset($_GET['client_id'])) {
39 if ($cookie_path === "\\") {
40 $cookie_path = '/';
41 }
42
43 setcookie('ilClientId', $_GET['client_id'], 0, $cookie_path, '');
44 $_COOKIE['ilClientId'] = $_GET['client_id'];
45}
46
47define('IL_CERT_SSO', true);
48define('IL_COOKIE_PATH', $cookie_path);
49
51
52require_once __DIR__ . '/../../artifacts/bootstrap_default.php';
53entry_point('ILIAS Legacy Initialisation Adapter');
54
55ilStartUpGUI::setForcedCommand('doApacheAuthentication');
56$ilCtrl->callBaseClass(ilStartUpGUI::class);
$cookie_path
Definition: index.php:29
const CONTEXT_APACHE_SSO
static init(string $a_type)
Init context by type.
static setForcedCommand(string $cmd)
$_GET['cmd']
Definition: lti.php:26
$_SERVER['HTTP_HOST']
Definition: raiseError.php:26
entry_point(string $name)
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...
Definition: result1.php:21
$_COOKIE[session_name()]
Definition: xapitoken.php:52