id==$logged_in_user->id || $logged_in_user->prefs->privilege(0)) {
$hide = false;
}
}
page_head("Posts by $user->name");
if($hide) {
$posts = BoincPost::enum("user=$userid and hidden=0 order by id desc limit $offset,$count");
} else {
$posts = BoincPost::enum("user=$userid order by id desc limit $offset,$count");
}
$n = 0;
start_table();
foreach ($posts as $post) {
$thread = BoincThread::lookup_id($post->thread);
show_post($post, $thread, $logged_in_user, $n+$offset+1);
$n++;
}
echo "\n";
if ($n == $count) {
$offset += $count;
echo "
Next $count posts
";
}
page_tail();
?>