$username) { $players[$uuid] = new Player($uuid, $username); } return $players; } /** * @param $playersArray * @param $reportersArray * @return SplObjectStorage */ function toReporters($playersArray, $reportersArray) { $reporters = new SplObjectStorage(); foreach ($reportersArray as $reporterUUID => $reason) { $reporters[getPlayer($playersArray, $reporterUUID)] = $reason; } return $reporters; } /** * @param Player[] $players * @param String $uuid * @return Player */ function getPlayer($players, $uuid) { $player = $players[$uuid]; if ($player != null) { return $player; } else { throw new RuntimeException('Player for UUID not found.'); } } /** * @param String $dateTime * @param DateTimeZone $timezone * @return DateTime */ function parseDateTime($dateTime, $timezone) { return DateTime::createFromFormat(jsonDateTimeFormat, $dateTime, $timezone); } /** * @param String $input * @return String */ function removeBadCharacters($input) { return preg_replace('/[^A-Za-z0-9_\-]/', '_', $input); } $showReport = isset($_GET['identifier']); $errorMessage = ""; $identifier = null; $filePath = null; $snapshot = null; $report = null; if ($showReport) { $identifier = removeBadCharacters($_GET['identifier']); // prevents escaping $filePath = dataDir . $identifier . '.json'; if (file_exists($filePath)) { $dataArray = toDataArray($filePath); $snapshot = toSnapshot($identifier, $dataArray); $report = toReport($dataArray['report'], $snapshot->getPlayers()); } else { $showReport = false; $errorMessage = "Invalid identifier."; } } ?> <?php if ($showReport) { ?> Report #<?= $report->getId() ?> <?php } else { ?> Report System <?php } ?> · Mineplex

Report #getId() ?>


   Chat Log


getMessages(); foreach($messages as $message): $typeId = $message->getType(); $typeDisplayName = Message::$TYPE_DISPLAY_NAMES[$typeId]; $isPM = $typeId == Message::TYPE_PM; // If this is a PM, then the "-> " suffix will be applied. $involved = $message->getSender()->getUsername() . ($isPM ? " -> " . $message->getRecipients()[0]->getUsername() : ""); ?> " style="font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;"> : getMessage(); ?>

   Information







getTimeGenerated(); $reporters = array(); foreach ($report->getReporters() as $reporter) { $reporters[count($reporters)] = $reporter->getUsername(); } $reportersString = implode(", ", $reporters); ?> format('n/j/y') ?>
format('g:i A') ?>
Reported by
Suspect is getSuspect()->getUsername() ?>
getHandler(); echo $handler != null ? "Staff Member assigned is " . $handler->getUsername() : "No Staff Member assigned"; ?>

   Users


getPlayers() as $player): ?>   getUsername() ?>
  getUUID() ?>