bugfixes, refactoring

This commit is contained in:
biglyderv 2025-02-07 11:37:04 -05:00
parent 0ef97c4889
commit f542656bc9
Signed by: biglyderv
GPG key ID: 1398543B9746192C
5 changed files with 50 additions and 94 deletions

View file

@ -27,22 +27,9 @@ function get_handler()
$api = file_get_contents($node_backend . "/top?ref=" . $_GET['username']);
$pr = json_decode($api);
foreach ($pr as $usern => $rr) { ?>
<div class='comment'>
<div class="avatar">
<img src="/pfp/<?php echo $usern ?>.png" class="avatar-img">
<div>
<div><b>
<a class="link" href="/user.php?id=<?php echo $usern ?>">
<?php echo $usern ?>
</a>
</b>
</div>
</div>
</div>
<div><b>Power</b>: <?php echo $rr ?></div>
</div>
<?php }
foreach ($pr as $usern => $rr) {
user_block($usern, $rr, "Popularity");
}
}
get_handler();