Updated alliances page, fixed SQL injections (hoegarden)

Fided minor bugs

Signed-off-by: Gregory PLANCHAT <g.planchat@gmail.com>
This commit is contained in:
Gregory PLANCHAT 2011-09-15 09:08:32 +02:00
commit be8c6a6629
14 changed files with 1317 additions and 1215 deletions

View file

@ -24,11 +24,12 @@
<input type="hidden" name="t" value="<?php echo $this->getData('t')?>">
<table width=519>
<tr>
<td class="c" colspan=2><?php echo $this->getData('Texts')?></td>
<td class="c" colspan=3><?php echo $this->getData('Texts')?></td>
</tr>
<tr>
<th><a href="?mode=admin&edit=ally&t=1"><?php echo $this->getData('External_text')?></a></th>
<th><a href="?mode=admin&edit=ally&t=2"><?php echo $this->getData('Internal_text')?></a></th>
<th><a href="?mode=admin&edit=ally&t=3"><?php echo $this->getData('Request_text')?></a></th>
</tr>
<tr>
<td class=c colspan=3><?php echo $this->getData('Show_of_request_text')?> (<span id="cntChars">0</span> / 5000 <?php echo $this->getData('characters')?>)</td>

View file

@ -1,27 +1,27 @@
<script src="scripts/cntchar.js" type="text/javascript"></script>
<br>
<form action="alliance.php?mode=admin&edit=requests&show=<?php echo $this->getData('id')?>&sort=0" method="POST">
<tr>
<th colspan=2><?php echo $this->getData('Request_from')?></th>
</tr>
<tr>
<th colspan=2><?php echo $this->getData('ally_request_text')?></th>
</tr>
<tr>
<td class="c" colspan=2><?php echo $this->getData('Request_responde')?></td>
</tr>
<tr>
<th>&#160;</th>
<th><input type="submit" name="action" value="Accepter"></th>
</tr>
<tr>
<th><?php echo $this->getData('Motive_optional')?> <span id="cntChars">0</span> / 500 <?php echo $this->getData('characters')?></th>
<th><textarea name="text" cols=40 rows=10 onkeyup="javascript:cntchar(500)"></textarea></th>
</tr>
<tr>
<th>&#160;</th>
<th><input type="submit" name="action" value="Refuser"></th>
</tr>
<tr>
<td colspan=2>&#160;</td>
</tr>
</form>
<tr>
<th colspan=2><?php echo $this->getData('Request_from')?></th>
</tr>
<tr>
<th colspan=2><?php echo $this->getData('ally_request_text')?></th>
</tr>
<tr>
<td class="c" colspan=2><?php echo $this->getData('Request_responde')?></td>
</tr>
<form action="alliance.php?mode=admin&edit=requests&show=<?php echo $this->getData('id')?>&sort=0" method="POST">
<tr>
<th><?php echo $this->getData('Motive_optional')?> (<span id="cntChars">0</span> / 500 <?php echo $this->getData('characters')?>)</th>
<th><textarea name="text" cols=40 rows=10 onkeyup="javascript:cntchar(500)"><?php echo $this->getData('text_apply')?></textarea></th>
</tr>
<tr>
<th>&#160;</th>
<th><input type="submit" name="action" value="Accepter">
<input type="submit" name="action" value="Refuser">
</th>
</tr>
</form>
<tr>
<td colspan=2>&#160;</td>
</tr>

View file

@ -1,3 +1,4 @@
<script src="scripts/cntchar.js" type="text/javascript"></script>
<br>
<h1><?php echo $this->getData('Send_Apply')?></h1>