Beispiel #1
0
require_once "../../config.php";
$local_path = route_get_local_path(__DIR__);
if ($local_path == "canvas-config.xml") {
    require_once "canvas-config-xml.php";
    return;
}
require_once $CFG->dirroot . "/pdo.php";
require_once $CFG->dirroot . "/lib/lms_lib.php";
use Tsugi\Core\Settings;
use Tsugi\Core\LTIX;
use Tsugi\Util\LTI;
// No parameter means we require CONTEXT, USER, and LINK
$LTI = LTIX::requireData(LTIX::USER);
// Model
$p = $CFG->dbprefix;
$result_url = LTIX::ltiLinkUrl();
// Scan the tools folders for registration settings
$tools = array();
if ($USER->instructor && $result_url) {
    $tools = findFiles("register.php", "../../");
}
$OUTPUT->header();
?>
<style>
    .card {
        border: 1px solid black;
        margin: 5px;
        padding: 5px;
    }
#loader {
      position: fixed;