getAlliance($_GET['aid']);
$aliusers = $database->getAllMember($_GET['aid']);
if($alidata and $aliusers)
{
foreach($aliusers as $member)
{
$totalpop += $database->getVSumField($member['id'],"pop");
} ?>
| Alliance | |||||||||||||||||||||||||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| Details | Description | ||||||||||||||||||||||||||||||||||
|
|
||||||||||||||||||||||||||||||||||
| Player | Population | Villages | ||||||
|---|---|---|---|---|---|---|---|---|
| ".$rank.". | "; echo "".$user['username']." | "; echo "".$TotalUserPop." | "; echo "".count($TotalVillages)." | "; if($aid == $session->alliance) { if ((time()-600) < $user['timestamp']) { // 0 Min - 10 Min echo "![]() | ";
}
elseif ((time()-86400) < $user['timestamp'] && (time()-600) > $user['timestamp'])
{
// 10 Min - 1 Days
echo "![]() | ";
}
elseif ((time()-259200) < $user['timestamp'] && (time()-86400) > $user['timestamp'])
{
// 1-3 Days
echo "![]() | ";
}
elseif ((time()-604800) < $user['timestamp'] && (time()-259200) > $user['timestamp'])
{
echo "![]() | ";
}
else
{
echo "![]() | ";
}
}
echo "
| Alliance News | ||
|---|---|---|
| Event | Time | '.$row['comment'].' | '.date('d:m:Y H:i', $row['date']).' | '; } ?>
| Alliance Diplomacy Sent | ||
|---|---|---|
| Recipient Alliance | Type | Accepted |
| '.$ally['tag'].' | '.$type.' | '.$accepted.' |
| Alliance Diplomacy Recieved | ||
|---|---|---|
| From Alliance | Type | Accepted |
| '.$ally['tag'].' | '.$type.' | '.$accepted.' |
| Alliance Relationships | ||
|---|---|---|
| Alliance | Type | |
| '.$ally1['tag'].' & '.$ally2['tag'].' | '.$type.' | ![]() |