$lmsdata["ext_ims_lis_memberships_id"] = $sourcedid; $lmsdata["ext_ims_lis_memberships_url"] = AT_BASE_HREF . 'mods/_standard/basiclti/launch/service.php'; } if ($sourcedid !== false && ($basiclti_tool_row['allowsetting'] == 1 || $basiclti_tool_row['allowsetting'] == 2 && $basiclti_content_row['allowsetting'] == 1)) { $lmsdata["ext_ims_lti_tool_setting_id"] = $sourcedid; $lmsdata["ext_ims_lti_tool_setting_url"] = AT_BASE_HREF . 'mods/_standard/basiclti/launch/service.php'; $setting = $basiclti_content_row['setting']; if (isset($setting)) { $lmsdata["ext_ims_lti_tool_setting"] = $setting; } } //require_once("ims-blti/blti_util.php"); require_once AT_INCLUDE_PATH . "classes/AContent_lcl/ims-blti/blti_util.php"; if (strlen($basiclti_tool_row['customparameters']) > 0) { $lmsdata = merge_custom_parameters($lmsdata, $basiclti_tool_row['customparameters']); } if ($basiclti_tool_row['customparameters'] == 1 && strlen($basiclti_content_row['customparameters']) > 0) { $lmsdata = merge_custom_parameters($lmsdata, $basiclti_content_row['customparameters']); } // print_r($lmsdata);echo("<hr>\n"); $parms = $lmsdata; $endpoint = $basiclti_tool_row['toolurl']; $key = $basiclti_tool_row['resourcekey']; $secret = $basiclti_tool_row['password']; $parms = signParameters($parms, $endpoint, "POST", $key, $secret, "Press to Launch", $tool_consumer_instance_guid, $tool_consumer_instance_description); $debuglaunch = false; if ($basiclti_tool_row['debuglaunch'] == 1 || $basiclti_tool_row['debuglaunch'] == 2 && $basiclti_content_row['debuglaunch'] == 1) { $debuglaunch = true; } $content = postLaunchHTML($parms, $endpoint, $debuglaunch); print $content;
function split_custom_parameters($custom) { $retval = array(); return merge_custom_parameters($retval, $custom); }