Exemplo n.º 1
0
 print '<a name="' . $reply['id'] . '"></a>';
 if ($new['id'] == $reply['id']) {
     print '<a name="postbox"></a>';
     $messageAnchor = '';
 } elseif ($User->timeLastSessionEnded < $reply['timeSent']) {
     print $messageAnchor;
     $messageAnchor = '';
 } elseif ($reply['id'] == $maxReplyID) {
     print $messageAnchor;
     $messageAnchor = '';
 }
 print '<div class="message-head replyalternate' . $replyswitch . ' leftRule">';
 print '<strong><a href="profile.php?userID=' . $reply['fromUserID'] . '">' . $reply['fromusername'] . ' ' . libHTML::loggedOn($reply['fromUserID']) . ' (' . $reply['points'] . ' ' . libHTML::points() . User::typeIcon($reply['userType']) . ')</a>' . '</strong><br />';
 print libHTML::forumMessage($message['id'], $reply['id']);
 print '<em>' . libTime::text($reply['timeSent']) . '</em>';
 print '<br />' . $User->likeMessageToggleLink($reply['id'], $reply['fromUserID']) . libHTML::likeCount($reply['likeCount']);
 if ($User->type['Admin'] || $User->type['ForumModerator']) {
     if (Silence::isSilenced($reply)) {
         $silence = new Silence($reply);
     } else {
         unset($silence);
     }
     print '<br />';
     if (isset($silence) && $silence->isEnabled()) {
         print '<a class="light likeMessageToggleLink" href="admincp.php?tab=Control%20Panel&amp;silenceID=' . $silence->id . '#disableSilence">' . l_t('Disable silence') . '</a>';
     } else {
         print '<a class="light likeMessageToggleLink" href="admincp.php?tab=Control%20Panel&amp;postID=' . $reply['id'] . '&amp;userID=' . $reply['fromUserID'] . '#createUserThreadSilence">' . l_t('Silence user') . '</a>';
     }
 }
 print '</div>';
 print '