ILIAS  release_5-1 Revision 5.0.0-5477-g43f3e3fab5f
error.php
Go to the documentation of this file.
1<?php
2try
3{
4 chdir("..");
5 define('IL_INITIAL_WD', getcwd());
6 if (is_dir("./pear"))
7 {
8 ini_set("include_path", "./pear:".ini_get("include_path"));
9 }
10
11 require_once "./setup/include/inc.setup_header.php";
12
13 $tpl = new ilTemplate("tpl.error_page.html", true, true, "setup");
14
15 if ($_SESSION["ClientId"] != "")
16 {
17 $tpl->setCurrentBlock("client_setup");
18 $tpl->setVariable("CLIENT_ID", $_SESSION["ClientId"]);
19 $tpl->parseCurrentBlock();
20 }
21
22 $tpl->setVariable("PAGETITLE","Setup");
23 //$this->tpl->setVariable("LOCATION_STYLESHEET","./templates/blueshadow.css");
24 $tpl->setVariable("LOCATION_STYLESHEET","../templates/default/delos.css");
25 $tpl->setVariable("LOCATION_CONTENT_STYLESHEET","./css/setup.css");
26 $tpl->setVariable("TXT_SETUP", "ILIAS Setup");
27
28 $tpl->setVariable("CONTENT", '<div class="alert alert-danger" role="alert">'.$_SESSION["failure"].'</div>');
29 $tpl->show();
30
31}
32catch(Exception $e)
33{
34 if(defined('DEVMODE') && DEVMODE)
35 {
36 throw $e;
37 }
38
39 die($e->getMessage());
40}
$_SESSION["AccountId"]
special template class to simplify handling of ITX/PEAR
$tpl
Definition: error.php:13