start to work on gold club and edit plus/1.tpl

This commit is contained in:
unknown
2012-04-05 14:39:44 +03:00
parent ab706b0556
commit 2794ac0bbb
9 changed files with 324 additions and 6 deletions
+1 -3
View File
@@ -436,6 +436,4 @@ if($session->access != BANNED){
<div class="clear"></div>
<div style="padding: 10px 10px; font-style: italic; font-size: 10px;">All prices listed are final sales amounts.</div>
<?php } ?>
</div>
</div>
</div>
+11
View File
@@ -0,0 +1,11 @@
<?php
////////////// made by alq0rsan /////////////////////////
if($session->access != BANNED){
if($session->gold >= 100) {
mysql_query("UPDATE ".TB_PREFIX."users set goldclub = 1, gold = gold - 100 where `username`='".$session->username."'");
}
include("Templates/Plus/3.tpl");
}else{
header("Location: banned.php");
}
?>
+50
View File
@@ -455,4 +455,54 @@ if (mysql_num_rows($MyGold)) {
</tbody>
</table>
<table class="plusFunctions" cellpadding="1" cellspacing="1">
<thead>
<tr>
<th colspan="5">Travian Gold Club</th>
</tr>
<tr>
<td></td>
<td>Description</td>
<td>Duration</td>
<td>Gold</td>
<td>Action</td>
</tr>
</thead>
<tbody>
<tr>
<td class="man"></td>
<td class="desc">
<b>Gold Club</b></br>
<font size="2">Gold Club including: farmlist, merchants run three times, crop finder, master builder, trade routes and automatic send away troops before an attack.</font>
<span class="run">
</span>
</td>
<td class="dur">Active for the current round of the game, not including bouns production or plus additions.
</td>
<td class="cost"><img src="img/x.gif" class="gold" alt="Gold" title="Gold" alt="Gold" title="Gold" />100</td>
<td class="act">
<?php
$MyGold = mysql_query("SELECT * FROM ".TB_PREFIX."users WHERE `username`='".$session->username."'") or die(mysql_error());
$golds = mysql_fetch_array($MyGold);
if (mysql_num_rows($MyGold)) {
if($golds['goldclub']==0){
if($golds['gold'] > 99) {
echo '
<a href="plus.php?id=15"><span>Activate';
}else{
echo '
<a href="plus.php?s=1"><span class="none">too little gold';
}} else {
echo '<a href="plus.php?id=3"><span class="none">On';}
}
?>
</span></a></td>
</tr>
</tbody>
</table>
</div>