2025-01-23 20:00:36 -05:00
|
|
|
<?php
|
2025-02-05 01:27:45 -05:00
|
|
|
require(__DIR__ . "/../libs/page.php");
|
|
|
|
require(__DIR__ . "/../libs/form.php");
|
|
|
|
require(__DIR__ . "/../libs/comment.php");
|
|
|
|
|
|
|
|
function cmp($a, $b)
|
|
|
|
{
|
|
|
|
if ($a == $b) {
|
|
|
|
return 0;
|
|
|
|
}
|
|
|
|
return ($a > $b) ? -1 : 1;
|
|
|
|
}
|
|
|
|
|
|
|
|
page_header();
|
|
|
|
?>
|
|
|
|
|
|
|
|
<div>
|
|
|
|
<a class="form-button" href="?username=<?php echo $username ?>">Local</a>
|
|
|
|
<a class="form-button" href="?">Global</a>
|
|
|
|
</div>
|
|
|
|
|
|
|
|
|
|
|
|
<?php
|
|
|
|
function get_handler()
|
|
|
|
{
|
2025-02-07 02:52:53 -05:00
|
|
|
global $node_backend;
|
|
|
|
$api = file_get_contents($node_backend . "/top?ref=" . $_GET['username']);
|
2025-02-05 01:27:45 -05:00
|
|
|
$pr = json_decode($api);
|
|
|
|
|
2025-02-07 11:37:04 -05:00
|
|
|
foreach ($pr as $usern => $rr) {
|
|
|
|
user_block($usern, $rr, "Popularity");
|
|
|
|
}
|
2025-02-05 01:27:45 -05:00
|
|
|
}
|
|
|
|
|
|
|
|
get_handler();
|
2025-01-23 20:00:36 -05:00
|
|
|
?>
|
2025-02-05 01:27:45 -05:00
|
|
|
|
2025-01-23 20:00:36 -05:00
|
|
|
<?php
|
2025-02-05 01:27:45 -05:00
|
|
|
page_footer();
|
2025-01-23 20:00:36 -05:00
|
|
|
?>
|