getTUserId(), $value); header("Cache-Control: max-age=1"); 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 header("Cache-Control: max-age=1"); 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("Cache-Control: max-age=1"); header("Location: index.php?page=error"); throw new SystemExit(); } }else{ //ERROR: not logged in! header("Cache-Control: max-age=1"); header("Location: index.php"); throw new SystemExit(); } }