19declare(strict_types=1);
22require_once(
"../vendor/composer/vendor/autoload.php");
29if (strtoupper(
$_SERVER[
'REQUEST_METHOD']) ==
'POST') {
30 $orig =
new ArrayObject(
$_POST);
31 $data = $orig->getArrayCopy();
32} elseif (strtoupper(
$_SERVER[
'REQUEST_METHOD']) ==
'GET') {
33 $orig =
new ArrayObject(
$_GET);
34 $data = $orig->getArrayCopy();
38 if (isset(
$_GET[
'client_id'])) {
39 unset(
$_GET[
'client_id']);
42 header(
$_SERVER[
"SERVER_PROTOCOL"] .
" 405 Method Not Allowed",
true, 405);
53 $DIC->http()->saveResponse(
54 $DIC->http()->response()
58 $DIC->http()->sendResponse();
59 $DIC->http()->close();
60 }
catch (\
ILIAS\HTTP\Response\Sender\ResponseSendingException
$e) {
61 $DIC->http()->close();
83$DIC->http()->saveResponse(
84 $DIC->http()->response()
86 ->withAddedHeader(
'Location',
$url)
89 $DIC->http()->sendResponse();
90 $DIC->http()->close();
91}
catch (\
ILIAS\HTTP\Response\Sender\ResponseSendingException
$e) {
92 $DIC->http()->close();
static initILIAS()
ilias initialisation
static set(string $a_var, $a_val)
Set a value.
if(empty($ltiMessageHint)) $mh
Interface Observer \BackgroundTasks Contains several chained tasks and infos about them.