retwis/home.php
2018-12-27 16:00:48 +01:00

28 lines
761 B
PHP

<?php
include("retwis.php");
if (!isLoggedIn()) {
header("Location: index.php");
exit;
}
include("header.php");
$r = redisLink();
?>
<div id="postform">
<form method="POST" action="post.php">
<?php echo utf8entities($User['username']) ?>, what you are doing?
<br>
<table>
<tr><td><textarea cols="70" rows="3" name="status"></textarea></td></tr>
<tr><td align="right"><input type="submit" name="doit" value="Update"></td></tr>
</table>
</form>
<div id="homeinfobox">
<?php echo $r->zcard("followers:".$User['id'])?> followers<br>
<?php echo $r->zcard("following:".$User['id'])?> following<br>
</div>
</div>
<?php
$start = gt("start") === false ? 0 : intval(gt("start"));
showUserPostsWithPagination(false,$User['id'],$start,10);
include("footer.php")
?>