function init($object) { parent::init($object); $this->lti = UoN_LTI::get_instance(); $this->lti->init_lti0($this->db); $this->savetodebug('Starting LTI'); $this->lti->init_lti(); if (!isset($this->lti_i)) { $this->lti_i = lti_integration::load(); } }
} $extra = "<input type=\"radio\" name=\"paperlinkID\" id=\"paperlinkID-{$plk}\" value=\"{$plk}\"{$checked}><label for=\"paperlinkID-{$plk}\">"; $extra1 = "</label>"; echo "<div style=\"padding-left:20px\">{$extra}<img src=\"../artwork/" . $icons[$paper_type] . "_16.gif\" width=\"16\" height=\"16\" alt=\"" . $paper_type . "\" /> " . $paper_title . "{$extra1}</div>\n"; $_SESSION['postlookup'][$plk] = array($crypt_name, $moduleid); $plk++; } echo '</div>'; $block_id++; } else { // no papers } $results2->close(); return array($block_id, $plk); } $lti = UoN_LTI::get_instance(); if (!$lti->valid) { $tempvar = $lti->message; if (!isset($string[$tempvar])) { $string[$tempvar] = $lti->message; } $message = $string[$tempvar]; UserNotices::display_notice($string['LTIFAILURE'], $message, '../artwork/access_denied.png', '#C00000'); $mysqli->close(); exit; } if (!isset($lti_i)) { $lti_i = lti_integration::load(); } if (isset($_REQUEST['paperlinkID'])) { list($retlookup, $retlookup2) = $_SESSION['postlookup'][$_REQUEST['paperlinkID']];