id==$logged_in_user->id || isSpecialUser($logged_in_user,0)) {
$hide = false;
}
}
page_head("Posts by $user->name");
if($hide) {
$result = mysql_query("select * from post
where user=$userid
and hidden=0
order by id desc limit $offset,$count"
);
} else {
$result = mysql_query("select * from post
where user=$userid
order by id desc limit $offset,$count"
);
}
$n = 0;
start_table();
while ($post = mysql_fetch_object($result)) {
show_post2($post, $n+$offset+1);
$n++;
}
echo "\n";
mysql_free_result($result);
if ($n == $count) {
$offset += $count;
echo "
Next $count posts
";
}
page_tail();
?>