}
$accessmanager->do_password_check($attemptobj->is_preview_user());
-/// Log continuation of the attempt, but only if some time has passed.
- if ((time() - $attemptobj->get_attempt()->timemodified) > QUIZ_CONTINUE_ATTEMPT_LOG_INTERVAL) {
- /// This action used to be 'continue attempt' but the database field has only 15 characters.
- add_to_log($attemptobj->get_courseid(), 'quiz', 'continue attemp',
- 'review.php?attempt=' . $attemptobj->get_attemptid(),
- $attemptobj->get_quizid(), $attemptobj->get_cmid());
- }
+/// This action used to be 'continue attempt' but the database field has only 15 characters.
+ add_to_log($attemptobj->get_courseid(), 'quiz', 'continue attemp',
+ 'review.php?attempt=' . $attemptobj->get_attemptid(),
+ $attemptobj->get_quizid(), $attemptobj->get_cmid());
/// Get the list of questions needed by this page.
$questionids = $attemptobj->get_question_ids($page);
define('QUIZ_STATE_TEACHERACCESS', 'teacheraccess'); // State only relevant if you are in a studenty role.
/**#@-*/
-/**
- * We don't log every single hit on attempt.php, only significant ones like starting and
- * ending an attempt, and periodically during the attempt, as defined by this constant. (10 mins)
- */
-define('QUIZ_CONTINUE_ATTEMPT_LOG_INTERVAL', '600');
-
/**
* We show the countdown timer if there is less than this amount of time left before the
* the quiz close date. (1 hour)