diff --git a/config/clanmembers.json b/config/clanmembers.json index 129cecf..9dfb03b 100644 --- a/config/clanmembers.json +++ b/config/clanmembers.json @@ -10,6 +10,7 @@ "SquadKiller101", "Pettie1972", "HeteKip", + "Shepherders", "WackyJacky101" ] } diff --git a/includes/styles.css b/includes/styles.css index a4b3ca0..dfeee63 100644 --- a/includes/styles.css +++ b/includes/styles.css @@ -204,8 +204,8 @@ nav { /* Ensure links stand out */ a { - color: #6699ff; /* Blue color for links */ - text-decoration: underline; /* Underline links for better visibility */ + color: #e69109; /* Blue color for links */ + text-decoration: none; /* Underline links for better visibility */ } /* Specific button styles for .btn class to match the hacker theme */ diff --git a/last_stats.php b/last_stats.php index cf95fba..e632cc9 100644 --- a/last_stats.php +++ b/last_stats.php @@ -100,14 +100,14 @@ error_reporting(E_ALL); echo " $player_name - $winratio - $KD_H - $KD_ALL - $kills - $humankills - $matches - $wins - $deaths + $winratio + $KD_H + $KD_ALL + $kills + $humankills + $matches + $wins + $deaths Change Indicator $change 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 new file mode 100644 index 0000000..065a7fb --- /dev/null +++ b/matchinfo.php @@ -0,0 +1,120 @@ + + + + + + + + + +
+ +
+ +
+
+

Latest Matches

+ + + + + matchTypedurationgameModemapNamecreatedAtid"; + echo ""; + echo "" . htmlspecialchars($matchinfo['matchType']) . ""; + echo "" . htmlspecialchars($matchinfo['duration']) . ""; + echo "" . htmlspecialchars($matchinfo['gameMode']) . ""; + echo "" . htmlspecialchars($matchinfo['mapName']) . ""; + echo "" . htmlspecialchars($matchinfo['createdAt']) . ""; + echo "" . htmlspecialchars($matchdata['id']) . ""; + echo ""; + + echo ""; + + + echo ""; + echo " + + + + + + + + + + + "; + + foreach ($jsonData['included'] as $includedItem) { + if ($includedItem['type'] == "participant") { + $playerStats = $includedItem['attributes']['stats']; + echo ""; + echo ""; + echo ""; + echo ""; + echo ""; + echo ""; + echo ""; + echo ""; + echo ""; + echo ""; + echo ""; + echo ""; + } + } + echo "
Player NameKillsDamage DealtTime SurvivedRankRevivesLongest KillDBNOsHeadshot KillsAssists
" . htmlspecialchars($playerStats['name']) . "" . htmlspecialchars($playerStats['kills']) . "" . htmlspecialchars($playerStats['damageDealt']) . "" . htmlspecialchars($playerStats['timeSurvived']) . "" . htmlspecialchars($playerStats['winPlace']) . "" . htmlspecialchars($playerStats['revives']) . "" . htmlspecialchars($playerStats['longestKill']) . "" . htmlspecialchars($playerStats['DBNOs']) . "" . htmlspecialchars($playerStats['headshotKills']) . "" . htmlspecialchars($playerStats['assists']) . "
"; + + } else { + echo "JSON file not found for the given match ID."; + } + } else { + echo "No match ID provided."; + } + ?> + + + + + +
+
+ + + + + + \ No newline at end of file