//that they are allowed to have in ventus_exam_confirmed_accommodations, there is //no harm is making sure that we don't let anything slip through the cracks //For the course, check if the student has opted out if (!\Ventus\Utilities\Functions::checkIfStudentHasOptedOut($result['student_num'], $result['course_code'], $result['course_section'], $result['session'])) { //The student hasn't opted out. Get the confirmed accommodations $allowed_accommodations = $model->fetchConfirmedAccommodationsForExam($result['request_id']); } $result['official_evaluation_starttime'] = \DateTime::createFromFormat(DATETIME_MYSQL, $result['official_evaluation_starttime']); $result['official_evaluation_endtime'] = \DateTime::createFromFormat(DATETIME_MYSQL, $result['official_evaluation_endtime']); $result['actual_evaluation_starttime'] = \DateTime::createFromFormat(DATETIME_MYSQL, $result['actual_evaluation_starttime']); $result['actual_evaluation_endtime'] = \DateTime::createFromFormat(DATETIME_MYSQL, $result['actual_evaluation_endtime']); $result['meta'] = Proctor::determineStatus($result); $l10n->addResource(__DIR__ . '/l10n/event.json'); $viewFile = 'views/event.php'; } elseif ($_GET['page'] === "end") { $model->logInsertComment($_POST['remarks'], $_POST['reqID']); sleep(1); $model->changeEndTime($_POST['reqID']); $loggers['audit']->info("Exam {$_POST['reqID']} ended"); } elseif ($_GET['page'] === 'comment') { if (!isset($_POST['time-added'])) { $_POST['time-added'] = 0; } $model->logInsertComment($_POST['comment-added'], $_POST['reqID'], $_POST['time-added']); $loggers['audit']->info("Comment and/or time added for exam {$_POST['reqID']}"); } elseif ($_GET['page'] === "table") { require_once 'views/table.php'; } elseif ($_GET['page'] === 'statusData') { $l10n->addResource(__DIR__ . '/l10n/today.json'); $data = $model->listApprovedToday(); foreach ($data as &$r) {