$thread = BoincThread::lookup_id($post->thread); if (!$thread) { continue; } $forum = BoincForum::lookup_id($thread->forum); if (!$forum) { continue; } if (!is_forum_visible_to_user($forum, $logged_in_user)) { continue; } if (!$show_hidden_posts) { if ($thread->hidden) { continue; } if ($post->hidden) { continue; } } show_post_and_context($post, $thread, $forum, $options, $n); $n++; } end_table(); } if (!count($threads) && !count($posts)) { echo "<p>" . tra("Sorry, couldn't find anything matching your search query. You can try to broaden your search by using less words (or less specific words).") . "</p>\n <p>" . tra("You can also %1try the same search on Google.%2", "<a href=\"http://www.google.com/search?domains=" . url_base() . "&sitesearch=" . url_base() . "forum_thread.php&q=" . htmlentities($search_keywords) . "\">", "</a>") . "</p>"; } echo "<p><a href=\"forum_search.php\">" . tra("Perform another search") . "</a></p>"; page_tail(); $cvs_version_tracker[] = "\$Id\$"; //Generated automatically - do not edit
if ($user->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 "</table>\n"; if ($n == $count) { $offset += $count; echo "\r\n\t\t<br><br>\r\n\t\t<a href=forum_user_posts.php?userid={$userid}&offset={$offset}><b>Next {$count} posts</b></a>\r\n\t"; } page_tail();