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 @@ - - diff --git a/index.php b/index.php index dcf06f1..6ffa216 100644 --- a/index.php +++ b/index.php @@ -27,48 +27,52 @@ $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']; + $date = new DateTime($match['createdAt']); + $date->modify('+1 hours'); + $formattedDate = $date->format('m-d H:i:s'); + echo " + + @@ -77,14 +81,14 @@ $lastMatches = array_slice($allMatches, 0, 8); "; - } ?> - + } ?> +
Player NameModeTypeMapKillsDamagePlace
Player NameMatch DateModeTypeMapKillsDamagePlace
" . $match['playername'] . "" . $formattedDate . " " . $match['gameMode'] . " " . $match['matchType'] . " " . (isset($mapNames[$match['mapName']]) ? $mapNames[$match['mapName']] : $match['mapName']) . "" . $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) . ""; 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'];