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:
parent
29b756346b
commit
50d438a18c
147 changed files with 1024 additions and 967 deletions
|
|
@ -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;
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue