ILIAS  release_10 Revision v10.1-43-ga1241a92c2f
ltiresult.php
Go to the documentation of this file.
1 <?php
2 
19 declare(strict_types=1);
20 
21 require_once("../vendor/composer/vendor/autoload.php");
22 
23 if (!isset($_GET['client_id']) || !strlen($_GET['client_id'])) {
25  $log->error("HTTP/1.1 401 Authorization Required");
26  header('HTTP/1.1 401 Authorization Required');
27  exit;
28 }
29 
32 
33 $dic = $GLOBALS['DIC'];
35 $log->info("LTI result init successful");
37 $service->handleRequest();
static getLogger(string $a_component_id)
Get component logger.
const CONTEXT_SCORM
static initILIAS()
ilias initialisation
$GLOBALS["DIC"]
Definition: wac.php:30
$log
Definition: ltiresult.php:34
$_GET['cmd']
Definition: lti.php:26
$service
Definition: ltiresult.php:36
static init(string $a_type)
Init context by type.
$dic
Definition: ltiresult.php:33
header()
expected output: > ILIAS shows the rendered Component.
Definition: header.php:13