Last active
October 26, 2018 21:05
-
-
Save NeKzor/06f3a4a5077113df03357c0a3e9def8b to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
include(__DIR__."/../loader.php"); | |
$params = array( | |
"dateStart" => "2017-05-11", | |
"dateEnd" => date('Y-m-d', time() - 60 * 60 * 24), | |
"banned" => "0", | |
"demo" => "0", | |
"yt" => "0"); | |
$clog = Leaderboard::getChangeLog($params); | |
$count = 0; | |
foreach ($clog as $entry) { | |
if ($entry["post_rank"] <= 5) { | |
echo "[{$entry["id"]} {$entry["score"]} by {$entry["player_name"]} on {$entry["chamberName"]} ({$entry["time_gained"]})\n"; | |
Leaderboard::setScoreBanStatus($entry["id"], "oof", "Automatic Ban (no proof)"); | |
++$count; | |
} | |
} | |
echo "Banned {$count} entries!\n"; | |
Leaderboard::cacheLeaderboard(); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment