Merge pull request #167 from OpzekerIT/dev

NeonMain
This commit is contained in:
Lanta 2023-12-11 13:50:59 +01:00 committed by GitHub
commit 12ebdb2622
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
5 changed files with 25 additions and 41 deletions

View file

@ -60,6 +60,7 @@ $map_map = @{
"Savage_Main" = "Sanhok" "Savage_Main" = "Sanhok"
"Summerland_Main" = "Karakin" "Summerland_Main" = "Karakin"
"Tiger_Main" = "Taego" "Tiger_Main" = "Taego"
"Neon_Main" = "Rondo"
} }
try { try {

18
includes/mapsmap.php Normal file
View file

@ -0,0 +1,18 @@
<?php
$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",
"Neon_Main" => "Rondo"
);
?>

View file

@ -52,19 +52,8 @@ $lastMatches = array_slice($allMatches, 0, 8);
<?php <?php
$mapNames = array( include './includes/mapsmap.php';
"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"
);
foreach ($lastMatches as $match) { foreach ($lastMatches as $match) {
$matchid = $match['id']; $matchid = $match['id'];

View file

@ -44,19 +44,7 @@ $ogDescription = "Dive into the detailed match stats of DTCH Clan in PUBG. Explo
$mapNames = array( include './includes/mapsmap.php';
"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"
);
// Display the player's match stats // Display the player's match stats
echo "<h2>Recent Matches for $selected_player</h2>"; echo "<h2>Recent Matches for $selected_player</h2>";
echo "<table border='1' class='sortable'>"; echo "<table border='1' class='sortable'>";

View file

@ -35,7 +35,7 @@ $lastMatches = array_slice($allMatches, 0, 8);
<?php <?php
include './includes/navigation.php'; include './includes/navigation.php';
include './includes/header.php'; include './includes/header.php';
?> ?>
<main> <main>
@ -47,19 +47,7 @@ $lastMatches = array_slice($allMatches, 0, 8);
<?php <?php
$mapNames = array( include './includes/mapsmap.php';
"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"
);
// Check if a match ID is provided in the GET request // Check if a match ID is provided in the GET request
if (isset($_GET['matchid'])) { if (isset($_GET['matchid'])) {
$matchId = $_GET['matchid']; $matchId = $_GET['matchid'];