<?php
declare(strict_types=1);
require_once __DIR__ . '/../includes/config.php';
$examId=(int)($_GET['exam_id'] ?? $_GET['id'] ?? 0);
$courseId=(int)($_GET['course_id'] ?? 0);
$query=http_build_query(array_filter(['view'=>'lobby','course_id'=>$courseId,'exam_id'=>$examId]));
redirect('student/exams.php'.($query?'?'.$query:''));
