From 3ab9060cccd30f62fcfd128ac5d505a5f1ad0677 Mon Sep 17 00:00:00 2001 From: adrien Date: Thu, 23 Jul 2026 08:20:44 +0200 Subject: [PATCH] fix example on 400 --- index.php | 18 +++++++++--------- 1 file changed, 9 insertions(+), 9 deletions(-) diff --git a/index.php b/index.php index 191459a..f6d6bc0 100755 --- a/index.php +++ b/index.php @@ -27,18 +27,18 @@ } require("sudoku.php"); } else { + $grid = new Grid(); + $gridAsString = $grid->toString(); + $newGridUrl = "$dirUrl/?$gridAsString"; + + session_id($gridAsString); + session_start(["use_cookies" => false]); + + $_SESSION["nbSolutions"] = 1; + if ($currentGrid) { require("400.php"); } else { - $grid = new Grid(); - $gridAsString = $grid->toString(); - $newGridUrl = "$dirUrl/?$gridAsString"; - - session_id($gridAsString); - session_start(["use_cookies" => false]); - - $_SESSION["nbSolutions"] = 1; - header("Location: $newGridUrl"); } }