Files
TravianZ/Templates/Alliance/option.tpl
T
Pietro Fallanca 274d89bfa1 Fixed a lot of bugs/security issues in the alliance
+You can no longer kick people of other alliances
+You can no longer change the forum link with no permissions
+You can no longer make more than 3 total confederation and 3 total NAP
+You can no longer send a diplomacy pact to an alliance with already one
pact or one pending pact
+You can no longer handle diplomacy without permissions
+Fixed security bugs related to invites (sending, deleting etc.)
+You can no longer access to any alliance submenus without permissions
(kick menu, diplomacy menu, etc.)
+Errors are now shown correctly and better handling of them
+New forum link and alliance description are shown correctly after
editing them
+You can no longer access to other alliances informations without being
in it (attack reports, news, etc)
+Corrected some alliance news
+Added some language constants to en.php
+Fixed and changed some database.php functions alliance related
2018-04-15 16:11:43 +02:00

84 lines
2.2 KiB
Smarty

<?php
if(!isset($aid)) $aid = $session->alliance;
$allianceinfo = $database->getAlliance($aid);
echo "<h1>".$allianceinfo['tag']." - ".$allianceinfo['name']."</h1>";
include_once("alli_menu.tpl");
?>
<p class="error"><?php echo $form->getError("perm"); ?></p>
<form method="POST" action="allianz.php">
<input type="hidden" name="s" value="5">
<table cellpadding="1" cellspacing="1" id="options" class="small_option">
<thead>
<tr>
<th colspan="2">Options</th>
</tr></thead><tbody>
<?php
if ($alliance->userPermArray['opt1']==1){
?>
<tr>
<td class="sel"><input class="radio" type="radio" name="o" value="1"></td>
<td class="val">Assign to position</td>
</tr>
<?php
}
if ($alliance->userPermArray['opt3']==1){
?>
<tr>
<td class="sel"><input class="radio" type="radio" name="o" value="100"></td>
<td class="val">Change name</td>
</tr>
<?php
}
if ($alliance->userPermArray['opt2']==1){
?>
<tr>
<td class="sel"><input class="radio" type="radio" name="o" value="2"></td>
<td class="val">Kick player</td>
</tr>
<?php
}
if ($alliance->userPermArray['opt3']==1){
?>
<tr>
<td class="sel"><input class="radio" type="radio" name="o" value="3"></td>
<td class="val">Change alliance description</td>
</tr>
<?php
}
if ($alliance->userPermArray['opt6']==1){
?>
<tr>
<td class="sel"><input class="radio" type="radio" name="o" value="6"></td>
<td class="val">Alliance diplomacy</td>
</tr>
<?php
}
if ($alliance->userPermArray['opt4']==1){
?>
<tr>
<td class="sel"><input class="radio" type="radio" name="o" value="4"></td>
<td class="val">Invite a player into the alliance</td>
</tr>
<?php
}
if ($alliance->userPermArray['opt5']==1){
?>
<tr>
<td class="sel"><input class="radio" type="radio" name="o" value="5"></td>
<td class="val">Link to the forum</td>
</tr>
<?php
}
?>
<tr>
<td class="sel"><input class="radio" type="radio" name="o" value="11"></td>
<td class="val">Quit alliance</td>
</tr>
</tbody>
</table>
<p><input type="image" value="ok" name="s1" id="btn_ok" class="dynamic_img" src="img/x.gif" alt="OK" onclick="this.disabled=true;this.form.submit();"/></p></form>