dirroot.'/mod/lamstwo/constants.php'); require_once($CFG->dirroot.'/mod/lamstwo/lib.php'); if (!isset($form->name)) { $form->name = ''; } if (!isset($form->sequence_id)) { $form->sequence_id = ''; } if (!isset($form->introduction)) { $form->introduction = ''; } if (!isset($form->lesson_id)) { $form->lesson_id = ''; } if (!isset($form->create_sequence_url)) { $datetime = date("F d,Y g:i a"); $plaintext = trim($datetime).trim($USER->username).trim($LAMS2CONSTANTS->author_method).trim($CFG->lamstwo_serverid).trim($CFG->lamstwo_serverkey); $hash = sha1(strtolower($plaintext)); $form->create_sequence_url = $CFG->lamstwo_serverurl.$LAMS2CONSTANTS->login_request. '?'.$LAMS2CONSTANTS->param_uid.'='.$USER->username. '&'.$LAMS2CONSTANTS->param_method.'='.$LAMS2CONSTANTS->author_method. '&'.$LAMS2CONSTANTS->param_timestamp.'='.urlencode($datetime). '&'.$LAMS2CONSTANTS->param_serverid.'='.$CFG->lamstwo_serverid. '&'.$LAMS2CONSTANTS->param_hash.'='.$hash. '&'.$LAMS2CONSTANTS->param_courseid.'='.$form->course. '&'.$LAMS2CONSTANTS->param_country.'='.trim($USER->country). '&'.$LAMS2CONSTANTS->param_lang.'='.substr(trim($USER->lang),0,2); } ?>
'; }else{ echo '
'; } ?>

" onClick="openAuthor(create_sequence_url."'";?>,'author','location=0,toolbar=0,menubar=0,statusbar=0,width=796,height=570,resizable',0)" /> " onclick="javascript:refreshSequences()" /> " /> " onClick="javascript:nextStep()"/>
'; }else{ echo '