ILIAS  release_5-4 Revision v5.4.26-12-gabc799a52e6
raiseError.php
Go to the documentation of this file.
1 <?php
2 chdir("./../../../");
3 require_once("Services/Init/classes/class.ilIniFile.php");
4 $ini = new ilIniFile("ilias.ini.php");
5 $ini->read();
6 
7 $http = $ini->readVariable("server", "http_path");
8 $http = preg_replace("/^(https:\/\/)|(http:\/\/)+/", "", $http);
9 
10 $_SERVER['HTTP_HOST'] = $http;
11 $_SERVER['REQUEST_URI'] = "";
12 
13 require_once("Services/Init/classes/class.ilInitialisation.php");
15 
16 global $DIC;
17 
18 $ilErr = $DIC['ilErr'];
19 
20 $ilErr->raiseError("This is your error message", $ilErr->FATAL);
$ilErr
Definition: raiseError.php:18
static initILIAS()
ilias initialisation
$_SERVER['HTTP_HOST']
Definition: raiseError.php:10
$http
Definition: raiseError.php:7
global $DIC
Definition: raiseError.php:16
INIFile Parser.
$ini
Definition: raiseError.php:4