Fix cart.php REQUEST_URI error and update all game documentation

Co-authored-by: iaretechnician <2749183+iaretechnician@users.noreply.github.com>
This commit is contained in:
copilot-swe-agent[bot] 2025-11-08 22:00:50 +00:00
parent 29b756346b
commit 50d438a18c
147 changed files with 1024 additions and 967 deletions

View file

@ -16,7 +16,8 @@ $user_id = isset($_SESSION['website_user_id']) ? intval($_SESSION['website_user_
(isset($_SESSION['user_id']) ? intval($_SESSION['user_id']) : 0);
if ($user_id <= 0) {
header('Location: /login.php?return_to=' . urlencode($_SERVER['REQUEST_URI']));
$return_to = isset($_SERVER['REQUEST_URI']) ? $_SERVER['REQUEST_URI'] : '/cart.php';
header('Location: /login.php?return_to=' . urlencode($return_to));
exit;
}