bugfixes, refactoring
This commit is contained in:
parent
0ef97c4889
commit
f542656bc9
5 changed files with 50 additions and 94 deletions
|
@ -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();
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue