Merge pull request #279 from Shadowss/master

Update admin panel to view images
This commit is contained in:
yi12345
2013-08-13 00:49:09 -07:00
23 changed files with 77 additions and 73 deletions
+2 -2
View File
@@ -65,11 +65,11 @@ error_reporting(0);
<tr>
<td><a href=\"?p=player&uid=".$uid."\">".$active[$i]['username']." [".$active[$i]['access']."]</a></td>
<td>".date("H:i:s",$active[$i]['timestamp'])."</td>
<td><img src=\"../../<?php echo GP_LOCATE; ?>img/u/".$img."9.gif\" title=\"$tribe\" alt=\"$tribe\"></td>
<td><img src=\"../../gpack/travian_default/img/u/".$img."9.gif\" title=\"$tribe\" alt=\"$tribe\"></td>
<td>".$totalpop."</td>
<td>".count($varray)."</td>
<td><img src=\"../img/admin/gold.gif\" class=\"gold\" alt=\"Gold\" title=\"This user has: ".$active[$i]['gold']." gold\"/> ".$active[$i]['gold']."</td>
<td><img src=\"../<?php echo GP_LOCATE; ?>img/a/online1.gif\"></td>
<td><img src=\"../gpack/travian_default/img/a/online1.gif\"></td>
</tr>";
}
?>
+7 -7
View File
@@ -271,8 +271,8 @@ if($_GET['aid'])
if($row['type'] == 1) { $type = 'Confederation Pact'; }
if($row['type'] == 2) { $type = 'Non Agression Pact'; }
if($row['type'] == 3) { $type = 'Declaration of War'; }
if($row['accepted'] == 0) { $accepted = "<img src=\"../../<?php echo GP_LOCATE; ?>img/a/del.gif\">"; }
if($row['accepted'] ==1) { $accepted = "<img src=\"../../<?php echo GP_LOCATE; ?>img/a/acc.gif\">"; }
if($row['accepted'] == 0) { $accepted = "<img src=\"../../gpack/travian_default/img/a/del.gif\">"; }
if($row['accepted'] ==1) { $accepted = "<img src=\"../../gpack/travian_default/img/a/acc.gif\">"; }
$ally = mysql_fetch_assoc(mysql_query("SELECT * FROM ".TB_PREFIX."alidata WHERE id = ".$row['alli2'].""));
echo '
@@ -306,8 +306,8 @@ if($_GET['aid'])
if($row['type'] == 1) { $type = 'Confederation Pact'; }
if($row['type'] == 2) { $type = 'Non Agression Pact'; }
if($row['type'] == 3) { $type = 'Declaration of War'; }
if($row['accepted'] == 0) { $accepted = "<img src=\"../../<?php echo GP_LOCATE; ?>img/a/del.gif\">"; }
if($row['accepted'] ==1) { $accepted = "<img src=\"../../<?php echo GP_LOCATE; ?>img/a/acc.gif\">"; }
if($row['accepted'] == 0) { $accepted = "<img src=\"../../gpack/travian_default/img/a/del.gif\">"; }
if($row['accepted'] ==1) { $accepted = "<img src=\"../../gpack/travian_default/img/a/acc.gif\">"; }
$ally = mysql_fetch_assoc(mysql_query("SELECT * FROM ".TB_PREFIX."alidata WHERE id = ".$row['alli1'].""));
echo '
@@ -342,8 +342,8 @@ if($_GET['aid'])
if($row['type'] == 1) { $type = 'Confederation Pact'; }
if($row['type'] == 2) { $type = 'Non Agression Pact'; }
if($row['type'] == 3) { $type = 'Declaration of War'; }
if($row['accepted'] == 0) { $accepted = "<img src=\"../../<?php echo GP_LOCATE; ?>img/a/del.gif\">"; }
if($row['accepted'] == 1) { $accepted = "<img src=\"../../<?php echo GP_LOCATE; ?>img/a/acc.gif\">"; }
if($row['accepted'] == 0) { $accepted = "<img src=\"../../gpack/travian_default/img/a/del.gif\">"; }
if($row['accepted'] == 1) { $accepted = "<img src=\"../../gpack/travian_default/img/a/acc.gif\">"; }
$ally1 = mysql_fetch_assoc(mysql_query("SELECT * FROM ".TB_PREFIX."alidata WHERE id = ".$row['alli1'].""));
$ally2 = mysql_fetch_assoc(mysql_query("SELECT * FROM ".TB_PREFIX."alidata WHERE id = ".$row['alli2'].""));
@@ -351,7 +351,7 @@ if($_GET['aid'])
<tr>
<td><a href="admin.php?p=alliance&aid='.$row['alli1'].'">'.$ally1['tag'].'</a> & <a href="admin.php?p=alliance&aid='.$row['alli2'].'">'.$ally2['tag'].'</a></td>
<td>'.$type.'</td>
<td><img src="../../<?php echo GP_LOCATE; ?>img/a/acc.gif"></td>
<td><img src="../../gpack/travian_default/img/a/acc.gif"></td>
</tr>';
}
?>
+3 -3
View File
@@ -48,9 +48,9 @@
<td>$rank</td>
<td>$week</td>
<td>$points</td>
<td><img src=\"../<?php echo GP_LOCATE; ?>img/t/".$medal['img'].".jpg\"></td>
<td><img src=\"../gpack/travian_default/img/t/".$medal['img'].".jpg\"></td>
<td>
<input type=\"image\" name=\"medalid\" value=\"".$medal['id']."\" style=\"background-image: url('../<?php echo GP_LOCATE; ?>img/a/del.gif'); height: 12px; width: 12px;\" src=\"../<?php echo GP_LOCATE; ?>img/a/x.gif\">
<input type=\"image\" name=\"medalid\" value=\"".$medal['id']."\" style=\"background-image: url('../gpack/travian_default/img/a/del.gif'); height: 12px; width: 12px;\" src=\"../gpack/travian_default/img/a/x.gif\">
</td>
</tr>";
}
@@ -80,7 +80,7 @@
<form action="../GameEngine/Admin/Mods/delallymedalbyaid.php" method="POST">
<input type="hidden" name="admid" id="admid" value="<?php echo $_SESSION['id']; ?>">
<input type="hidden" name="aid" value="<?php echo $_GET['aid']; ?>">
<input type="image" name="allyid" value="<?php echo $id; ?>" style="background-image: url('../<?php echo GP_LOCATE; ?>img/a/del.gif'); height: 12px; width: 12px;" src="../<?php echo GP_LOCATE; ?>img/a/x.gif">
<input type="image" name="allyid" value="<?php echo $id; ?>" style="background-image: url('../gpack/travian_default/img/a/del.gif'); height: 12px; width: 12px;" src="../gpack/travian_default/img/a/x.gif">
</form>
</td>
</tbody>
+2 -2
View File
@@ -80,7 +80,7 @@ $nummedals = mysql_num_rows($sql);
echo "<tr>
<td>$newweek</td>
<td>$tot</td>
<td><input type=\"image\" name=\"deleteweek\" value=\"".$newweek."\" style=\"background-image: url('../<?php echo GP_LOCATE; ?>img/a/del.gif'); height: 12px; width: 12px;\" src=\"../<?php echo GP_LOCATE; ?>img/a/x.gif\"></td>";
<td><input type=\"image\" name=\"deleteweek\" value=\"".$newweek."\" style=\"background-image: url('../gpack/travian_default/img/a/del.gif'); height: 12px; width: 12px;\" src=\"../gpack/travian_default/img/a/x.gif\"></td>";
}
?>
</tbody>
@@ -139,7 +139,7 @@ $nummedals = mysql_num_rows($sql);
<tr>
<td>$i</td>
<td>[#$bb]</td>
<td><img src=\"../../<?php echo GP_LOCATE; ?>img/t/".$row['img'].".jpg\"></td>
<td><img src=\"../../gpack/travian_default/img/t/".$row['img'].".jpg\"></td>
<td>$alliance</td>
<td>$rank</td>
<td>$week</td>
+2 -2
View File
@@ -80,7 +80,7 @@ $nummedals = mysql_num_rows($sql);
$sql = mysql_query("SELECT * FROM ".TB_PREFIX."medal WHERE week = $newweek");
$tot = mysql_num_rows($sql);
echo "<tr><td>$newweek</td><td>$tot</td><td><input type=\"image\" name=\"medalweek\" value=\"".$newweek."\" style=\"background-image: url('../<?php echo GP_LOCATE; ?>img/a/del.gif'); height: 12px; width: 12px;\" src=\"../<?php echo GP_LOCATE; ?>img/a/x.gif\"></td>";
echo "<tr><td>$newweek</td><td>$tot</td><td><input type=\"image\" name=\"medalweek\" value=\"".$newweek."\" style=\"background-image: url('../gpack/travian_default/img/a/del.gif'); height: 12px; width: 12px;\" src=\"../gpack/travian_default/img/a/x.gif\"></td>";
}
?>
</tbody>
@@ -152,7 +152,7 @@ $nummedals = mysql_num_rows($sql);
<tr>
<td>$i</td>
<td>[#$bb]</td>
<td><img src=\"../../<?php echo GP_LOCATE; ?>img/t/".$row['img'].".jpg\"></td>
<td><img src=\"../../gpack/travian_default/img/t/".$row['img'].".jpg\"></td>
<td>$player</td>
<td>$rank</td>
<td>$week</td>
+2 -2
View File
@@ -22,11 +22,11 @@
<tbody>
<tr>
<td class="hab">Close Server for Maintenece, This will ban all players (Access 2) till you can fix bugs, or a crap version of a ceasefire lol</td>
<td class="hab"><center><a href="admin.php?p=maintenenceBan"><img src="http://forum.ragezone.com/f742/img/admin/b/ok1.gif"></a></center></td>
<td class="hab"><center><a href="admin.php?p=maintenenceBan"><img src="../img/admin/b/ok1.gif"></a></center></td>
</tr>
<tr>
<td class="hab">Bring Server Back for Maintenece, This will unban all players (By Banning Reason)</td>
<td class="hab"><center><a href="admin.php?p=maintenenceUnban"><img src="http://forum.ragezone.com/f742/img/admin/b/ok1.gif"></a></center></td>
<td class="hab"><center><a href="admin.php?p=maintenenceUnban"><img src="../img/admin/b/ok1.gif"></a></center></td>
</tr>
<tr>
<form action="../GameEngine/Admin/Mods/mainteneceCleanBanData.php" method="POST">
+3 -3
View File
@@ -2,7 +2,7 @@
#################################################################################
## -= YOU MAY NOT REMOVE OR CHANGE THIS NOTICE =- ##
## --------------------------------------------------------------------------- ##
## Filename oasis.tpl ##
## Filename MaintenenceResetGold.tpl ##
## Developed by: aggenkeech ##
## License: TravianX Project ##
## Copyright: TravianX (c) 2010-2012. All rights reserved. ##
@@ -15,9 +15,9 @@
<thead>
<tr>
<th colspan="2">Reset All Players Gold</th>
</tr>
</tr>
</thead>
<tbody>
<tbody>
<tr>
<td class="hab" colspan="2"><center><input type="image" src="../img/admin/b/ok1.gif" value="submit"></center></td>
</tr>
+3 -3
View File
@@ -2,7 +2,7 @@
#################################################################################
## -= YOU MAY NOT REMOVE OR CHANGE THIS NOTICE =- ##
## --------------------------------------------------------------------------- ##
## Filename oasis.tpl ##
## Filename MaintenenceResetPlus.tpl ##
## Developed by: aggenkeech ##
## License: TravianX Project ##
## Copyright: TravianX (c) 2010-2012. All rights reserved. ##
@@ -15,9 +15,9 @@
<thead>
<tr>
<th colspan="2">Reset All Players Resource Bonus</th>
</tr>
</tr>
</thead>
<tbody>
<tbody>
<tr>
<td class="hab" colspan="2"><center><input type="image" src="../img/admin/b/ok1.gif" value="submit"></center></td>
</tr>
@@ -2,7 +2,7 @@
#################################################################################
## -= YOU MAY NOT REMOVE OR CHANGE THIS NOTICE =- ##
## --------------------------------------------------------------------------- ##
## Filename oasis.tpl ##
## Filename MaintenenceResetPlusBonus.tpl ##
## Developed by: aggenkeech ##
## License: TravianX Project ##
## Copyright: TravianX (c) 2010-2012. All rights reserved. ##
@@ -15,9 +15,9 @@
<thead>
<tr>
<th colspan="2">Reset All Players Plus</th>
</tr>
</tr>
</thead>
<tbody>
<tbody>
<tr>
<td class="hab" colspan="2"><center><input type="image" src="../img/admin/b/ok1.gif" value="submit"></center></td>
</tr>
+1 -1
View File
@@ -78,7 +78,7 @@ $bannedUsers = $admin->search_banned();
<td>'.$link.'</td>
<td ><span class="f7">'.date("d.m.y H:i",$bannedUsers[$i]['time']).' - '.$end.'</td>
<td>'.$bannedUsers[$i]['reason'].'</td>
<td class="on"><a href="?action=delBan&uid='.$bannedUsers[$i]['uid'].'&id='.$bannedUsers[$i]['id'].'" onClick="return del(\'unban\',\''.$name.'\')"><img src="http://forum.ragezone.com/f742/img/Admin/del.gif" class="del" title="cancel" alt="cancel"></img></a></td>
<td class="on"><a href="?action=delBan&uid='.$bannedUsers[$i]['uid'].'&id='.$bannedUsers[$i]['id'].'" onClick="return del(\'unban\',\''.$name.'\')"><img src="../img/Admin/del.gif" class="del" title="cancel" alt="cancel"></img></a></td>
</tr>';
}
}
+3 -3
View File
@@ -50,7 +50,7 @@
<td>Give how much Gold?</td>
<td>
<input class="give_gold" name="gold" value="0">
<input type="image" src="../<?php echo GP_LOCATE; ?>img/new/tick.png" value="submit">
<input type="image" src="../gpack/travian_default/img/new/tick.png" value="submit">
<a href="admin.php?p=player&uid=<?php echo $id; ?>"><img src="../img/admin/del.gif" title="Cancel"></a></td>
</tr>
</form><?php
@@ -118,7 +118,7 @@
{
$tsdiffact = $datetime - $now;
$timetoecho = $timeformat->getTimeFormat($tsdiffact);
echo '<img src="../<?php echo GP_LOCATE; ?>img/new/tick.png" title="Ends: '.date('d.m.Y H:i',$user['protect']+3600*2).'">';
echo '<img src="../gpack/travian_default/img/new/tick.png" title="Ends: '.date('d.m.Y H:i',$user['protect']+3600*2).'">';
echo "<font color=\"blue\"> $timetoecho</font>";
}
}
@@ -172,7 +172,7 @@
<td>Add how many CP?</td>
<td>
<input class="give_gold" name="cp" value="0">
<input type="image" src="../<?php echo GP_LOCATE; ?>img/new/tick.png" value="submit">
<input type="image" src="../gpack/travian_default/img/new/tick.png" value="submit">
<a href="admin.php?p=player&uid=<?php echo $id; ?>"><img src="../img/admin/del.gif" title="Cancel"></a>
</td>
</tr>
+2 -2
View File
@@ -240,11 +240,11 @@
</tr>
<tr>
<td colspan="2"><a href="?p=editWeek&uid=<?php echo $user['id']; ?>">&raquo; Edit Overall Off & Def</a></td>
<td colspan="2"><a href="?p=editOverall&uid=<?php echo $user['id']; ?>">&raquo; Edit Overall Off & Def</a></td>
</tr>
<tr>
<td colspan="2"><a href="?p=editOverall&uid=<?php echo $user['id']; ?>">&raquo; Edit Weekly Off, Def, Raid</a></td>
<td colspan="2"><a href="?p=editWeek&uid=<?php echo $user['id']; ?>">&raquo; Edit Weekly Off, Def, Raid</a></td>
</tr>
<tr>
+5 -5
View File
@@ -19,7 +19,7 @@
{
$tsdiffact = $datetime - $now;
$timetoecho = $timeformat->getTimeFormat($tsdiffact);
echo '<img src="../<?php echo GP_LOCATE; ?>img/new/tick.png" title="Ends: '.date('d.m.Y H:i',$user['plus']+3600*2).'">';
echo '<img src="../gpack/travian_default/img/new/tick.png" title="Ends: '.date('d.m.Y H:i',$user['plus']+3600*2).'">';
echo "<font color=\"blue\"> $timetoecho</font>";
}
}
@@ -56,7 +56,7 @@
{
$tsdiffact = $datetime - $now;
$timetoecho = $timeformat->getTimeFormat($tsdiffact);
echo '<img src="../<?php echo GP_LOCATE; ?>img/new/tick.png" title="Ends: '.date('d.m.Y H:i',$user['b1']+3600*2).'">';
echo '<img src="../gpack/travian_default/img/new/tick.png" title="Ends: '.date('d.m.Y H:i',$user['b1']+3600*2).'">';
echo "<font color=\"blue\"> $timetoecho</font>";
}
}
@@ -93,7 +93,7 @@
{
$tsdiffact = $datetime - $now;
$timetoecho = $timeformat->getTimeFormat($tsdiffact);
echo '<img src="../<?php echo GP_LOCATE; ?>img/new/tick.png" title="Ends: '.date('d.m.Y H:i',$user['b2']+3600*2).'">';
echo '<img src="../gpack/travian_default/img/new/tick.png" title="Ends: '.date('d.m.Y H:i',$user['b2']+3600*2).'">';
echo "<font color=\"blue\"> $timetoecho</font>";
}
}
@@ -131,7 +131,7 @@
{
$tsdiffact = $datetime - $now;
$timetoecho = $timeformat->getTimeFormat($tsdiffact);
echo '<img src="../<?php echo GP_LOCATE; ?>img/new/tick.png" title="Ends: '.date('d.m.Y H:i',$user['b3']+3600*2).'">';
echo '<img src="../gpack/travian_default/img/new/tick.png" title="Ends: '.date('d.m.Y H:i',$user['b3']+3600*2).'">';
echo "<font color=\"blue\"> $timetoecho</font>";
}
}
@@ -169,7 +169,7 @@
{
$tsdiffact = $datetime - $now;
$timetoecho = $timeformat->getTimeFormat($tsdiffact);
echo '<img src="../<?php echo GP_LOCATE; ?>img/new/tick.png" title="Ends: '.date('d.m.Y H:i',$user['b4']+3600*2).'">';
echo '<img src="../gpack/travian_default/img/new/tick.png" title="Ends: '.date('d.m.Y H:i',$user['b4']+3600*2).'">';
echo "<font color=\"blue\"> $timetoecho</font>";
}
}
+2 -2
View File
@@ -63,7 +63,7 @@ $result = $admin->search_village($_POST['s']);
</tbody>
<tfoot>
<tr>
<td colspan="5" style="background-image: url(../../<?php echo GP_LOCATE; ?>img/f/c4.gif);">
<td colspan="5" style="background-image: url(../../gpack/travian_default/img/f/c4.gif);">
<center>
<font color="red">'.count($result).'</font> Villages Found "<font color="red">'.$_POST['s'].'</font>"
</center>
@@ -79,7 +79,7 @@ $result = $admin->search_village($_POST['s']);
</tbody>
<tfoot>
<tr>
<td colspan="5" style="background-image: url(../../<?php echo GP_LOCATE; ?>img/f/c4.gif);">
<td colspan="5" style="background-image: url(../../gpack/travian_default/img/f/c4.gif);">
<center>
<font color="#9F9F90">No Villages Called</font> <font color="red">'.$_POST['s'].'</font>
</center>
+20 -20
View File
@@ -207,16 +207,16 @@
echo '
</tr></thead><tbody>
<tr>
<td><center /><img src="../<?php echo GP_LOCATE; ?>img/u/31.gif"></img></td>
<td><center /><img src="../<?php echo GP_LOCATE; ?>img/u/32.gif"></img></td>
<td><center /><img src="../<?php echo GP_LOCATE; ?>img/u/33.gif"></img></td>
<td><center /><img src="../<?php echo GP_LOCATE; ?>img/u/34.gif"></img></td>
<td><center /><img src="../<?php echo GP_LOCATE; ?>img/u/35.gif"></img></td>
<td><center /><img src="../<?php echo GP_LOCATE; ?>img/u/36.gif"></img></td>
<td><center /><img src="../<?php echo GP_LOCATE; ?>img/u/37.gif"></img></td>
<td><center /><img src="../<?php echo GP_LOCATE; ?>img/u/38.gif"></img></td>
<td><center /><img src="../<?php echo GP_LOCATE; ?>img/u/39.gif"></img></td>
<td><center /><img src="../<?php echo GP_LOCATE; ?>img/u/40.gif"></img></td>
<td><center /><img src="../img/un/u/31.gif"></img></td>
<td><center /><img src="../img/un/u/32.gif"></img></td>
<td><center /><img src="../img/un/u/33.gif"></img></td>
<td><center /><img src="../img/un/u/34.gif"></img></td>
<td><center /><img src="../img/un/u/35.gif"></img></td>
<td><center /><img src="../img/un/u/36.gif"></img></td>
<td><center /><img src="../img/un/u/37.gif"></img></td>
<td><center /><img src="../img/un/u/38.gif"></img></td>
<td><center /><img src="../img/un/u/39.gif"></img></td>
<td><center /><img src="../img/un/u/40.gif"></img></td>
</tr>
<tr>
<td><center />'.$u31.'</td>
@@ -237,16 +237,16 @@
echo '
</tr></thead><tbody>
<tr>
<td><center /><img src="../<?php echo GP_LOCATE; ?>img/u/41.gif"></img></td>
<td><center /><img src="../<?php echo GP_LOCATE; ?>img/u/42.gif"></img></td>
<td><center /><img src="../<?php echo GP_LOCATE; ?>img/u/43.gif"></img></td>
<td><center /><img src="../<?php echo GP_LOCATE; ?>img/u/44.gif"></img></td>
<td><center /><img src="../<?php echo GP_LOCATE; ?>img/u/45.gif"></img></td>
<td><center /><img src="../<?php echo GP_LOCATE; ?>img/u/46.gif"></img></td>
<td><center /><img src="../<?php echo GP_LOCATE; ?>img/u/47.gif"></img></td>
<td><center /><img src="../<?php echo GP_LOCATE; ?>img/u/48.gif"></img></td>
<td><center /><img src="../<?php echo GP_LOCATE; ?>img/u/49.gif"></img></td>
<td><center /><img src="../<?php echo GP_LOCATE; ?>img/u/50.gif"></img></td>
<td><center /><img src="../img/un/u/41.gif"></img></td>
<td><center /><img src="../img/un/u/42.gif"></img></td>
<td><center /><img src="../img/un/u/43.gif"></img></td>
<td><center /><img src="../img/un/u/44.gif"></img></td>
<td><center /><img src="../img/un/u/45.gif"></img></td>
<td><center /><img src="../img/un/u/46.gif"></img></td>
<td><center /><img src="../img/un/u/47.gif"></img></td>
<td><center /><img src="../img/un/u/48.gif"></img></td>
<td><center /><img src="../img/un/u/49.gif"></img></td>
<td><center /><img src="../img/un/u/50.gif"></img></td>
</tr>
+3 -3
View File
@@ -76,7 +76,7 @@ if(isset($id))
<td>Village owner:</td>
<td><a href="admin.php?p=player&uid=<?php echo $village['owner']; ?>"><?php echo $user['username']; ?></a></td>
<td>
<form action="../GameEngine/Admin/mods/editVillageOwner.php" method="POST" accept-charset="UTF-8">
<form action="../GameEngine/Admin/Mods/editVillageOwner.php" method="POST" accept-charset="UTF-8">
<input type="hidden" name="did" value="<?php echo $_GET['did']; ?>">
<input type="hidden" name="admid" id="admid" value="<?php echo $_SESSION['id']; ?>">
Owner(uid): <input class="text" type="text" name="newowner" value="<?php echo $user['id']; ?>"><input type="image" value="submit" src="../img/admin/edit.gif">
@@ -84,7 +84,7 @@ if(isset($id))
</td>
<tr>
<td>Village name:</td>
<form action="../GameEngine/Admin/mods/renameVillage.php" method="POST" accept-charset="UTF-8">
<form action="../GameEngine/Admin/Mods/renameVillage.php" method="POST" accept-charset="UTF-8">
<input type="hidden" name="did" value="<?php echo $_GET['did']; ?>">
<input type="hidden" name="admid" id="admid" value="<?php echo $_SESSION['id']; ?>">
<td colspan="2">
@@ -133,7 +133,7 @@ if(isset($id))
</tr>
<tr>
<td>Resource</td>
<form action="../GameEngine/Admin/mods/recalcWH.php" method="POST" accept-charset="UTF-8">
<form action="../GameEngine/Admin/Mods/recalcWH.php" method="POST" accept-charset="UTF-8">
<input type="hidden" name="did" value="<?php echo $_GET['did']; ?>">
<input type="hidden" name="admid" id="admid" value="<?php echo $_SESSION['id']; ?>">
<?php
+5 -1
View File
@@ -105,6 +105,9 @@ $up_avl = $latest - $ver ;
<a href="?p=server_info">Server Info</a>
<a href="?p=online">Online Users</a>
<a href="?p=notregistered">Players Not Activated</a>
<a href="?p=[]inactive">Players Inactivate</a>
<a href="?p=report">Players Reported</a>
<a href="?p=map">Map</a>
<br />
<a href="#"><b>Search</b></a>
<a href="?p=search">General Search</a>
@@ -132,7 +135,8 @@ $up_avl = $latest - $ver ;
<a href="?p=givePlusRes">Give All Res Bonus</a>
<a href="?p=maintenenceResetPlusBonus">Reset Res Bonus</a>
<br />
<a href="#"><b>Natars</b></a>
<a href="#"><b>Natars&Oasis</b></a>
<a href="?p=oasis">Populate Oases</b>
<a href="?p=natarend">Add WW Villages</a>
<a href="?p=natarbuildingplan">Add WW Building Plan Villages</a>
<br />
+2 -2
View File
@@ -42,8 +42,8 @@ for($i = 0; $i < $loops + 1; $i++)
$result = mysql_query($query);
while($row = mysql_fetch_assoc($result))
{
##mysql_query("INSERT INTO ".TB_PREFIX."banlist ".$row['id'].", ".$row['username'].", ".$reason.", ".$startts.", ".$endts.", ".$admin.", ".$active."");
mysql_query("INSERT INTO ".TB_PREFIX."banlist (`uid`, `name`, `reason`, `time`, `end`, `admin`, `active`) VALUES (".$row['id'].", '".$row['username']."' , '$reason', '$startts', '$endts', '$admin', '1')");
mysql_query("INSERT INTO ".TB_PREFIX."banlist ".$row['id'].", ".$row['username'].", ".$reason.", ".$startts.", ".$endts.", ".$admin.", ".$active."");
##mysql_query("INSERT INTO ".TB_PREFIX."banlist (`uid`, `name`, `reason`, `time`, `end`, `admin`, `active`) VALUES (".$row['id'].", '".$row['username']."' , '$reason', '$startts', '$endts', '$admin', '1')");
}
}
@@ -2,7 +2,7 @@
#################################################################################
## -= YOU MAY NOT REMOVE OR CHANGE THIS NOTICE =- ##
## --------------------------------------------------------------------------- ##
## Filename mainteneceBan.php ##
## Filename mainteneceResetGold.php ##
## Developed by: aggenkeech ##
## License: TravianX Project ##
## Copyright: TravianX (c) 2010-2012. All rights reserved. ##
@@ -2,7 +2,7 @@
#################################################################################
## -= YOU MAY NOT REMOVE OR CHANGE THIS NOTICE =- ##
## --------------------------------------------------------------------------- ##
## Filename mainteneceBan.php ##
## Filename mainteneceResetPlus.php ##
## Developed by: aggenkeech ##
## License: TravianX Project ##
## Copyright: TravianX (c) 2010-2012. All rights reserved. ##
@@ -2,7 +2,7 @@
#################################################################################
## -= YOU MAY NOT REMOVE OR CHANGE THIS NOTICE =- ##
## --------------------------------------------------------------------------- ##
## Filename mainteneceBan.php ##
## Filename mainteneceResetPlusBonus.php ##
## Developed by: aggenkeech ##
## License: TravianX Project ##
## Copyright: TravianX (c) 2010-2012. All rights reserved. ##
+1 -1
View File
@@ -41,7 +41,7 @@ for($i=1;$i<=$amt;$i++) {
$myFile = "../../../Templates/text.tpl";
$fh = fopen($myFile, 'w') or die("<br/><br/><br/>Can't open file: templates/text.tpl");
$text = file_get_contents("../../../Templates/text_format.tpl");
$text = preg_replace("'%TEKST%'","World Wonder Construction Plans
$text = preg_replace("'%TEKST%'","World Wonder Construction Plans
Many moons ago the tribes of Travian were surprised by the unforeseen return of the Natars. This tribe from immemorial times surpassing all in wisdom, might and glory was about to trouble the free ones again. Thus they put all their efforts in preparing a last war against the Natars and vanquishing them forever. Many thought about the so-called 'Wonders of the World', a construction of many legends, as the only solution. It was told that it would render anyone invincible once completed. Ultimately making the constructors the rulers and conquerors of all known Travian.
+3 -3
View File
@@ -1,4 +1,4 @@
<?php
<?php################################################################################### -= YOU MAY NOT REMOVE OR CHANGE THIS NOTICE =- #### --------------------------------------------------------------------------- #### Filename admin.php #### Developed by: Dzoki #### License: TravianX Project #### Copyright: TravianX (c) 2010-2011. All rights reserved. #### ###################################################################################
session_start();
include("../GameEngine/Database.php");
include("../GameEngine/Admin/database.php");
@@ -48,13 +48,13 @@ if(conf){return true;}else{return false;}
<td class="menu">
<?php
if($funct->CheckLogin()){?>
<div id="lmidlc">
<a href="admin.php">ACP Home</a> <a href="<?php echo HOMEPAGE; ?>">Homepage</a> <a href="#"></a><a href="#"></a> <a href="?p=server_info">Server Info</a>
<a href="?p=online">Online users</a>
<a href="?p=search">Search</a>
<a href="?p=message">Msg/Rep</a>
<a href="?p=ban">Ban</a>
<a href="?p=config">Config</a>
<td class="menu">
<a href="?p=config_editor">Config Editor</a> <a href="#"></a><a href="#"></a><a href="#"></a>
<a href="?action=logout">Logout</a>
<?php }?>
</td>