ILIAS  release_5-4 Revision v5.4.26-12-gabc799a52e6
error.php
Go to the documentation of this file.
1 <?php
2 /* Copyright (c) 1998-2009 ILIAS open source, Extended GPL, see docs/LICENSE */
3 
4 try {
5  require_once("Services/Init/classes/class.ilInitialisation.php");
7  $tpl->addBlockFile("CONTENT", "content", "tpl.error.html");
8  $lng->loadLanguageModule("error");
9  // #13515 - link back to "system" [see ilWebAccessChecker::sendError()]
10  $nd = $tree->getNodeData(ROOT_FOLDER_ID);
11  $txt = $lng->txt('error_back_to_repository');
12  $tpl->SetCurrentBlock("ErrorLink");
13  $tpl->SetVariable("TXT_LINK", $txt);
14  $tpl->SetVariable("LINK", ilUtil::secureUrl(ILIAS_HTTP_PATH . '/ilias.php?baseClass=ilRepositoryGUI&amp;client_id=' . CLIENT_ID));
15  $tpl->ParseCurrentBlock();
16 
17  $tpl->setCurrentBlock("content");
18  $tpl->setVariable("ERROR_MESSAGE", ($_SESSION["failure"]));
19  $tpl->setVariable("MESSAGE_HEADING", $lng->txt('error_sry_error'));
20 
21  //$tpl->parseCurrentBlock();
22 
23  ilSession::clear("referer");
24  ilSession::clear("message");
25  $tpl->show();
26 } catch (Exception $e) {
27  if (defined('DEVMODE') && DEVMODE) {
28  throw $e;
29  }
30 
31  if (!($e instanceof \PDOException)) {
32  die($e->getMessage());
33  }
34 }
$_SESSION["AccountId"]
static initILIAS()
ilias initialisation
$nd
Definition: error.php:10
$lng
static clear($a_var)
Unset a value.
$txt
Definition: error.php:11
static secureUrl($url)
Prepare secure href attribute.
$tpl
Definition: error.php:11