aboutsummaryrefslogtreecommitdiff
path: root/app/views/course/lti/iframe.php
blob: 1cd0d2c53c76e9527d599beec5b9ce46ea13650a (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
<?php
/**
 * @var string $launch_url
 * @var array $launch_data
 * @var string $signature
 */
?>
<!DOCTYPE html>
<html>
<head>
    <meta charset="UTF-8">
</head>
<body onload="document.ltiLaunchForm.submit();">
    <form name="ltiLaunchForm" method="post" action="<?= htmlReady($launch_url) ?>">
        <? foreach ($launch_data as $key => $value): ?>
            <input type="hidden" name="<?= htmlReady($key) ?>" value="<?= htmlReady($value, false) ?>">
        <? endforeach ?>
        <input type="hidden" name="oauth_signature" value="<?= $signature ?>">
        <noscript>
            <button><?= _('Anwendung starten') ?></button>
        </noscript>
    </form>
</body>
</html>