ILIAS  release_5-1 Revision 5.0.0-5477-g43f3e3fab5f
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 {
6  require_once("Services/Init/classes/class.ilInitialisation.php");
8  $tpl->addBlockFile("CONTENT", "content", "tpl.error.html");
9  $lng->loadLanguageModule("error");
10  // #13515 - link back to "system" [see ilWebAccessChecker::sendError()]
11  $nd = $tree->getNodeData(ROOT_FOLDER_ID);
12  $txt = $lng->txt('error_back_to_repository');
13  $tpl->SetCurrentBlock("ErrorLink");
14  $tpl->SetVariable("TXT_LINK", $txt);
15  $tpl->SetVariable("LINK", ilUtil::secureUrl(ILIAS_HTTP_PATH . '/ilias.php?baseClass=ilRepositoryGUI&amp;client_id=' . CLIENT_ID));
16  $tpl->ParseCurrentBlock();
17 
18  $tpl->setCurrentBlock("content");
19  $tpl->setVariable("ERROR_MESSAGE", ($_SESSION["failure"]));
20  $tpl->setVariable("MESSAGE_HEADING", $lng->txt('error_sry_error'));
21 
22  //$tpl->parseCurrentBlock();
23 
24  ilSession::clear("referer");
25  ilSession::clear("message");
26  $tpl->show();
27 }
28 catch(Exception $e)
29 {
30  if(defined('DEVMODE') && DEVMODE)
31  {
32  throw $e;
33  }
34 
35  die($e->getMessage());
36 }
$_SESSION["AccountId"]
static initILIAS()
ilias initialisation
$nd
Definition: error.php:11
static clear($a_var)
Unset a value.
$txt
Definition: error.php:12
secureUrl($url)
Prepare secure href attribute.
global $lng
Definition: privfeed.php:40
$tpl
Definition: error.php:13