fix example on 400
This commit is contained in:
@@ -27,18 +27,18 @@
|
|||||||
}
|
}
|
||||||
require("sudoku.php");
|
require("sudoku.php");
|
||||||
} else {
|
} else {
|
||||||
|
$grid = new Grid();
|
||||||
|
$gridAsString = $grid->toString();
|
||||||
|
$newGridUrl = "$dirUrl/?$gridAsString";
|
||||||
|
|
||||||
|
session_id($gridAsString);
|
||||||
|
session_start(["use_cookies" => false]);
|
||||||
|
|
||||||
|
$_SESSION["nbSolutions"] = 1;
|
||||||
|
|
||||||
if ($currentGrid) {
|
if ($currentGrid) {
|
||||||
require("400.php");
|
require("400.php");
|
||||||
} else {
|
} else {
|
||||||
$grid = new Grid();
|
|
||||||
$gridAsString = $grid->toString();
|
|
||||||
$newGridUrl = "$dirUrl/?$gridAsString";
|
|
||||||
|
|
||||||
session_id($gridAsString);
|
|
||||||
session_start(["use_cookies" => false]);
|
|
||||||
|
|
||||||
$_SESSION["nbSolutions"] = 1;
|
|
||||||
|
|
||||||
header("Location: $newGridUrl");
|
header("Location: $newGridUrl");
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user