mirror of
https://github.com/Shadowss/TravianZ.git
synced 2026-09-03 08:57:17 +00:00
Fixed some bugs in the alliance
+Fixed a bug that permitted to create an alliance while already being in an alliance +Fixed a bug that permitted to create an alliance with an embassy of level 3 or lower (or even without an embassy) +Fixed a bug that permitted to set the max numbers of players during the creation of an alliance, by hacking the building id passed in a post request +Fixed some redirect issues
This commit is contained in:
@@ -22,7 +22,7 @@ echo "
|
||||
<tr>
|
||||
<th>".NAME."</th>
|
||||
<td>".$alliance->allianceArray['name']."</td>
|
||||
|
||||
<span class=\"error\">".$form->getError("ally3")."</span>
|
||||
</tr>
|
||||
<tr>
|
||||
<td class=\"empty\" colspan=\"2\"></td>
|
||||
@@ -36,7 +36,6 @@ echo "
|
||||
?>
|
||||
<table cellpadding="1" cellspacing="1" id="join">
|
||||
<form method="post" action="build.php">
|
||||
<input type="hidden" name="id" value="<?php echo $id ?>">
|
||||
<input type="hidden" name="a" value="2">
|
||||
|
||||
<thead><tr>
|
||||
@@ -56,6 +55,7 @@ echo "
|
||||
}
|
||||
?>
|
||||
</tr></tbody></table>
|
||||
<p class="error"><?php echo $form->getError("ally4"); ?></p>
|
||||
<?php
|
||||
if($alliance->gotInvite) {
|
||||
echo "<p class=\"error2\" style=\"color: #DD0000\">".$form->getError("ally_accept")."</p>";
|
||||
|
||||
Reference in New Issue
Block a user