|
include "class/MCscoreutil.php";
$bd=new bd();
echo "";
if (!$order)
{
$rec="select totalscores as score,pseudo from MCScoreTableUsers order by totalscores desc";
$title="High score totals";
}
else
{
$rec="select * from MCScoreTableUsers, MCScoreTable where idxuser=idx order by score desc";
$title="Score";
}
if ($rec)
{
$nb=$bd->execute($rec);
$max=$nb;if ($max>50) $max=50;
echo "MicroCircuit best players ";
//echo "You'd like to talk with other people from the Internet Championship? Visit our Forum!
";
echo "";
echo "| Rank | Nickname | $title | ";
for($i=0;$i<$max;$i++)
{
$tmp=$bd->get_next_row();
echo "";
$nick=$tmp["pseudo"];
echo "| ".($i+1)." | ";
echo "$nick | ";
echo "".$tmp["score"]." | ";
echo " ";
}
echo " ";
if ($user)
{
if ($idxuser=UserGetIDX($user))
{
echo "$user's score: $totalscore (Rank: ".UserRank($totalscore).")";
}
}
}
echo "";
?>
|