mirror of
https://github.com/Shadowss/TravianZ.git
synced 2026-09-23 02:17:05 +08:00
update admin panel
This commit is contained in:
@@ -1,3 +1,6 @@
|
||||
<?php
|
||||
if($_SESSION['access'] < 9) die("Access Denied: You are not Admin!");
|
||||
?>
|
||||
<table id="member">
|
||||
<thead>
|
||||
<tr>
|
||||
@@ -15,6 +18,10 @@
|
||||
if($tribe ==1){ $img = ""; }
|
||||
if($tribe ==2){ $img = "1";}
|
||||
if($tribe ==3){ $img = "2";}
|
||||
if($tribe ==4){ $img = "3";}
|
||||
if($tribe ==5){ $img = "4";}
|
||||
if($tribe ==6){ $img = "5";}
|
||||
|
||||
for($i=1; $i<9; $i++)
|
||||
{
|
||||
echo '<td><center><img src="../img/un/u/'.$img.''.$i.'.gif"></center></td>';
|
||||
@@ -32,14 +39,26 @@
|
||||
##A
|
||||
for($i=1; $i<9; $i++)
|
||||
{
|
||||
echo '<td><center>'.$aupgrades['$i.'].'</center></td>';
|
||||
if($tribe==5) { $abtech['a'.$i]="<font color=\"grey\">?</font>"; $abtech['b'.$i]="<font color=\"grey\">?</font>";}
|
||||
echo '<td><center>'.$abtech['a'.$i].'</center></td>';
|
||||
} ##B
|
||||
for($i=1; $i<9; $i++)
|
||||
{
|
||||
echo '<td><center>'.$bupgrades['$i'].'</center></td>';
|
||||
echo '<td><center>'.$abtech['b'.$i].'</center></td>';
|
||||
}
|
||||
?>
|
||||
</tr>
|
||||
</tfoot>
|
||||
</table>
|
||||
<a href="#">Edit Troop Upgrades</a>
|
||||
<?php
|
||||
if($_SESSION['access'] == ADMIN)
|
||||
{
|
||||
if($tribe==5) { echo '<span class="none">Upgrades Troops</span>';}
|
||||
else { echo '<a href="admin.php?p=addABTroops&did='.$_GET['did'].'">Upgrades Troops</a>';}
|
||||
}
|
||||
if(isset($_GET['ab'])){
|
||||
echo '<div align="right"><font color="Red"><b>AB Tech Troops upgrades</font></b></div>';
|
||||
}
|
||||
?>
|
||||
|
||||
|
||||
Reference in New Issue
Block a user