ILIAS  release_8 Revision v8.25-1-g13de6a5eca6
index.php
Go to the documentation of this file.
1<?php
2
3chdir('..');
4
5
6$cookie_path = dirname(dirname($_SERVER['PHP_SELF']));
7
8/* if ilias is called directly within the docroot $cookie_path
9is set to '/' expecting on servers running under windows..
10here it is set to '\'.
11in both cases a further '/' won't be appended due to the following regex
12*/
13$cookie_path .= (!preg_match("/[\/|\\\\]$/", $cookie_path)) ? "/" : "";
14
15if (isset($_GET["client_id"])) {
16 if ($cookie_path == "\\") {
17 $cookie_path = '/';
18 }
19
20 setcookie("ilClientId", $_GET["client_id"], 0, $cookie_path, '');
21 $_COOKIE["ilClientId"] = $_GET["client_id"];
22}
23
24define('IL_COOKIE_PATH', $cookie_path);
25
26include_once './Services/Context/classes/class.ilContext.php';
28
29require_once("Services/Init/classes/class.ilInitialisation.php");
31
32$ilCtrl->setCmd('doApacheAuthentication');
33$ilCtrl->callBaseClass('ilStartUpGUI');
const CONTEXT_APACHE_SSO
static init(string $a_type)
Init context by type.
static initILIAS()
ilias initialisation
$_SERVER['HTTP_HOST']
Definition: raiseError.php:10
$_GET['client_id']
Definition: saml1-acs.php:21
$cookie_path
Definition: index.php:6
$_COOKIE[session_name()]
Definition: xapitoken.php:54