echo "please run the setup program in the same browser as you\n"; echo "will run the tests as the tests use the session for configuration\n"; echo "and results.</p>\n"; echo '<p><a href="lmssetup.php" target="_new">Test Setup</a></p>' . "\n"; echo "<p>You can track the progress of your testing using</p>\n"; echo '<p><a href="lmsstatus.php" target="_new">Test Status</a></p>' . "\n"; echo "<p>The status screen can be kept running in a separate tab.\\m"; echo "</p>\n"; exit; } $current_date = gmDate("Y-m-d\\TH:i:s\\Z"); $good_message_type = $_REQUEST["lti_message_type"] == "basic-lti-launch-request"; $good_lti_version = $_REQUEST["lti_version"] == "LTI-1p0"; $resource_link_id = $_REQUEST["resource_link_id"]; require_once 'cert_util.php'; load_cert_data(); $thispass = array(); $thisfail = array(); /* echo("<p>Request count=");echo(count($requests));echo("</p>\n"); echo("<p>Passed count=");echo(count($passed));echo("</p>\n"); echo("<p>Failed count=");echo(count($failed));echo("</p>\n"); print_r($passed); */ $protocol_minimum = false; if ($good_message_type and $good_lti_version and isset($resource_link_id)) { $protocol_minimum = true; mark_pass("1.1", "Required parameters present"); $reqdebug = print_r($_REQUEST, true); $requests[$current_date] = $reqdebug;
function doerror($msg) { global $errors; load_cert_data(); echo "<p>\n"; echo $msg; echo "</p>\n"; $reqdebug = print_r($_REQUEST, true); $errors[get_current_date()] = $reqdebug; update_cert_data(); }