From 62013e8f05a93b2d31fb77602912cdfa8d1caf0f Mon Sep 17 00:00:00 2001 From: "Janus B. Kristensen" Date: Sun, 23 Jan 2005 10:05:15 +0000 Subject: [PATCH] Show information about posts that are deleted. (by Jens Seidler) svn path=/trunk/boinc/; revision=5189 --- html/inc/forum.inc | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/html/inc/forum.inc b/html/inc/forum.inc index 1b28645958..6588808c82 100644 --- a/html/inc/forum.inc +++ b/html/inc/forum.inc @@ -787,6 +787,14 @@ function show_post2($post, $n) { $user = lookup_user_id($post->user); $title = cleanup_title($thread->title); $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 = "
[Deleted " . + "by a moderator as " . $deleted_text[$post->hidden-1] . + "] "; + } else { + $deleted = ""; + }; echo " @@ -794,7 +802,7 @@ function show_post2($post, $n) { id\">$forum->title : id\">$title
- Posted $when by $user->name + Posted $when by $user->name $deleted
$content