|
|
|
@ -79,22 +79,22 @@ $result = $oauth->sign(array( |
|
|
|
|
?> |
|
|
|
|
<!DOCTYPE html> |
|
|
|
|
<html> |
|
|
|
|
<head> |
|
|
|
|
<title>title</title> |
|
|
|
|
</head> |
|
|
|
|
<body> |
|
|
|
|
<form action="<?php echo $tool->getLaunchUrl() ?>" name="ltiLaunchForm" method="post" encType="application/x-www-form-urlencoded">
|
|
|
|
|
<?php |
|
|
|
|
foreach($result["parameters"] as $key => $values) //Dump parameters |
|
|
|
|
{ |
|
|
|
|
echo("<input type='hidden' name='$key' value='$values' />"); |
|
|
|
|
} |
|
|
|
|
<head> |
|
|
|
|
<title>title</title> |
|
|
|
|
</head> |
|
|
|
|
<body> |
|
|
|
|
<form action="<?php echo $tool->getLaunchUrl() ?>" name="ltiLaunchForm" method="post"
|
|
|
|
|
encType="application/x-www-form-urlencoded"> |
|
|
|
|
<?php |
|
|
|
|
foreach ($result["parameters"] as $key => $values) { //Dump parameters |
|
|
|
|
echo '<input type="hidden" name="'.$key.'" value="'.$values.'" />'; |
|
|
|
|
} |
|
|
|
|
?> |
|
|
|
|
<input type="submit" value="Press to continue to external tool"/> |
|
|
|
|
</form> |
|
|
|
|
<input type="submit" value="Press to continue to external tool"/> |
|
|
|
|
</form> |
|
|
|
|
|
|
|
|
|
<script language="javascript"> |
|
|
|
|
document.ltiLaunchForm.submit(); |
|
|
|
|
</script> |
|
|
|
|
</body> |
|
|
|
|
<script language="javascript"> |
|
|
|
|
document.ltiLaunchForm.submit(); |
|
|
|
|
</script> |
|
|
|
|
</body> |
|
|
|
|
</html> |
|
|
|
|