$r['img'] = $r['meta']->timer < 15; } } unset($r); $l10n->addResource(__DIR__ . '/l10n/all.json'); $viewFile = 'views/all.php'; } elseif ($_GET['page'] === "startnow") { $model->changeStart($_POST['reqID']); $loggers['audit']->info("Exam {$_POST['reqID']} started"); } elseif ($_GET['page'] === "startnowextend") { $model->changeStartAndEnd($_POST['reqID']); $loggers['audit']->info("Exam {$_POST['reqID']} started, time extended"); } elseif ($_GET['page'] === "exam") { $render = true; $result = $model->dataRequest($_GET['reqID']); $consheet = $model->proctorInfo($result['parent_request_id']); $allowed_accommodations = array(); //Even though it is fair to assume that the student will only have the accommodations //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');