ILIAS
release_5-4 Revision v5.4.26-12-gabc799a52e6
◀ 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
require_once(
"Services/Init/classes/class.ilInitialisation.php"
);
6
ilInitialisation::initILIAS
();
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&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
$_SESSION["AccountId"]
Definition:
cfg.phpunit.template.php:10
PDOException
ilInitialisation\initILIAS
static initILIAS()
ilias initialisation
Definition:
class.ilInitialisation.php:996
$nd
$nd
Definition:
error.php:10
$tree
$tree
Definition:
calendarserver.php:37
$lng
$lng
Definition:
save_question_post_data.php:23
ilSession\clear
static clear($a_var)
Unset a value.
Definition:
class.ilSession.php:452
$txt
$txt
Definition:
error.php:11
ilUtil\secureUrl
static secureUrl($url)
Prepare secure href attribute.
Definition:
class.ilUtil.php:2843
php
$tpl
$tpl
Definition:
error.php:11
Exception
error.php
Generated on Thu Jan 16 2025 19:01:37 for ILIAS by
1.8.13 (using
Doxyfile
)