$DCDisplay = formatDC($DCPercentage, $sixGames); $sixWinsTeam = GetSixserverWinsTeam($sixProfileId); $sixLossesTeam = GetSixserverLossesTeam($sixProfileId); $sixDrawsTeam = GetSixserverDrawsTeam($sixProfileId); $sixGamesTeam = $sixWinsTeam + $sixLossesTeam + $sixDrawsTeam; if ($sixGamesTeam <= 0) { $sixPercentageTeam = 0.000; } else { $sixPercentageTeam = $sixWinsTeam / $sixGamesTeam; } $sixWinsTotal = $sixWins + $sixWinsTeam + GetSixserverWinsHistory($sixProfileId); $sixLossesTotal = $sixLosses + $sixLossesTeam + GetSixserverLossesHistory($sixProfileId); $sixDrawsTotal = $sixDraws + $sixDrawsTeam + GetSixserverDrawsHistory($sixProfileId); $sixDCTotal = $sixDC + GetSixserverDCHistory($sixProfileId); $sixGamesTotal = $sixWinsTotal + $sixLossesTotal + $sixDrawsTotal + $sixDCTotal; if ($sixGamesTotal <= 0) { $sixPercentageTotal = 0.000; } else { $sixPercentageTotal = $sixWinsTotal / $sixGamesTotal; } if ($sixGamesTotal <= 0) { $DCPercentageTotal = 0.000; } else { $DCPercentageTotal = $sixDCTotal / $sixGamesTotal * 100; } $DCDisplayTotal = formatDC($DCPercentageTotal, $sixGamesTotal); ?>
$pos = ""; if ($oldPoints != $points) { $pos = $compteur; $oldPoints = $points; } $wins = $pointsArray[$profileId]['w']; if (is_null($wins)) { $wins = 0;} $losses = $pointsArray[$profileId]['l']; if (is_null($losses)) { $losses = 0;} $draws = $pointsArray[$profileId]['d']; if (is_null($draws)) { $draws = 0;} $dc = $row['disconnects']; if ($type == "r") { $dc = $dc + GetSixserverDCHistory($profileId); } $games = $wins + $losses + $draws + $dc; if ($games > 0) { $percentage = $wins / $games; ?> <tr<? if (strcmp($cookie_name, $name) == 0) { echo " class='row_active'"; } else { echo " class='row'"; } ?>> <td width="5%" style="text-align:right;"><? echo $pos."." ?></td>