= $article["answer"] ?>
= $article["reward"] ?>
= $tr["article"]["cam_sel"] ?>
getArticleNb(); if (isset($_GET["id"]) && isset($_GET["team"])) { $art_id = htmlspecialchars($_GET["id"]); $team_id = htmlspecialchars($_GET["team"]); // Recherche de l'énigme indiquée dans la base : $stmt = $database->pdo_article->prepare("SELECT * FROM puzzles WHERE id == :id"); $stmt->bindValue(":id", $art_id); $stmt->execute(); $article = $stmt->fetch(); // Vérification de l'existence du groupe et de l'énigme : if (empty($article) || !$database->checkTeamExists($team_id)) { header("Location: index.php"); die(); } else { // On indique si l'énigme est résolue : $stmt = $database->pdo_teams->prepare("SELECT * FROM solved WHERE (team_id == :team_id AND puzzle_id == :puzzle_id)"); $stmt->bindValue(":team_id", $team_id); $stmt->bindValue(":puzzle_id", $art_id); $stmt->execute(); $solved = !empty($stmt->fetch()); } } else { header("Location: index.php"); die(); } ?>
= $tr["article"]["success"] ?>
= $tr["article"]["message"] ?>
= $article["answer"] ?>
= $tr["article"]["cam_sel"] ?>