ILIAS
release_9 Revision v9.13-25-g2c18ec4c24f
◀ ilDoc Overview
error.php
Go to the documentation of this file.
1
<?php
2
3
/* Copyright (c) 1998-2009 ILIAS open source, Extended GPL, see docs/LICENSE */
4
5
try
{
6
require_once(
"Services/Init/classes/class.ilInitialisation.php"
);
7
ilInitialisation::initILIAS
();
8
$DIC
->globalScreen()->tool()->context()->claim()->external();
9
$local_tpl
=
new
ilGlobalTemplate
(
"tpl.main.html"
,
true
,
true
);
10
$local_tpl
->addBlockFile(
"CONTENT"
,
"content"
,
"tpl.error.html"
);
11
$lng
->loadLanguageModule(
"error"
);
12
// #13515 - link back to "system" [see ilWebAccessChecker::sendError()]
13
$nd
= $tree->getNodeData(
ROOT_FOLDER_ID
);
14
$txt
=
$lng
->txt(
'error_back_to_repository'
);
15
$local_tpl
->SetCurrentBlock(
"ErrorLink"
);
16
$local_tpl
->SetVariable(
"TXT_LINK"
,
$txt
);
17
$local_tpl
->SetVariable(
"LINK"
,
ilUtil::secureUrl
(ILIAS_HTTP_PATH .
'/ilias.php?baseClass=ilRepositoryGUI&client_id='
.
CLIENT_ID
));
18
$local_tpl
->ParseCurrentBlock();
19
20
ilSession::clear
(
"referer"
);
21
ilSession::clear
(
"message"
);
22
$tpl->setContent(
$local_tpl
->get());
23
$tpl->printToStdout();
24
}
catch
(
Exception
$e
) {
25
if
(defined(
'DEVMODE'
) && DEVMODE) {
26
throw
$e
;
27
}
28
29
if
(!($e instanceof \PDOException)) {
30
die($e->getMessage());
31
}
32
}
$local_tpl
$local_tpl
Definition:
error.php:9
ilGlobalTemplate
special template class to simplify handling of ITX/PEAR
Definition:
class.ilGlobalTemplate.php:29
ROOT_FOLDER_ID
const ROOT_FOLDER_ID
Definition:
constants.php:32
Vendor\Package\$e
$e
Definition:
example_cleaned.php:49
ilUtil\secureUrl
static secureUrl(string $url)
Definition:
class.ilUtil.php:829
$DIC
global $DIC
Definition:
feed.php:28
ilInitialisation\initILIAS
static initILIAS()
ilias initialisation
Definition:
class.ilInitialisation.php:1209
$nd
$nd
Definition:
error.php:13
$lng
$lng
Definition:
save_question_post_data.php:24
CLIENT_ID
const CLIENT_ID
Definition:
constants.php:41
$txt
$txt
Definition:
error.php:14
ilSession\clear
static clear(string $a_var)
Definition:
class.ilSession.php:478
Exception
error.php
Generated on Wed Sep 10 2025 14:10:28 for ILIAS by
1.8.13 (using
Doxyfile
)