This commit is contained in:
Thijs Stobbelaar 2023-11-28 09:49:24 +01:00
parent 5e34de51ec
commit ea66b92ec7
28 changed files with 4 additions and 9 deletions

BIN
images/ranks/Bronze-1.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 444 KiB

BIN
images/ranks/Bronze-2.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 443 KiB

BIN
images/ranks/Bronze-3.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 445 KiB

BIN
images/ranks/Bronze-4.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 452 KiB

BIN
images/ranks/Bronze-5.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 446 KiB

BIN
images/ranks/Diamond-1.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 456 KiB

BIN
images/ranks/Diamond-2.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 458 KiB

BIN
images/ranks/Diamond-3.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 463 KiB

BIN
images/ranks/Diamond-4.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 459 KiB

BIN
images/ranks/Diamond-5.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 465 KiB

BIN
images/ranks/Gold-1.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 516 KiB

BIN
images/ranks/Gold-2.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 498 KiB

BIN
images/ranks/Gold-3.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 495 KiB

BIN
images/ranks/Gold-4.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 505 KiB

BIN
images/ranks/Gold-5.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 491 KiB

BIN
images/ranks/Master.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 398 KiB

BIN
images/ranks/Platinum-1.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 311 KiB

BIN
images/ranks/Platinum-2.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 314 KiB

BIN
images/ranks/Platinum-3.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 315 KiB

BIN
images/ranks/Platinum-4.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 315 KiB

BIN
images/ranks/Platinum-5.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 312 KiB

BIN
images/ranks/Silver-1.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 365 KiB

BIN
images/ranks/Silver-2.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 371 KiB

BIN
images/ranks/Silver-3.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 358 KiB

BIN
images/ranks/Silver-4.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 366 KiB

BIN
images/ranks/Silver-5.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 351 KiB

BIN
images/ranks/Unranked.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 426 KiB

View file

@ -100,22 +100,17 @@ $lastMatches = array_slice($allMatches, 0, 8);
$clan = json_decode(file_get_contents($clanInfoPath), true); $clan = json_decode(file_get_contents($clanInfoPath), true);
if (isset($clan) && !empty($clan)) { if (isset($clan) && !empty($clan)) {
echo "<table>"; echo "<table>";
echo "<tr><th>Attribute</th><th>Value</th><th>Rank(FPP SQUAD)</th><th>Subtier</th><th>Points</th></tr>"; echo "<tr><th>Attribute</th><th>Value</th><th>Rank(FPP SQUAD)</th><th>Points</th></tr>";
foreach ($clanmembers['clanMembers'] as $value) { foreach ($clanmembers['clanMembers'] as $value) {
foreach ($playerRanks as $rank) { foreach ($playerRanks as $rank) {
// print_r($value);
//print_r($rank['name']);
//print_r($rank['stat']['data']['attributes']['rankedGameModeStats']['squad-fpp']['currentTier']['tier']);
if ($rank['name'] == $value) { if ($rank['name'] == $value) {
//print_r('test'); $image = "./images/ranks/". $rank['stat']['data']['attributes']['rankedGameModeStats']['squad-fpp']['currentTier']['tier'] + "-" + $rank['stat']['data']['attributes']['rankedGameModeStats']['squad-fpp']['currentTier']['subTier'] . ".png";
//print_r($rank['stat']['data']['attributes']['rankedGameModeStats']['squad-fpp']['currentTier']['tier']);
if (isset($rank['stat']['data']['attributes']['rankedGameModeStats']['squad-fpp'])) { if (isset($rank['stat']['data']['attributes']['rankedGameModeStats']['squad-fpp'])) {
echo "<tr><td><a href='latestmatches.php?selected_player=" . htmlspecialchars($value) . "'>name</a></td><td><a href='latestmatches.php?selected_player=" . htmlspecialchars($value) . "'>" . htmlspecialchars($value) . "</a></td><td>" . htmlspecialchars($rank['stat']['data']['attributes']['rankedGameModeStats']['squad-fpp']['currentTier']['tier']) . "</td><td>" . htmlspecialchars($rank['stat']['data']['attributes']['rankedGameModeStats']['squad-fpp']['currentTier']['subTier']) . "</td><td>" . htmlspecialchars($rank['stat']['data']['attributes']['rankedGameModeStats']['squad-fpp']['currentRankPoint']) . "</td></tr>"; echo "<tr><td><a href='latestmatches.php?selected_player=" . htmlspecialchars($value) . "'>name</a></td><td><a href='latestmatches.php?selected_player=" . htmlspecialchars($value) . "'>" . htmlspecialchars($value) . "</a></td><td><img src='" . $image . "'></td><td>" . htmlspecialchars($rank['stat']['data']['attributes']['rankedGameModeStats']['squad-fpp']['currentRankPoint']) . "</td></tr>";
} else { } else {
//print_r('test2');
echo "<tr><td><a href='latestmatches.php?selected_player=" . htmlspecialchars($value) . "'>name</a></td><td><a href='latestmatches.php?selected_player=" . htmlspecialchars($value) . "'>" . htmlspecialchars($value) . "</a></td><td></td><td></td><td></td></tr>"; echo "<tr><td><a href='latestmatches.php?selected_player=" . htmlspecialchars($value) . "'>name</a></td><td><a href='latestmatches.php?selected_player=" . htmlspecialchars($value) . "'>" . htmlspecialchars($value) . "</a></td><td></td><td></td><td></td></tr>";
} }
} }