mirror of https://github.com/BOINC/boinc.git
Show information about posts that are deleted.
(by Jens Seidler) svn path=/trunk/boinc/; revision=5189
This commit is contained in:
parent
b5cd558293
commit
62013e8f05
|
@ -787,6 +787,14 @@ function show_post2($post, $n) {
|
||||||
$user = lookup_user_id($post->user);
|
$user = lookup_user_id($post->user);
|
||||||
$title = cleanup_title($thread->title);
|
$title = cleanup_title($thread->title);
|
||||||
$m = $n%2;
|
$m = $n%2;
|
||||||
|
if($post->hidden) {
|
||||||
|
$deleted_text = array( "Obscene", "Flame/Hate", "Commercial spam" ); //Todo: factor this array out, it is also used elsewhere
|
||||||
|
$deleted = "<br><font color=red>[Deleted " .
|
||||||
|
"by a moderator as " . $deleted_text[$post->hidden-1] .
|
||||||
|
"] </font>";
|
||||||
|
} else {
|
||||||
|
$deleted = "";
|
||||||
|
};
|
||||||
echo "
|
echo "
|
||||||
<tr class=row$m>
|
<tr class=row$m>
|
||||||
<td>
|
<td>
|
||||||
|
@ -794,7 +802,7 @@ function show_post2($post, $n) {
|
||||||
<a href=\"forum_forum.php?id=$forum->id\">$forum->title</a> :
|
<a href=\"forum_forum.php?id=$forum->id\">$forum->title</a> :
|
||||||
<a href=\"forum_thread.php?id=$thread->id\">$title</a>
|
<a href=\"forum_thread.php?id=$thread->id\">$title</a>
|
||||||
<br>
|
<br>
|
||||||
Posted $when by $user->name
|
Posted $when by $user->name $deleted
|
||||||
<hr>
|
<hr>
|
||||||
$content
|
$content
|
||||||
</td>
|
</td>
|
||||||
|
|
Loading…
Reference in New Issue