%s\n\n",LANGUAGE_TEXT_PLAYING_AUDIO_NOTIFICATION);
$_SESSION['stimulus_id'] = $stimulus_id;
// Check whether this is a txt or audio stim
$mysql_str = "SELECT file_format FROM stimulus WHERE stimulus_id=".$stimulus_id;
$result_query = mysql_select($mysql_str);
if ($result_query['file_format'] == 'txt'){
present_stimuli(NULL,$stimulus_id,30,NULL); // playLength in s
} else {
present_stimuli(NULL,$stimulus_id,30000,NULL); // playLength in s
}
}
elseif ($stimulus_id == "break") {
include_once($questionnaire_dir."form_processing/htmlhead_name_mesg.php");
printf("");
}
elseif ($stimulus_id == "end") {
//after all stims have been revisited, skip
if(isset($_SESSION['loop_end']) && isset($_SESSION['loop_goto']))
$_SESSION['num_skip_forms'] = $_SESSION['loop_end'] - $_SESSION['last_visited'] + 1;
else
$_SESSION['num_skip_forms'] = 1;
include_once($questionnaire_dir."form_processing/update_session.php");
}
}
else {
include_once('htmlhead_name_mesg_formhead.php');
include_once('display_form_fields.php');
}
?>