include("retwis.php");
include("header.php");
$r = redisLink();
if (!gt("u") || !($userid = $r->hget("users",gt("u")))) {
header("Location: index.php");
exit(1);
}
echo("
".utf8entities(gt("u"))."
");
if (isLoggedIn() && $User['id'] != $userid) {
$isfollowing = $r->zscore("following:".$User['id'],$userid);
if (!$isfollowing) {
echo("Follow this user");
} else {
echo("Stop following");
}
}
?>
$start = gt("start") === false ? 0 : intval(gt("start"));
showUserPostsWithPagination(gt("u"),$userid,$start,10);
include("footer.php")
?>