Block Hall of Fame'.$pg;
$pg .= "
\n";
$pg .= "";
$pg .= "User | ";
$pg .= "Blocks | ";
$pg .= "Diff | ";
$pg .= "
\n";
if ($ans['STATUS'] == 'ok')
{
$all = array();
$count = $ans['rows'];
for ($i = 0; $i < $count; $i++)
{
$all[] = array('blocks' => $ans['blocks:'.$i],
'username' => $ans['username:'.$i],
'diffacc' => $ans['diffacc:'.$i]);
}
usort($all, 'blocksorder');
for ($i = 0; $i < $count; $i++)
{
if (($i % 2) == 0)
$row = 'even';
else
$row = 'odd';
$pg .= "";
$un = htmlspecialchars($all[$i]['username']);
$pg .= "$un | ";
$bl = $all[$i]['blocks'];
$pg .= "$bl | ";
$diffacc = difffmt($all[$i]['diffacc']);
$pg .= "$diffacc | ";
$pg .= "
\n";
}
}
$pg .= "
\n";
return $pg;
}
#
function show_userinfo($info, $page, $menu, $name, $user)
{
gopage($info, NULL, 'douserinfo', $page, $menu, $name, $user);
}
#
?>