summary refs log tree commit diff stats
path: root/includes/comments.php
diff options
context:
space:
mode:
Diffstat (limited to 'includes/comments.php')
-rwxr-xr-xincludes/comments.php10
1 files changed, 1 insertions, 9 deletions
diff --git a/includes/comments.php b/includes/comments.php index 682aa0e..ca5528e 100755 --- a/includes/comments.php +++ b/includes/comments.php
@@ -68,19 +68,11 @@ while ($getcomments3[$i] = mysql_fetch_array($getcomments2))
68 68
69 if (isset($username)) 69 if (isset($username))
70 { 70 {
71 if ($getcomments3[$i]['rating'] > -2)
72 {
73 $text = parseBBCode($getcomments3[$i]['comment']);
74 } else {
75 $text = 'This comment has been rated down below the threshold for public viewing (-1), suggesting that it may contain inappropriate or off topic content. (Or it may have been flame bait, or simply bad!)';
76 }
77
78 $template->add_ref($curID, 'COMMENTS', array( 'CODEDEMAIL' => md5(strtolower($email)), 71 $template->add_ref($curID, 'COMMENTS', array( 'CODEDEMAIL' => md5(strtolower($email)),
79 'USERNAME' => (($website != '') ? '<A HREF="http://' . $website . '">' . $username . '</A>' : $username), 72 'USERNAME' => (($website != '') ? '<A HREF="http://' . $website . '">' . $username . '</A>' : $username),
80 'DATE' => date("F dS Y \a\\t g:i:s a",strtotime($getcomments3[$i]['posttime'])), 73 'DATE' => date("F dS Y \a\\t g:i:s a",strtotime($getcomments3[$i]['posttime'])),
81 'RATING' => $getcomments3[$i]['rating'],
82 'ID' => $getcomments3[$i]['id'], 74 'ID' => $getcomments3[$i]['id'],
83 'TEXT' => $text)); 75 'TEXT' => parseBBCode($getcomments3[$i]['comment'])));
84 } 76 }
85 $i++; 77 $i++;
86} 78}