From e397017e0cb793bbceff3cac741a5cd392ae3056 Mon Sep 17 00:00:00 2001 From: Thijs Stobbelaar Date: Thu, 16 Nov 2023 13:46:42 +0100 Subject: [PATCH] clanmember page --- clan_stats.php | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/clan_stats.php b/clan_stats.php index 15729b3..2299d13 100644 --- a/clan_stats.php +++ b/clan_stats.php @@ -21,6 +21,8 @@ error_reporting(E_ALL); // Load clan data from claninfo.json $clanInfoPath = './data/claninfo.json'; + $clanmembersfile = './config/clanmembers.json'; + $clanmembers = json_decode(file_get_contents($clanmembersfile), true); if (file_exists($clanInfoPath)) { $clan = json_decode(file_get_contents($clanInfoPath), true); if (isset($clan) && !empty($clan)) { @@ -29,6 +31,10 @@ error_reporting(E_ALL); foreach ($clan as $key => $value) { echo "" . htmlspecialchars($key) . "" . htmlspecialchars($value) . ""; } + foreach ($clanmembers as $value) { + echo "name" . htmlspecialchars($value) . ""; + } + echo ""; } else { echo "

No clan attributes available

";