- user web: send "red X" notifications on team boards

to project admins as well as team founder

svn path=/trunk/boinc/; revision=14246
This commit is contained in:
David Anderson 2007-11-18 04:24:30 +00:00
parent fd399c351d
commit 09177a1357
3 changed files with 21 additions and 2 deletions

View File

@ -11231,3 +11231,13 @@ David 17 Nov 2007
forum_moderate_thread_action.php
forum_report_post.php
team_create_form.php
David 17 Nov 2007
- user web: send "red X" notifications on team boards
to project admins as well as team founder
html/
inc/
forum_email.inc
user/
forum_user_posts.php

View File

@ -132,7 +132,16 @@ This was the contents of the post:
For further information and assistance with ".PROJECT." go to ".MASTER_URL;
return mail_report_list($forum, $subject, $body, true);
$success = mail_report_list($forum, $subject, $body, true);
// if it's a forum board, send to project admins too
//
if ($forum->parent_type != 0) {
$forum = new BoincForum;
$forum->parent_type = 0;
$success &= mail_report_list($forum, $subject, $body, true);
}
return $success;
}
function send_banish_email($forum, $user, $duration, $reason) {

View File

@ -32,7 +32,7 @@ start_table();
foreach ($posts as $post) {
$thread = BoincThread::lookup_id($post->thread);
$forum = BoincForum::lookup_id($thread->forum);
show_post($post, $thread, $forum, $logged_in_user, $n+$offset+1);
show_post($post, $thread, $forum, $logged_in_user, 0, $n+$offset+1);
$n++;
}
echo "</table>\n";