course)) { error('Course is misconfigured'); } if (! $scorm = get_record('scorm', 'id', $cm->instance)) { error('Course module is incorrect'); } } else { if (! $scorm = get_record('scorm', 'id', $a)) { error('Course module is incorrect'); } if (! $course = get_record('course', 'id', $scorm->course)) { error('Course is misconfigured'); } if (! $cm = get_coursemodule_from_instance('scorm', $scorm->id, $course->id)) { error('Course Module ID was incorrect'); } } require_login($course->id, false, $cm); if (isset($_GET['call']) && confirm_sesskey()) { if (strstr($_GET['call'],'LMS') !== false) { // SCORM 1.2 Call //require_once('datamodels/scorm1_2.php'); } else { // SCORM 1.3 (aka SCORM 2004) Call //require_once('datamodels/scorm1_3.php'); } } ?>