mirror of
https://github.com/Shadowss/TravianZ.git
synced 2026-08-21 02:30:58 +00:00
Update 5.tpl
This commit is contained in:
@@ -1,19 +1,5 @@
|
|||||||
<?php
|
<?php
|
||||||
include("Templates/Plus/pmenu.tpl");
|
include("Templates/Plus/pmenu.tpl");
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
if(!empty($_GET['gold'])) {
|
|
||||||
|
|
||||||
$gold =$_GET['gold'];
|
|
||||||
$user = $_GET['user'];
|
|
||||||
$q= mysql_query("update ".TB_PREFIX."users set gold=gold+$R_GOLD where id=$id");
|
|
||||||
mysql_query($q);
|
|
||||||
|
|
||||||
$q= mysql_query("update ".TB_PREFIX."users set reflink=0 where id=$user");
|
|
||||||
mysql_query($q);
|
|
||||||
|
|
||||||
}
|
|
||||||
?>
|
?>
|
||||||
|
|
||||||
<h2>Invite friends and receive free Gold</h2>
|
<h2>Invite friends and receive free Gold</h2>
|
||||||
@@ -45,13 +31,6 @@ include("Templates/Plus/pmenu.tpl");
|
|||||||
<tr>
|
<tr>
|
||||||
<th colspan="6">Players brought in</th>
|
<th colspan="6">Players brought in</th>
|
||||||
</tr>
|
</tr>
|
||||||
<!-- Fix Reference Link -->
|
|
||||||
<?php
|
|
||||||
mysql_connect(SQL_SERVER, SQL_USER, SQL_PASS);
|
|
||||||
mysql_select_db(SQL_DB);
|
|
||||||
$query = mysql_query("SELECT * FROM ".TB_PREFIX."users WHERE reflink = ".$id."");
|
|
||||||
$row = mysql_num_rows($query);
|
|
||||||
?>
|
|
||||||
<tr>
|
<tr>
|
||||||
<td>UID</td>
|
<td>UID</td>
|
||||||
|
|
||||||
@@ -60,15 +39,7 @@ $row = mysql_num_rows($query);
|
|||||||
<td>Inhabitants</td>
|
<td>Inhabitants</td>
|
||||||
|
|
||||||
<td>Villages</td>
|
<td>Villages</td>
|
||||||
|
|
||||||
<td>Gold</td>
|
|
||||||
</tr>
|
</tr>
|
||||||
<?php
|
|
||||||
if ($row<>0){
|
|
||||||
while($reference = mysql_fetch_array($query)){
|
|
||||||
}
|
|
||||||
}
|
|
||||||
?>
|
|
||||||
</thead>
|
</thead>
|
||||||
<tbody>
|
<tbody>
|
||||||
<?php
|
<?php
|
||||||
@@ -89,15 +60,6 @@ while($reference = mysql_fetch_array($query)){
|
|||||||
<td><?php echo $totalpop; ?></td>
|
<td><?php echo $totalpop; ?></td>
|
||||||
|
|
||||||
<td><?php echo count($varray); ?></td>
|
<td><?php echo count($varray); ?></td>
|
||||||
<td> <?php
|
|
||||||
if ($villaggi >= ACTIVATE4){ ?>
|
|
||||||
<a href="?id=<?php echo $id; ?>&gold=true&user=<?php echo $reference['id']; ?>"><img src="../img/admin/gold.gif"></a>
|
|
||||||
<?php
|
|
||||||
}else{ ?>
|
|
||||||
<img src="../img/admin/gold_g.gif">
|
|
||||||
<?php
|
|
||||||
} ?> </td>
|
|
||||||
|
|
||||||
</tr>
|
</tr>
|
||||||
<?php
|
<?php
|
||||||
}}else{
|
}}else{
|
||||||
|
|||||||
Reference in New Issue
Block a user