ILIAS  Release_5_0_x_branch Revision 61816
 All Data Structures Namespaces Files Functions Variables Groups Pages
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 require_once("Services/Init/classes/class.ilInitialisation.php");
6 
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", 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 ?>