From 3bc5e1936c94ffd323eecdb9b3076e7d8d6a5788 Mon Sep 17 00:00:00 2001 From: Thijs Stobbelaar 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'] . " + + "; + } ?> -- 2.49.1 From cfb329465c4edf5699b1866c0b3cefe1f953c66f Mon Sep 17 00:00:00 2001 From: Thijs Stobbelaar 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'] . " -- 2.49.1 From af2701b519f75cc9aa66757b19ae110b9ea2795f Mon Sep 17 00:00:00 2001 From: Thijs Stobbelaar 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'] . " -- 2.49.1 From 0e6fa91650da2188d3ef2c804b9236a704f916cb Mon Sep 17 00:00:00 2001 From: Thijs Stobbelaar 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'] . " -- 2.49.1 From bbbfdd06098ac6493e6caa3dbd7a6427c3fa7699 Mon Sep 17 00:00:00 2001 From: Thijs Stobbelaar 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'] . " "; } ?> -- 2.49.1 From 0ba5c06d96dd2a9639191a3040594e8c70855f76 Mon Sep 17 00:00:00 2001 From: Thijs Stobbelaar 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'] . " "; } ?> -- 2.49.1