|
| This script is property of TravianX Project. You are allowed to change
| its source and release it, but you have no rights to remove copyright
| notices.
|
| TravianX All rights reserved
|
*/
if(isset($aid)) {
$aid = $aid;
} else {
$aid = $session->alliance;
}
$allianceinfo = $database->getAlliance($aid);
echo "
".$allianceinfo['tag']." - ".$allianceinfo['name']."
";
include("alli_menu.tpl");
?>
| Own offers |
alliance;
if(count($database->diplomacyOwnOffers($alliance))){
foreach($database->diplomacyOwnOffers($alliance) as $key => $value){
if($value['type'] == 1){
$type = "Conf.";
} else if($value['type'] == 2){
$type = "Nap";
} else if($value['type'] == 3){
$type = "War";
}
echo '
| '.$database->getAllianceName($value['alli2']).' | '.$type.' |
';
}
} else {
echo '| none |
';
}
?>
| Tip |
| If you want to see connections in the alliance description automatically, type [diplomatie] into the description, [ally], [nap] and [war] are also possible. |
| Foreign offers |
alliance;
if(count($database->diplomacyInviteCheck($alliance))){
foreach($database->diplomacyInviteCheck($alliance) as $key => $row){
if($row['type'] == 1){
$type = "Conf.";
} else if($row['type'] == 2){
$type = "Nap";
} else if($row['type'] == 3){
$type = "War";
}
echo ' | '.$database->getAllianceName($row['alli1']).' | '.$type.' |
';
}
} else {
echo '| none |
';
}
?>
| Existing relationships |
alliance;
if(count($database->diplomacyExistingRelationships($alliance))){
foreach($database->diplomacyExistingRelationships($alliance) as $key => $row){
if($row['type'] == 1){
$type = "Conf.";
} else if($row['type'] == 2){
$type = "Nap";
} else if($row['type'] == 3){
$type = "War";
}
echo ' | '.$database->getAllianceName($row['alli1']).' | '.$type.' |
';
}
} elseif(count($database->diplomacyExistingRelationships2($alliance))){
foreach($database->diplomacyExistingRelationships2($alliance) as $key => $row){
if($row['type'] == 1){
$type = "Conf.";
} else if($row['type'] == 2){
$type = "Nap";
} else if($row['type'] == 3){
$type = "War";
}
echo ' | '.$database->getAllianceName($row['alli2']).' | '.$type.' |
';
}
}else {
echo '| none |
';
}
?>