mirror of
https://github.com/Shadowss/TravianZ.git
synced 2026-07-08 21:56:09 +00:00
274d89bfa1
+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
44 lines
1.4 KiB
Smarty
44 lines
1.4 KiB
Smarty
<?php
|
|
if(!isset($aid)) $aid = $session->alliance;
|
|
|
|
$memberlist = $database->getAllMember($aid);
|
|
$allianceinfo = $database->getAlliance($aid);
|
|
|
|
echo "<h1>".$allianceinfo['tag']." - ".$allianceinfo['name']."</h1>";
|
|
include("alli_menu.tpl");
|
|
?>
|
|
<form method="post" action="allianz.php">
|
|
<table cellpadding="1" cellspacing="1" id="position" class="small_option">
|
|
<thead>
|
|
<tr>
|
|
<th colspan="2">Kick Player:</th>
|
|
</tr>
|
|
</thead>
|
|
<tbody>
|
|
<tr>
|
|
<th colspan="2">Here you can kick the players from your alliance.</th>
|
|
</tr>
|
|
<tr>
|
|
<th>Name</th>
|
|
<td>
|
|
<select name="a_user" class="name dropdown">
|
|
<?php
|
|
foreach($memberlist as $member) {
|
|
if ($member['id'] != $session->uid) {
|
|
echo "<option value=".$member['id'].">".$member['username']."</option>";
|
|
}
|
|
}
|
|
?>
|
|
</select>
|
|
</td>
|
|
</tr>
|
|
</tbody>
|
|
</table>
|
|
<p>
|
|
<input type="hidden" name="o" value="2">
|
|
<input type="hidden" name="s" value="5">
|
|
<input type="hidden" name="a" value="2">
|
|
<input type="image" value="ok" name="s1" id="btn_ok" class="dynamic_img" src="img/x.gif" alt="OK" />
|
|
</p>
|
|
</form>
|
|
<p class="error"><?php echo $form->getError("perm"); ?></p> |