ILIAS  release_5-2 Revision v5.2.25-18-g3f80b828510
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{
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}
28catch(Exception $e)
29{
30 if(defined('DEVMODE') && DEVMODE)
31 {
32 throw $e;
33 }
34
35 if (!($e instanceof \PDOException)) {
36 die($e->getMessage());
37 }
38}
$_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:11
$txt
Definition: error.php:12
defined( 'APPLICATION_ENV')||define( 'APPLICATION_ENV'
Definition: bootstrap.php:27
global $lng
Definition: privfeed.php:17
$tpl
Definition: error.php:13