Colour suspect messages
This commit is contained in:
parent
6294e66484
commit
31800ee1e7
@ -98,6 +98,10 @@ h2,h3,h4,h5,h6 {
|
||||
padding-right: 10px;
|
||||
}
|
||||
|
||||
.suspect-message {
|
||||
color: #ED9898;
|
||||
}
|
||||
|
||||
#test-bar {
|
||||
align-content: center;
|
||||
padding-top: 20px;
|
||||
|
@ -20,9 +20,9 @@ $connections = array(); // String index = Connection name
|
||||
$users = array();
|
||||
|
||||
$categories = array(
|
||||
1 => "Hacking",
|
||||
2 => "Chat Abuse",
|
||||
3 => "Gameplay"
|
||||
1 => 'Hacking',
|
||||
2 => 'Chat Abuse',
|
||||
3 => 'Gameplay'
|
||||
);
|
||||
|
||||
/** PARSE DB CONNECTIONS */
|
||||
@ -453,12 +453,26 @@ if ($validId)
|
||||
$typeDisplayName = Message::$TYPE_DISPLAY_NAMES[$typeId];
|
||||
$isPM = $typeId == Message::TYPE_PM;
|
||||
|
||||
// If this is a PM, then the "-> <recipient>" suffix will be applied.
|
||||
$involved = $message->getSender()->getUsername() . ($isPM ? " -> " . $message->getRecipients()[0]->getUsername() : "");
|
||||
?>
|
||||
if ($isPM): ?>
|
||||
<span class="label label-primary chat pm" style="font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;"><?= $typeDisplayName ?></span>
|
||||
<?php else: ?>
|
||||
<span class="label label-info chat" style="font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;"><?= $typeDisplayName ?></span>
|
||||
<?php endif; ?>
|
||||
|
||||
<span class="label <?= $isPM ? "label-primary chat pm" : "label-info chat" ?>" style="font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;"><?= $typeDisplayName ?></span>
|
||||
<span class="black"><?= $involved; ?>:</span> <?= $message->getMessage(); ?>
|
||||
<span class="black">
|
||||
<?php
|
||||
echo $message->getSender()->getUsername();
|
||||
|
||||
if ($isPM)
|
||||
{
|
||||
echo ' -> ' . $message->getRecipients()[0]->getUsername();
|
||||
}
|
||||
|
||||
echo ': ';
|
||||
?>
|
||||
</span>
|
||||
|
||||
<span class="<?= ($message->getSender() == $report->getSuspect() ? 'suspect-message' : 'message') ?>"><?= $message->getMessage() ?></span>
|
||||
|
||||
<?php if ($i < $displayAmount - 1): // Don't break on the last element ?>
|
||||
<br />
|
||||
|
Loading…
Reference in New Issue
Block a user