This commit is contained in:
biglyderv 2025-01-23 20:04:50 -05:00
parent 61cdb6775e
commit 6df859f963

View file

@ -36,10 +36,20 @@
$pr[$usern['username']] = log($h/10 + 1)*10* M_E;
}
}
foreach ($result as $usern) { ?>
function cmp($a, $b) {
if ($a == $b) {
return 0;
}
return ($a > $b) ? -1 : 1;
}
uasort($pr,'cmp');
foreach ($pr as $usern => $rr) { ?>
<div class='comment'>
<b><?php echo $usern['username'] ?></b>
<div>Rank: <?php echo (int)($pr[$usern['username']] * 10) ?></div>
<b><?php echo $usern ?></b>
<div>Rank: <?php echo (int)($rr * 10) ?></div>
</div>
<?php }
}