From 7a25adb61f17985ed0dfc54bbd4b71c0b86c5a3f Mon Sep 17 00:00:00 2001 From: Lanta Date: Mon, 11 Dec 2023 13:49:58 +0100 Subject: [PATCH] Desert_Main --- discord/report_new_matches.ps1 | 1 + includes/mapsmap.php | 18 ++++++++++++++++++ index.php | 15 ++------------- latestmatches.php | 14 +------------- matchinfo.php | 18 +++--------------- 5 files changed, 25 insertions(+), 41 deletions(-) create mode 100644 includes/mapsmap.php diff --git a/discord/report_new_matches.ps1 b/discord/report_new_matches.ps1 index 11cb8a9..2441836 100644 --- a/discord/report_new_matches.ps1 +++ b/discord/report_new_matches.ps1 @@ -60,6 +60,7 @@ $map_map = @{ "Savage_Main" = "Sanhok" "Summerland_Main" = "Karakin" "Tiger_Main" = "Taego" + "Neon_Main" = "Rondo" } try { diff --git a/includes/mapsmap.php b/includes/mapsmap.php new file mode 100644 index 0000000..83070e0 --- /dev/null +++ b/includes/mapsmap.php @@ -0,0 +1,18 @@ + "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", + "Neon_Main" => "Rondo" +); + +?> \ No newline at end of file diff --git a/index.php b/index.php index 7af0d74..a782c58 100644 --- a/index.php +++ b/index.php @@ -52,19 +52,8 @@ $lastMatches = array_slice($allMatches, 0, 8); "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" - ); + include './includes/mapsmap.php'; + foreach ($lastMatches as $match) { $matchid = $match['id']; diff --git a/latestmatches.php b/latestmatches.php index e536f49..ce5d3f9 100644 --- a/latestmatches.php +++ b/latestmatches.php @@ -44,19 +44,7 @@ $ogDescription = "Dive into the detailed match stats of DTCH Clan in PUBG. Explo - $mapNames = array( - "Baltic_Main" => "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" - ); + include './includes/mapsmap.php'; // Display the player's match stats echo "

Recent Matches for $selected_player

"; echo ""; diff --git a/matchinfo.php b/matchinfo.php index f5699c9..43e5f64 100644 --- a/matchinfo.php +++ b/matchinfo.php @@ -32,10 +32,10 @@ $lastMatches = array_slice($allMatches, 0, 8); - + ?>
@@ -47,19 +47,7 @@ $lastMatches = array_slice($allMatches, 0, 8); "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" - ); + include './includes/mapsmap.php'; // Check if a match ID is provided in the GET request if (isset($_GET['matchid'])) { $matchId = $_GET['matchid'];