ILIAS  release_8 Revision v8.24
raiseError.php
Go to the documentation of this file.
1<?php
2
3chdir("./../../../");
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
14
15global $DIC;
16
17$ilErr = $DIC['ilErr'];
18
19$ilErr->raiseError("This is your error message", $ilErr->FATAL);
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...
static initILIAS()
ilias initialisation
global $DIC
Definition: raiseError.php:15
$_SERVER['HTTP_HOST']
Definition: raiseError.php:10
$http
Definition: raiseError.php:7
$ini
Definition: raiseError.php:4
$ilErr
Definition: raiseError.php:17