rank overhaul

This commit is contained in:
biglyderv 2025-01-24 02:52:28 -05:00
parent 6df859f963
commit 93a5f1c912

View file

@ -28,12 +28,10 @@
foreach ($followers as $follown) {
if ($usern == $follown['target']) continue;
$pr[$usern['username']] += $pr[$follown['target']];
$pr[$usern['username']] += $pr[$follown['target']] / 10;
}
$h = $pr[$usern['username']];
$pr[$usern['username']] = log($h/10 + 1)*10* M_E;
}
}
@ -48,8 +46,18 @@
foreach ($pr as $usern => $rr) { ?>
<div class='comment'>
<b><?php echo $usern ?></b>
<div>Rank: <?php echo (int)($rr * 10) ?></div>
<div class="avatar">
<img src="/pfp/<?php echo $usern ?>.png" class="avatar-img">
<div>
<div><b>
<a class="link" href="/user.php?id=derv3">
<?php echo $usern ?>
</a>
</b>
</div>
</div>
</div>
<div><b>Rank</b>: <?php echo (int)($rr * 10) ?></div>
</div>
<?php }
}