Skip to content

Commit

Permalink
Possible Cheaters
Browse files Browse the repository at this point in the history
Mega Man: Legacy Collection
  • Loading branch information
Ragowit committed Mar 11, 2024
1 parent beadea4 commit bd23cb7
Showing 1 changed file with 17 additions and 0 deletions.
17 changes: 17 additions & 0 deletions wwwroot/admin/possible.php
Original file line number Diff line number Diff line change
Expand Up @@ -644,5 +644,22 @@
echo "<a href=\"/game/4866-f1-race-stars/". $possibleCheater["online_id"] ."?sort=date\">". $possibleCheater["online_id"] ." (". $possibleCheater["account_id"] .")</a><br>";
}
?>

<br>
Mega Man: Legacy Collection:<br>
<?php
$query = $database->prepare("SELECT account_id, online_id, ABS(TIMESTAMPDIFF(SECOND, first_trophy, second_trophy)) time_difference
FROM player p
JOIN (SELECT earned_date AS first_trophy, account_id FROM trophy_earned WHERE np_communication_id = 'NPWR09098_00' AND order_id = 6) trophy_start USING (account_id)
JOIN (SELECT earned_date AS second_trophy, account_id FROM trophy_earned WHERE np_communication_id = 'NPWR09098_00' AND order_id = 7) trophy_end USING (account_id)
WHERE p.status != 1
HAVING time_difference <= 60
ORDER BY online_id");
$query->execute();
$possibleCheaters = $query->fetchAll();
foreach ($possibleCheaters as $possibleCheater) {
echo "<a href=\"/game/179-mega-man-legacy-collection/". $possibleCheater["online_id"] ."?sort=date\">". $possibleCheater["online_id"] ." (". $possibleCheater["account_id"] .")</a><br>";
}
?>
</body>
</html>

0 comments on commit bd23cb7

Please sign in to comment.