alliance; } // load alliance data $varmedal = $database->getProfileMedalAlly($aid); $allianceinfo = $database->getAlliance($aid); $memberlist = $database->getAllMember($aid); // build member id list (for population query) $memberIDs = []; if (!empty($memberlist)) { foreach ($memberlist as $member) { $memberIDs[] = (int)$member['id']; } } // total population calculation (safe fallback) $totalpop = 0; $data = []; if (!empty($memberIDs)) { $data = $database->getVSumField($memberIDs, "pop"); } if (!empty($data)) { foreach ($data as $row) { $totalpop += (int)$row['Total']; } } // alliance title output (escaped) echo "

" . htmlspecialchars($allianceinfo['tag'], ENT_QUOTES, 'UTF-8') . " - " . htmlspecialchars($allianceinfo['name'], ENT_QUOTES, 'UTF-8') . "

"; // menu include include("alli_menu.tpl"); ?>
Alliance
Details Description
Tag
Name
Rank getAllianceRank($aid); ?>.
Points
Members

"; } } ?>
Medals
Category Rank Week BB-Code
" . htmlspecialchars($titel, ENT_QUOTES, 'UTF-8') . " " . (int)$medal['plaats'] . " " . (int)$medal['week'] . " [#" . (int)$medal['id'] . "]