mirror of
https://github.com/Shadowss/TravianZ.git
synced 2026-07-24 21:46:11 +00:00
some fixes for admin panel
This commit is contained in:
@@ -21,10 +21,10 @@
|
||||
<tr class="slr3">
|
||||
<td>
|
||||
<select name="p" size="1" class="slr3">
|
||||
<option value="player" <?php if($_POST['p']=='player'){echo "selected";}?>>Search Player</option>
|
||||
<option value="player" <?php if($_POST['p']=='player'){echo "selected";}?>>Search Players</option>
|
||||
<option value="alliances" <?php if($_POST['p']=='alliances'){echo "selected";}?>>Search Alliances</option>
|
||||
<option value="villages" <?php if($_POST['p']=='villages'){echo "selected";}?>>Search Villages</option>
|
||||
<option value="email" <?php if($_POST['p']=='email'){echo "selected";}?>>Search E-mail</option>
|
||||
<option value="email" <?php if($_POST['p']=='email'){echo "selected";}?>>Search E-mails</option>
|
||||
<option value="ip" <?php if($_POST['p']=='ip'){echo "selected";}?>>Search IPs</option>
|
||||
<option value="deleted_players" <?php if($_POST['p']=='deleted_players'){echo "selected";}?>>Search Deleted Players</option>
|
||||
</select>
|
||||
|
||||
@@ -0,0 +1,69 @@
|
||||
<?php
|
||||
#################################################################################
|
||||
## -= YOU MAY NOT REMOVE OR CHANGE THIS NOTICE =- ##
|
||||
## --------------------------------------------------------------------------- ##
|
||||
## Filename gold.tpl ##
|
||||
## Developed by: aggenkeech ##
|
||||
## License: TravianX Project ##
|
||||
## Copyright: TravianX (c) 2010-2012. All rights reserved. ##
|
||||
## ##
|
||||
#################################################################################
|
||||
|
||||
if($_SESSION['access'] < ADMIN) die("Access Denied: You are not Admin!");
|
||||
$id = $_SESSION['id']; ?>
|
||||
|
||||
<form action="../GameEngine/Admin/Mods/gold_1.php" method="POST">
|
||||
<input type="hidden" name="admid" id="admid" value="<?php echo $_SESSION['id']; ?>">
|
||||
<table id="member" style="width:300px;">
|
||||
<thead>
|
||||
<tr>
|
||||
<th colspan="2">Give Free gold for specific user</th>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>Amount</td>
|
||||
<td></td>
|
||||
</tr>
|
||||
</thead>
|
||||
<tbody>
|
||||
<tr>
|
||||
<td>
|
||||
<center>
|
||||
<b>How much gold?</b>
|
||||
</center>
|
||||
</td>
|
||||
<td>
|
||||
<center>
|
||||
<input class="give_gold" name="gold" value="20" maxlength="4">
|
||||
<img src="../img/admin/gold.gif" class="gold" alt="Gold" name="gold" title="Gold"/>
|
||||
</center>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>
|
||||
<center>
|
||||
<b>For which user (id)?</b>
|
||||
</center>
|
||||
</td>
|
||||
<td>
|
||||
<center>
|
||||
<input class="give_gold" name="id" value="">
|
||||
</center>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td colspan="2">
|
||||
<center>
|
||||
<input type="image" src="../img/admin/b/ok1.gif" value="submit" title="Give Players Free Gold">
|
||||
</center>
|
||||
</td>
|
||||
</tr>
|
||||
</tbody>
|
||||
</table>
|
||||
</form>
|
||||
|
||||
<?php
|
||||
if(isset($_GET['g']))
|
||||
{
|
||||
echo '<br /><br /><font color="Red"><b>Gold Added</font></b>';
|
||||
}
|
||||
?>
|
||||
@@ -25,6 +25,7 @@
|
||||
<td>Name</td>
|
||||
<td>Population</td>
|
||||
<td>Coordinates</td>
|
||||
<td>Add Troops</td>
|
||||
<td></td>
|
||||
</tr>
|
||||
<?php
|
||||
@@ -41,12 +42,13 @@ $delLink = '<a href="?action=delVil&did='.$varray[$i]['wref'].'" onClick="return
|
||||
$delLink = '<a href="#"><img src="../img/Admin/del_g.gif" class="del"></a>';
|
||||
}
|
||||
}
|
||||
|
||||
$addTroops = '<a href="?p=addTroops&did='.$varray[$i]['wref'].'"> Edit Troops</a>';
|
||||
echo '
|
||||
<tr>
|
||||
<td><a href="?p=village&did='.$varray[$i]['wref'].'">'.$varray[$i]['name'].'</a> '.$capital.'</td>
|
||||
<td>'.$varray[$i]['pop'].' <a href="?action=recountPop&did='.$varray[$i]['wref'].'">Recount<a/></td>
|
||||
<td>('.$coorproc['x'].'|'.$coorproc['y'].')</td>
|
||||
<td>'.$addTroops.' </td>
|
||||
<td>'.$delLink.' </td>
|
||||
</tr>
|
||||
';
|
||||
|
||||
+3
-1
@@ -100,7 +100,8 @@ $timeformat = new timeFormatGenerator;
|
||||
<a href="?p=online">Online Users</a>
|
||||
<a href="?p=notregistered">Players Not Activated</a>
|
||||
<br />
|
||||
<a href="?p=search"><b>Search</b></a>
|
||||
<a href="#"><b>Search</b></a>
|
||||
<a href="?p=search">Search Players/Alliances/Villages/E-mails/IPs/Deleted Players</a>
|
||||
<a href="?p=message">Search Messages/Battle Reports</a>
|
||||
<br />
|
||||
<a href="#"><b>Ban</b></a>
|
||||
@@ -109,6 +110,7 @@ $timeformat = new timeFormatGenerator;
|
||||
<br />
|
||||
<a href="#"><b>Gold</b></a>
|
||||
<a href="?p=gold">Give All Free Gold</a>
|
||||
<a href="?p=usergold">Give Free Gold To Specific User</a>
|
||||
<a href="?p=maintenenceResetGold">Reset Gold</a>
|
||||
<br />
|
||||
<a href="#"><b>Medals</b></a>
|
||||
|
||||
Reference in New Issue
Block a user