From 0287f40a29ac793c5808e5c81f8c56498a30f614 Mon Sep 17 00:00:00 2001 From: Lanta Date: Wed, 15 Nov 2023 11:31:20 +0100 Subject: [PATCH 1/6] clickable index --- index.php | 26 ++++++++++++-------------- 1 file changed, 12 insertions(+), 14 deletions(-) diff --git a/index.php b/index.php index cf672b0..790faa9 100644 --- a/index.php +++ b/index.php @@ -66,20 +66,18 @@ $lastMatches = array_slice($allMatches, 0, 8); ); foreach($lastMatches as $match) { - ?> - - - - - - - - - - - + $matchid = $match['id']; + echo " + " . $match['playername'] . " + " . $match['gameMode'] . " + " . $match['matchType'] . " + " . isset($mapNames[$match['mapName']]) ? $mapNames[$match['mapName']] : $match['mapName'] . " + " . $match['stats']['kills'] . " + " . number_format($match['stats']['damageDealt'], 0, '.', '') . " + " . $match['stats']['winPlace'] . " + + "; + } ?> From 82d191a1118b5439034344764f1ea965ffa8d1f1 Mon Sep 17 00:00:00 2001 From: Lanta Date: Wed, 15 Nov 2023 11:33:30 +0100 Subject: [PATCH 2/6] s --- index.php | 1 + 1 file changed, 1 insertion(+) diff --git a/index.php b/index.php index 790faa9..3194de8 100644 --- a/index.php +++ b/index.php @@ -67,6 +67,7 @@ $lastMatches = array_slice($allMatches, 0, 8); foreach($lastMatches as $match) { $matchid = $match['id']; + print_r($match); echo " " . $match['playername'] . " " . $match['gameMode'] . " From 0d79132b2f1a2e8fe734edf5d901024e85af2536 Mon Sep 17 00:00:00 2001 From: Lanta Date: Wed, 15 Nov 2023 11:35:37 +0100 Subject: [PATCH 3/6] s --- index.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/index.php b/index.php index 3194de8..efa33dc 100644 --- a/index.php +++ b/index.php @@ -67,12 +67,12 @@ $lastMatches = array_slice($allMatches, 0, 8); foreach($lastMatches as $match) { $matchid = $match['id']; - print_r($match); + echo " " . $match['playername'] . " " . $match['gameMode'] . " " . $match['matchType'] . " - " . isset($mapNames[$match['mapName']]) ? $mapNames[$match['mapName']] : $match['mapName'] . " + " . $match['stats']['kills'] . " " . number_format($match['stats']['damageDealt'], 0, '.', '') . " " . $match['stats']['winPlace'] . " From 7f79d082a95094901333bb551df5499b48dc5d4e Mon Sep 17 00:00:00 2001 From: Lanta Date: Wed, 15 Nov 2023 11:37:00 +0100 Subject: [PATCH 4/6] haakjes --- index.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/index.php b/index.php index efa33dc..7be9c09 100644 --- a/index.php +++ b/index.php @@ -72,7 +72,7 @@ $lastMatches = array_slice($allMatches, 0, 8); " . $match['playername'] . " " . $match['gameMode'] . " " . $match['matchType'] . " - + " . (isset($mapNames[$match['mapName']]) ? $mapNames[$match['mapName']] : $match['mapName']) . " " . $match['stats']['kills'] . " " . number_format($match['stats']['damageDealt'], 0, '.', '') . " " . $match['stats']['winPlace'] . " From 7acb7fcd4f5572a32531d9f6b7edf700e83a48b0 Mon Sep 17 00:00:00 2001 From: Lanta Date: Wed, 15 Nov 2023 11:38:47 +0100 Subject: [PATCH 5/6] matchinfo --- index.php | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/index.php b/index.php index 7be9c09..9a2c710 100644 --- a/index.php +++ b/index.php @@ -69,13 +69,13 @@ $lastMatches = array_slice($allMatches, 0, 8); $matchid = $match['id']; echo " - " . $match['playername'] . " - " . $match['gameMode'] . " - " . $match['matchType'] . " - " . (isset($mapNames[$match['mapName']]) ? $mapNames[$match['mapName']] : $match['mapName']) . " - " . $match['stats']['kills'] . " - " . number_format($match['stats']['damageDealt'], 0, '.', '') . " - " . $match['stats']['winPlace'] . " + " . $match['playername'] . " + " . $match['gameMode'] . " + " . $match['matchType'] . " + " . (isset($mapNames[$match['mapName']]) ? $mapNames[$match['mapName']] : $match['mapName']) . " + " . $match['stats']['kills'] . " + " . number_format($match['stats']['damageDealt'], 0, '.', '') . " + " . $match['stats']['winPlace'] . " "; } ?> From ea84e85ae76f97957317c0a10cfad30fa7d273d8 Mon Sep 17 00:00:00 2001 From: Lanta Date: Wed, 15 Nov 2023 11:39:42 +0100 Subject: [PATCH 6/6] matchid --- index.php | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/index.php b/index.php index 9a2c710..feb0a15 100644 --- a/index.php +++ b/index.php @@ -69,13 +69,13 @@ $lastMatches = array_slice($allMatches, 0, 8); $matchid = $match['id']; echo " - " . $match['playername'] . " - " . $match['gameMode'] . " - " . $match['matchType'] . " - " . (isset($mapNames[$match['mapName']]) ? $mapNames[$match['mapName']] : $match['mapName']) . " - " . $match['stats']['kills'] . " - " . number_format($match['stats']['damageDealt'], 0, '.', '') . " - " . $match['stats']['winPlace'] . " + " . $match['playername'] . " + " . $match['gameMode'] . " + " . $match['matchType'] . " + " . (isset($mapNames[$match['mapName']]) ? $mapNames[$match['mapName']] : $match['mapName']) . " + " . $match['stats']['kills'] . " + " . number_format($match['stats']['damageDealt'], 0, '.', '') . " + " . $match['stats']['winPlace'] . " "; } ?>