Skip to content

Commit

Permalink
Possible Cheaters
Browse files Browse the repository at this point in the history
Fat Princess
  • Loading branch information
Ragowit committed Apr 24, 2024
1 parent 36dd0b1 commit 4245ad9
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 @@ -780,5 +780,22 @@
echo "<a href=\"/game/2151-call-of-duty-black-ops-ii/". $possibleCheater["online_id"] ."?sort=date\">". $possibleCheater["online_id"] ." (". $possibleCheater["account_id"] .")</a><br>";
}
?>

<br>
Fat Princess:<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 = 'NPWR00737_00' AND order_id = 0) trophy_start USING (account_id)
JOIN (SELECT earned_date AS second_trophy, account_id FROM trophy_earned WHERE np_communication_id = 'NPWR00737_00' AND order_id = 26) trophy_end USING (account_id)
WHERE p.status != 1
HAVING time_difference <= 300
ORDER BY online_id");
$query->execute();
$possibleCheaters = $query->fetchAll();
foreach ($possibleCheaters as $possibleCheater) {
echo "<a href=\"/game/279-fat-princess/". $possibleCheater["online_id"] ."?sort=date\">". $possibleCheater["online_id"] ." (". $possibleCheater["account_id"] .")</a><br>";
}
?>
</body>
</html>

0 comments on commit 4245ad9

Please sign in to comment.