ILIAS
release_5-2 Revision v5.2.25-18-g3f80b828510
◀ ilDoc Overview
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"
);
7
ilInitialisation::initILIAS
();
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&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
if
(!($e instanceof \PDOException)) {
36
die($e->getMessage());
37
}
38
}
$_SESSION
$_SESSION["AccountId"]
Definition:
cfg.phpunit.template.php:10
ilInitialisation\initILIAS
static initILIAS()
ilias initialisation
Definition:
class.ilInitialisation.php:839
$nd
$nd
Definition:
error.php:11
ilSession\clear
static clear($a_var)
Unset a value.
Definition:
class.ilSession.php:423
$txt
$txt
Definition:
error.php:12
ilUtil\secureUrl
static secureUrl($url)
Prepare secure href attribute.
Definition:
class.ilUtil.php:3084
$lng
global $lng
Definition:
privfeed.php:17
php
defined
defined( 'APPLICATION_ENV')||define( 'APPLICATION_ENV'
Definition:
bootstrap.php:27
$tpl
$tpl
Definition:
error.php:13
Exception
error.php
Generated on Fri Jan 17 2025 19:00:49 for ILIAS by
1.8.13 (using
Doxyfile
)