= $tr["puzzles"]["message"]?>
= $tr["puzzles"]["success"]?>
checkTeamExists($team_id)) { header("Location: index.php"); die(); } else { if (!isset($_COOKIE["team"])) { // On crée un cookie pour enregistrer l'équipe sélectionnée : setcookie( "team", $team_id, time() + (365 * 24 * 60 * 60), "/", "", false, false ); } $solved = $database->getSolvedPuzzles($team_id); $puzzles = []; foreach ($solved as $p) { array_push($puzzles, $database->getArticle($p)); } $next_art = $database->getNextPuzzle($team_id); } } else { header("Location: index.php"); die(); } ?>
= $tr["puzzles"]["message"]?>
= $tr["puzzles"]["success"]?>