Member | Rank | Clan points | League Position | Millionaire's League | Waypoints League |
" . $members[$index]["name"] . " | ");
echo("" . $members[$index]["rank"] . " | " );
echo("" . $members[$index]["contribution"] . " | ");
# Figure out if this person is in the heroes' league.
$hero_match = "-";
for ($hero_index = 0; $hero_index < count($heroes); ++$hero_index) {
if (!strcasecmp($heroes[$hero_index]["name"],$members[$index]["name"])) {
$hero_match = $heroes[$hero_index]["position"];
$exp = $heroes[$hero_index]["score"];
}
}
if (!strcasecmp($hero_match, "-")) {
echo ("$hero_match | ");
} else {
$rank = nth($hero_match);
echo ("$hero_match$rank $exp exp | ");
}
# Figure out if this person is in the millionaire's league.
$mill_match = "-";
for ($mill_index = 0; $mill_index < count($millionaires); ++$mill_index) {
if (!strcasecmp($millionaires[$mill_index]["name"],$members[$index]["name"])) {
$mill_match = $millionaires[$mill_index]["position"];
$gold = $millionaires[$mill_index]["gold"];
}
}
if (!strcasecmp($mill_match, "-")) {
echo ("$mill_match | ");
} else {
$rank = nth($mill_match);
echo ("$mill_match$rank $gold coins | ");
}
# Figure out if this person is in the millionaire's league.
$way_match = "-";
for ($way_index = 0; $way_index < count($waypoints); ++$way_index) {
if (!strcasecmp($waypoints[$way_index]["name"],$members[$index]["name"])) {
$way_match = $waypoints[$way_index]["position"];
$points = $waypoints[$way_index]["score"];
}
}
if (!strcasecmp($way_match, "-")) {
echo ("$way_match | ");
} else {
$rank = nth($way_match);
echo ("$way_match$rank $points exp | ");
}
echo ("");
}
?>