From 1124a95eff41d24c31f12c5735278e507feaeef2 Mon Sep 17 00:00:00 2001 From: Thijs Stobbelaar Date: Thu, 16 Nov 2023 16:22:12 +0100 Subject: [PATCH 1/5] CREATEDAD --- index.php | 73 ++++++++++++++++++++++++++++--------------------------- 1 file changed, 37 insertions(+), 36 deletions(-) diff --git a/index.php b/index.php index dcf06f1..a25d688 100644 --- a/index.php +++ b/index.php @@ -27,47 +27,48 @@ $lastMatches = array_slice($allMatches, 0, 8); - + ?>

Latest Matches

- - - - - - - - - - - - - - "Erangel", - "Chimera_Main" => "Paramo", - "Desert_Main" => "Miramar", - "DihorOtok_Main" => "Vikendi", - "Erangel_Main" => "Erangel", - "Heaven_Main" => "Haven", - "Kiki_Main" => "Deston", - "Range_Main" => "Camp Jackal", - "Savage_Main" => "Sanhok", - "Summerland_Main" => "Karakin", - "Tiger_Main" => "Taego" - ); - foreach ($lastMatches as $match) { - $matchid = $match['id']; + + + + + + + + + + - echo " + + "Erangel", + "Chimera_Main" => "Paramo", + "Desert_Main" => "Miramar", + "DihorOtok_Main" => "Vikendi", + "Erangel_Main" => "Erangel", + "Heaven_Main" => "Haven", + "Kiki_Main" => "Deston", + "Range_Main" => "Camp Jackal", + "Savage_Main" => "Sanhok", + "Summerland_Main" => "Karakin", + "Tiger_Main" => "Taego" + ); + + foreach ($lastMatches as $match) { + $matchid = $match['id']; + + echo " + @@ -77,14 +78,14 @@ $lastMatches = array_slice($allMatches, 0, 8); "; - } ?> - + } ?> +
Player NameModeTypeMapKillsDamagePlace
Match DatePlayer NameModeTypeMapKillsDamagePlace
" . $match['createdAt'] . " " . $match['playername'] . " " . $match['gameMode'] . " " . $match['matchType'] . "" . $match['stats']['winPlace'] . "

Clan Info

name" . htmlspecialchars($value) . ""; } foreach ($clan as $key => $value) { - if($key == 'updated'){ + if ($key == 'updated') { continue; } echo "" . htmlspecialchars($key) . "" . htmlspecialchars($value) . ""; -- 2.49.1 From d450f7d7e1b4def6becff1cbfb035d97e7c403c7 Mon Sep 17 00:00:00 2001 From: Thijs Stobbelaar Date: Thu, 16 Nov 2023 16:23:12 +0100 Subject: [PATCH 2/5] CREATEDAD --- index.php | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/index.php b/index.php index a25d688..aaa7ed9 100644 --- a/index.php +++ b/index.php @@ -38,8 +38,8 @@ $lastMatches = array_slice($allMatches, 0, 8); - + @@ -68,8 +68,9 @@ $lastMatches = array_slice($allMatches, 0, 8); $matchid = $match['id']; echo " - + + -- 2.49.1 From 874592e9db373e65cf0bf9afe559d23f57c70cab Mon Sep 17 00:00:00 2001 From: Thijs Stobbelaar Date: Thu, 16 Nov 2023 16:25:16 +0100 Subject: [PATCH 3/5] formatted time and +2 hours --- index.php | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/index.php b/index.php index aaa7ed9..6a722ba 100644 --- a/index.php +++ b/index.php @@ -66,11 +66,13 @@ $lastMatches = array_slice($allMatches, 0, 8); foreach ($lastMatches as $match) { $matchid = $match['id']; - + $date = new DateTime($match['createdAt']); + $date->modify('+2 hours'); + $formattedDate = $date->format('m-d H:i:s'); echo " - + -- 2.49.1 From 036469fce5882b0c02756da897373e256ea77a1a Mon Sep 17 00:00:00 2001 From: Thijs Stobbelaar Date: Thu, 16 Nov 2023 16:27:52 +0100 Subject: [PATCH 4/5] s --- index.php | 2 +- latestmatches.php | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/index.php b/index.php index 6a722ba..6ffa216 100644 --- a/index.php +++ b/index.php @@ -67,7 +67,7 @@ $lastMatches = array_slice($allMatches, 0, 8); foreach ($lastMatches as $match) { $matchid = $match['id']; $date = new DateTime($match['createdAt']); - $date->modify('+2 hours'); + $date->modify('+1 hours'); $formattedDate = $date->format('m-d H:i:s'); echo " diff --git a/latestmatches.php b/latestmatches.php index 0523e4b..f0e9f8a 100644 --- a/latestmatches.php +++ b/latestmatches.php @@ -67,7 +67,7 @@ } $date = new DateTime($match['createdAt']); - $date->modify('+2 hours'); + $date->modify('+1 hours'); $formattedDate = $date->format('m-d H:i:s'); $matchType = $match['matchType']; -- 2.49.1 From f1eda0e7ae6e090e91003d10d979a3ab525fd628 Mon Sep 17 00:00:00 2001 From: Thijs Stobbelaar Date: Thu, 16 Nov 2023 16:28:54 +0100 Subject: [PATCH 5/5] sort --- includes/head.php | 2 -- 1 file changed, 2 deletions(-) diff --git a/includes/head.php b/includes/head.php index 8d30465..e5122ea 100644 --- a/includes/head.php +++ b/includes/head.php @@ -12,7 +12,5 @@ - - -- 2.49.1
Match Date Player NameMatch Date Mode Type Map
" . $match['createdAt'] . "" . $match['playername'] . "" . $match['createdAt'] . " " . $match['gameMode'] . " " . $match['matchType'] . " " . (isset($mapNames[$match['mapName']]) ? $mapNames[$match['mapName']] : $match['mapName']) . "
" . $match['playername'] . "" . $match['createdAt'] . "" . $formattedDate . " " . $match['gameMode'] . " " . $match['matchType'] . " " . (isset($mapNames[$match['mapName']]) ? $mapNames[$match['mapName']] : $match['mapName']) . "