alliance; $varmedal = $database->getProfileMedalAlly($aid); $allianceinfo = $database->getAlliance($aid); $memberlist = $database->getAllMember($aid); $totalpop = 0; if($allianceinfo['tag']==""){ header("Location: allianz.php"); exit; } $memberIDs = []; foreach($memberlist as $member) { $memberIDs[] = $member['id']; } $data = $database->getVSumField($memberIDs,"pop"); if (count($data)) { foreach ($data as $row) { $totalpop += $row['Total']; } } echo "
| Alliance | ||||||||||||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| Details | Description | |||||||||||||||||||||
|
||||||||||||||||||||||
| Player | Population | Villages | alliance){ echo ""; } ?> | |||||
|---|---|---|---|---|---|---|---|---|
| ".$rank.". | "; echo "".$member['username']." | "; echo "".$TotalUserPop." | "; echo "".count($TotalVillages)." | "; if($aid == $session->alliance){ if ((time()-600) < $member['timestamp']){ // 0 Min - 10 Min echo "![]() | ";
}elseif ((time()-86400) < $member['timestamp'] && (time()-600) > $member['timestamp']){ // 10 Min - 1 Days
echo " ![]() | ";
}elseif ((time()-259200) < $member['timestamp'] && (time()-86400) > $member['timestamp']){ // 1-3 Days
echo " ![]() | ";
}elseif ((time()-604800) < $member['timestamp'] && (time()-259200) > $member['timestamp']){
echo " ![]() | ";
}else{
echo " ![]() | ";
}
}
echo "