ILIAS  release_9 Revision v9.13-25-g2c18ec4c24f
module.php
Go to the documentation of this file.
1 <?php
2 
19 declare(strict_types=1);
20 
21 $cookie_path = dirname(str_replace($_SERVER['PATH_INFO'], '', $_SERVER['PHP_SELF']));
22 
23 chdir(__DIR__);
24 while (!is_file('ilias.ini.php')) {
25  chdir('..');
26  $cookie_path = dirname($cookie_path);
27  if (getcwd() === '/') {
28  die('Please ensure ILIAS is installed!');
29  }
30 }
31 
32 $cookie_path .= preg_match('@/$@', $cookie_path) ? '' : '/';
33 define('IL_COOKIE_PATH', $cookie_path);
34 
35 require_once('libs/composer/vendor/autoload.php');
36 
39 
static initILIAS()
ilias initialisation
const CONTEXT_SAML
$_SERVER['HTTP_HOST']
Definition: raiseError.php:10
static run()
Definition: Module.php:32
static init(string $a_type)
Init context by type.
$cookie_path
Definition: module.php:21