From abc2ebaded46768a0533ac488b1f07cffcacdf6c Mon Sep 17 00:00:00 2001 From: Lanta Date: Tue, 14 Nov 2023 22:27:01 +0100 Subject: [PATCH] matchinfo --- latestmatches.php | 40 ++++++++++++++++++++++++++-------------- matchinfo.php | 2 +- 2 files changed, 27 insertions(+), 15 deletions(-) diff --git a/latestmatches.php b/latestmatches.php index c2e6524..bc80c0a 100644 --- a/latestmatches.php +++ b/latestmatches.php @@ -7,16 +7,17 @@ error_reporting(E_ALL); + - -
- + +
+
-
-
-

Match Stats

- +
+

Match Stats

+ $player_name"; } } - + echo "
"; $selected_player = $_GET['selected_player'] ?? $players_matches[0]['playername']; @@ -64,17 +65,28 @@ error_reporting(E_ALL); $damage = number_format($match['stats']['damageDealt'], 0, '.', ''); $timeSurvived = $match['stats']['timeSurvived']; $winPlace = $match['stats']['winPlace']; - echo "$formattedDate$gameMode$matchType$mapName$kills$damage$timeSurvived$winPlace"; + echo " + " . $formattedDate . " + " . $gameMode . " + " . $matchType . " + " . $mapName . " + " . $kills . " + " . $damage . " + " . $timeSurvived . " + " . $winPlace . " + "; + } echo "
"; } } - ?> -
-
+ ?> + + - + - + + \ No newline at end of file diff --git a/matchinfo.php b/matchinfo.php index bff0724..4748e22 100644 --- a/matchinfo.php +++ b/matchinfo.php @@ -59,7 +59,7 @@ $lastMatches = array_slice($allMatches, 0, 8); echo "" . htmlspecialchars($matchinfo['gameMode']) . ""; echo "" . htmlspecialchars($matchinfo['mapName']) . ""; echo "" . htmlspecialchars($matchinfo['createdAt']) . ""; - echo "" . htmlspecialchars($$matchdata['id']) . ""; + echo "" . htmlspecialchars($matchdata['id']) . ""; echo ""; echo "";