getTUserId(), $value); if (Helpers::check_if_game_client()) { header("Location: ".$INGAME_WEBPATH."?page=show_user&id=".$user_id); }else{ header("Location: ".$WEBPATH."?page=show_user&id=".$user_id); } throw new SystemExit(); }else{ //ERROR: GET PARAMS not given or trying to change admin if (Helpers::check_if_game_client()) { header("Location: ".$INGAME_WEBPATH."?page=show_user&id=".$user_id); }else{ header("Location: ".$WEBPATH."?page=show_user&id=".$user_id); } throw new SystemExit(); } }else{ //ERROR: No access! $_SESSION['error_code'] = "403"; header("Location: index.php?page=error"); throw new SystemExit(); } }else{ //ERROR: not logged in! header("Location: index.php"); throw new SystemExit(); } }