dirroot.'/mod/lams/constants.php'); if (!isset($form->name)) { $form->name = ''; } if (!isset($form->introduction)) { $form->introduction = ''; } if (!isset($form->learning_session_id)) { $form->learning_session_id = ''; } if (!isset($form->create_sequence_url)) { $datetime = date("F d,Y g:i a"); $plaintext = trim($datetime).trim($USER->username).trim($LAMSCONSTANTS->author_method).trim($CFG->lams_serverid).trim($CFG->lams_serverkey); $hash = sha1(strtolower($plaintext)); $form->create_sequence_url = $CFG->lams_serverurl.$LAMSCONSTANTS->login_request. '?'.$LAMSCONSTANTS->param_uid.'='.$USER->username. '&'.$LAMSCONSTANTS->param_method.'='.$LAMSCONSTANTS->author_method. '&'.$LAMSCONSTANTS->param_timestamp.'='.urlencode($datetime). '&'.$LAMSCONSTANTS->param_serverid.'='.$CFG->lams_serverid. '&'.$LAMSCONSTANTS->param_hash.'='.$hash. '&'.$LAMSCONSTANTS->param_courseid.'='.$form->course; } ?>