ILIAS  release_5-3 Revision v5.3.23-19-g915713cf615
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
4try {
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"]
An exception for terminatinating execution or to throw for unit testing.
static initILIAS()
ilias initialisation
static clear($a_var)
Unset a value.
static secureUrl($url)
Prepare secure href attribute.
$nd
Definition: error.php:10
$txt
Definition: error.php:11
defined( 'APPLICATION_ENV')||define( 'APPLICATION_ENV'
Definition: bootstrap.php:27
global $lng
Definition: privfeed.php:17
$tpl
Definition: error.php:11