|
|
|
@ -145,6 +145,7 @@ if ('auto' === $invitationcode && isset($_GET['scode'])) { |
|
|
|
} |
|
|
|
} |
|
|
|
// From here we use the new invitationcode auto-userid-surveycode string |
|
|
|
// From here we use the new invitationcode auto-userid-surveycode string |
|
|
|
$_GET['invitationcode'] = $autoInvitationcode; |
|
|
|
$_GET['invitationcode'] = $autoInvitationcode; |
|
|
|
|
|
|
|
Session::write('auto_invitation_code_'.$surveyCode, $autoInvitationcode); |
|
|
|
$invitationcode = $autoInvitationcode; |
|
|
|
$invitationcode = $autoInvitationcode; |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
@ -574,6 +575,8 @@ if ( |
|
|
|
// The first thing we do is delete the session |
|
|
|
// The first thing we do is delete the session |
|
|
|
Session::erase('paged_questions'); |
|
|
|
Session::erase('paged_questions'); |
|
|
|
Session::erase('page_questions_sec'); |
|
|
|
Session::erase('page_questions_sec'); |
|
|
|
|
|
|
|
Session::erase('auto_invitation_code_'.$survey_data['code']); |
|
|
|
|
|
|
|
|
|
|
|
$paged_questions_sec = []; |
|
|
|
$paged_questions_sec = []; |
|
|
|
if (!empty($survey_data['survey_introduction'])) { |
|
|
|
if (!empty($survey_data['survey_introduction'])) { |
|
|
|
echo '<div class="survey_content">'.Security::remove_XSS($survey_data['survey_introduction']).'</div>'; |
|
|
|
echo '<div class="survey_content">'.Security::remove_XSS($survey_data['survey_introduction']).'</div>'; |
|
|
|
@ -629,12 +632,14 @@ if ($survey_data['form_fields'] && |
|
|
|
// We unset the sessions |
|
|
|
// We unset the sessions |
|
|
|
Session::erase('paged_questions'); |
|
|
|
Session::erase('paged_questions'); |
|
|
|
Session::erase('page_questions_sec'); |
|
|
|
Session::erase('page_questions_sec'); |
|
|
|
|
|
|
|
Session::erase('auto_invitation_code_'.$survey_data['code']); |
|
|
|
$paged_questions_sec = []; |
|
|
|
$paged_questions_sec = []; |
|
|
|
} else { |
|
|
|
} else { |
|
|
|
echo '<div id="survey_content" class="survey_content">'.get_lang('UpdateInformation').'</div>'; |
|
|
|
echo '<div id="survey_content" class="survey_content">'.get_lang('UpdateInformation').'</div>'; |
|
|
|
// We unset the sessions |
|
|
|
// We unset the sessions |
|
|
|
Session::erase('paged_questions'); |
|
|
|
Session::erase('paged_questions'); |
|
|
|
Session::erase('page_questions_sec'); |
|
|
|
Session::erase('page_questions_sec'); |
|
|
|
|
|
|
|
Session::erase('auto_invitation_code_'.$survey_data['code']); |
|
|
|
$paged_questions_sec = []; |
|
|
|
$paged_questions_sec = []; |
|
|
|
$form->display(); |
|
|
|
$form->display(); |
|
|
|
} |
|
|
|
} |
|
|
|
@ -667,6 +672,7 @@ if (isset($_POST['finish_survey'])) { |
|
|
|
|
|
|
|
|
|
|
|
Session::erase('paged_questions'); |
|
|
|
Session::erase('paged_questions'); |
|
|
|
Session::erase('page_questions_sec'); |
|
|
|
Session::erase('page_questions_sec'); |
|
|
|
|
|
|
|
Session::erase('auto_invitation_code_'.$survey_data['code']); |
|
|
|
Display::display_footer(); |
|
|
|
Display::display_footer(); |
|
|
|
exit(); |
|
|
|
exit(); |
|
|
|
} |
|
|
|
} |
|
|
|
|