forked from tsugiproject/tsugi
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.php
59 lines (53 loc) · 1.87 KB
/
index.php
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
<?php
// In the top frame, we use cookies for session.
define('COOKIE_SESSION', true);
include_once("config.php");
require_once("sanity.php");
$PDOX = false;
try {
define('PDO_WILL_CATCH', true);
require_once("pdo.php");
} catch(PDOException $ex){
$PDOX = false; // sanity-db-will re-check this below
}
header('Content-Type: text/html; charset=utf-8');
session_start();
if ( $PDOX !== false ) loginSecureCookie();
$OUTPUT->header();
$OUTPUT->bodyStart();
require_once("sanity-db.php");
$OUTPUT->topNav();
?>
<div>
<?php
$OUTPUT->flashMessages();
if ( $CFG->DEVELOPER ) {
echo '<div class="alert alert-danger" style="margin-top: 10px;">'.
_m('Note: Currently this server is running in developer mode.').
"\n</div>\n";
}
?>
<p>
Hello and welcome to <b><?php echo($CFG->servicename); ?></b>.
Generally this system is used to provide cloud-hosted learning tools that are plugged
into a Learning Management systems like Sakai, Coursera, or Blackboard using
IMS Learning Tools Interoperability™ (LTI)™.
You can sign in to this system
and create a profile and as you use tools from various courses you can
associate those tools and courses with your profile.
</p>
<p>
Other than logging in and setting up your profile, there is nothing much you can
do at this screen. Things happen when your instructor starts using the tools
hosted on this server in their LMS systems. If you are an instructor and would
like to experiment with these tools (it is early days) send a note to Dr. Chuck.
You can look at the source code for this software at
<a href="https://github.com/csev/tsugi" target="_blank">https://github.com/csev/tsugi</a>.
</p>
<p>
Learning Tools Interoperability™ (LTI™) is a
trademark of IMS Global Learning Consortium, Inc.
in the United States and/or other countries. (www.imsglobal.org)
</p>
</div> <!-- /container -->
<?php $OUTPUT->footer();