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(); $options = get_output_options($logged_in_user); foreach ($posts as $post) { $thread = BoincThread::lookup_id($post->thread); if (!$thread) continue; $forum = BoincForum::lookup_id($thread->forum); if (!$forum) continue; show_post_and_context($post, $thread, $forum, $options, $n+$offset+1); $n++; } echo "\n"; if ($n == $count) { $offset += $count; echo "

Next $count posts "; } page_tail(); ?>