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