-
Notifications
You must be signed in to change notification settings - Fork 4
/
home.php
31 lines (31 loc) · 829 Bytes
/
home.php
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
<?
include("retwis.php");
if (!isLoggedIn()) {
header("Location: index.php");
exit;
}
include("header.php");
$r = redisLink();
?>
<div id="postform">
<form method="POST" action="post.php">
<?=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">
<?=$r->scard("uid:".$User['id'].":followers")?> followers<br>
<?=$r->scard("uid:".$User['id'].":following")?> following<br>
</div>
</div>
<div id="timelineHeader">
<h2>Timeline: You and People You Follow</h2>
</div>
<?
$start = gt("start") === false ? 0 : intval(gt("start"));
showUserPostsWithPagination(false,$User['id'],$start,10,true);
include("footer.php")
?>