3require_once(
'./libs/composer/vendor/autoload.php');
 
    5use ILIAS\GlobalScreen\Scope\MainMenu\Collector\Renderer\Hasher;
 
   17        $DIC->ctrl()->setTargetScript(
'ilias.php');
 
   19        $GS = 
$DIC->globalScreen();
 
   21        $GS->collector()->mainmenu()->collectStructure();
 
   22        $GS->collector()->mainmenu()->filterItemsByVisibilty(
true);
 
   23        $GS->collector()->mainmenu()->prepareItemsForUIRepresentation();
 
   25        $unhash         = $this->unhash(
$_GET[
'item']);
 
   26        $identification = $GS->identification()->fromSerializedIdentification($unhash);
 
   27        $item           = $GS->collector()->mainmenu()->getSingleItemFromFilter($identification);
 
   29        if ($item instanceof 
Lost) {
 
   30            $f         = 
$DIC->ui()->factory();
 
   31            $component = 
$f->button()->bulky(
 
   32                $f->symbol()->glyph()->login(),
 
   33                $DIC->language()->txt(
'login'),
 
   34                'login.php?client_id=' . rawurlencode(
CLIENT_ID) . 
'&cmd=force_login&lang=' . 
$DIC->user()->getCurrentLanguage());
 
   36            $component = $item->getTypeInformation()->getRenderer()->getComponentForItem($item, 
true);
 
   38        echo 
$DIC->ui()->renderer()->renderAsync($component);
 
   42if (php_sapi_name() !== 
'cli') {
 
   43    (
new ContentRenderer())->run();
 
An exception for terminatinating execution or to throw for unit testing.
static init($a_type)
Init context by type.
static initILIAS()
ilias initialisation
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...