X Tutup
IMS LTI 1.1 PHP Provider

\n"); echo("

This is a very simple reference implementaton of the Tool side (i.e. provider) for IMS LTI 1.1.

\n"); $sourcedid = $_REQUEST['lis_result_sourcedid']; if (get_magic_quotes_gpc()) $sourcedid = stripslashes($sourcedid); $sourcedid = urlencode($sourcedid); if ( $context->valid ) { if ( $_POST['launch_presentation_return_url']) { $msg = 'A%20message%20from%20the%20tool%20provider.'; $error_msg = 'An%20error%20message%20from%20the%20tool%20provider.'; $sep = (strpos($_POST['launch_presentation_return_url'], '?') === FALSE) ? '?' : '&'; print "

Return to tool consumer ("; print "with a message or "; print "with an error"; print ")

\n"; } if ( $_POST['lis_result_sourcedid'] && $_POST['lis_outcome_service_url'] ) { print "

Note: This launch can submit a grade back to the LMS using LTI 1.1 Outcome Service. Press\n"; print ''; print 'here to send a grade back via LIS/LTI Outcome Service.

'."\n"; } print "
\n";
    print "Context Information:\n\n";
    print $context->dump();
    print "
\n"; } else { print "

Could not establish context: ".$context->message."

\n"; } print "

Base String:
\n"; print $context->basestring; print "

\n"; print "
\n";
print "Raw POST Parameters:\n\n";
ksort($_POST);
foreach($_POST as $key => $value ) {
    if (get_magic_quotes_gpc()) $value = stripslashes($value);
    print "$key=$value (".mb_detect_encoding($value).")\n";
}

print "\nRaw GET Parameters:\n\n";
ksort($_GET);
foreach($_GET as $key => $value ) {
    if (get_magic_quotes_gpc()) $value = stripslashes($value);
    print "$key=$value (".mb_detect_encoding($value).")\n";
}
print "
"; ?>
X Tutup