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