first commit

This commit is contained in:
unknown
2012-03-29 13:00:34 +02:00
commit 6928cbcd1d
2446 changed files with 85772 additions and 0 deletions
+441
View File
@@ -0,0 +1,441 @@
<!--
** Made by: Dzoki
** - TravianX -
** DO NOT REMOVE COPYRIGHT NOTICE!
-->
<?php
include("Templates/Plus/pmenu.tpl");$extragoud="0";
?>
<script type="text/javascript">
<!--
function loadProductGroup(group_id) {
if (group_id.length == 0){
path='';
} else {
path='?group='+group_id;
}
location.href=path;
}
//-->
</script>
<h1>Donate for the <?php echo SERVER_NAME ?></h1>
<?php echo SERVER_NAME ?> has written the script that this server is using. Script is free at the moment, so keep it that way by donating small anmount!<br/><br/>
<center><form action="https://www.paypal.com/cgi-bin/webscr" method="post">
<input type="hidden" name="cmd" value="_s-xclick">
<input type="hidden" name="hosted_button_id" value="9GUP874LYUYTA">
<input type="image" src="https://www.paypalobjects.com/en_US/i/btn/btn_donateCC_LG.gif" border="0" name="submit" alt="PayPal - The safer, easier way to pay online!">
<img alt="" border="0" src="https://www.paypalobjects.com/en_US/i/scr/pixel.gif" width="1" height="1">
</form>
(paypal check-out)
</center><br><br/>
<?php
if($session->access != BANNED){
?>
<div id="products">
<table class="product lang_ltr lang_en" cellpadding="1" cellspacing="1">
<thead>
<tr>
<th>Package A</th>
</tr>
</thead>
<tbody>
<tr>
<td class="pic">
<img src="http://content.tg-payment.com/content/img/products/Travian_paket_a.jpg" style="width:
99px; height:99px;"
alt="Package A" /></td>
</tr>
<tr>
<td>30&nbsp;Gold</td>
</tr>
<tr>
<td>1.00&nbsp;USD</td>
</tr>
<tr>
<td><form action="https://www.paypal.com/cgi-bin/webscr" method="post">
<input type="hidden" name="cmd" value="_s-xclick">
<input type="hidden" name="hosted_button_id" value="ZAPMM5TASPU7E">
<input type="image" src="https://www.paypalobjects.com/en_US/i/btn/btn_buynow_SM.gif" border="0" name="submit" alt="PayPal - The safer, easier way to pay online!">
<img alt="" border="0" src="https://www.paypalobjects.com/en_US/i/scr/pixel.gif" width="1" height="1">
</form>
</td>
</tr>
</tbody>
</table>
<table class="product lang_ltr lang_en" cellpadding="1" cellspacing="1">
<thead>
<tr>
<th>Package B</th>
</tr>
</thead>
<tbody>
<tr>
<td class="pic">
<img src="http://content.tg-payment.com/content/img/products/Travian_paket_b.jpg" style="width:
99px; height:99px;"
alt="Package B" /></td>
</tr>
<tr>
<td>100&nbsp;Gold</td>
</tr>
<tr>
<td>3.00&nbsp;USD</td>
</tr>
<tr>
<td><form action="https://www.paypal.com/cgi-bin/webscr" method="post">
<input type="hidden" name="cmd" value="_s-xclick">
<input type="hidden" name="hosted_button_id" value="MUA3TCPTLCDUN">
<input type="image" src="https://www.paypalobjects.com/en_US/i/btn/btn_buynow_SM.gif" border="0" name="submit" alt="PayPal - The safer, easier way to pay online!">
<img alt="" border="0" src="https://www.paypalobjects.com/en_US/i/scr/pixel.gif" width="1" height="1">
</form>
</td>
</tr>
</tbody>
</table>
<table class="product lang_ltr lang_en" cellpadding="1" cellspacing="1">
<thead>
<tr>
<th>Package C</th>
</tr>
</thead>
<tbody>
<tr>
<td class="pic">
<img src="http://content.tg-payment.com/content/img/products/Travian_paket_c.jpg" style="width:
99px; height:99px;"
alt="Package C" /></td>
</tr>
<tr>
<td>250&nbsp;Gold</td>
</tr>
<tr>
<td>6.00&nbsp;USD</td>
</tr>
<tr>
<td><form action="https://www.paypal.com/cgi-bin/webscr" method="post">
<input type="hidden" name="cmd" value="_s-xclick">
<input type="hidden" name="hosted_button_id" value="E7S4ZVLCK4V8N">
<input type="image" src="https://www.paypalobjects.com/en_US/i/btn/btn_buynow_SM.gif" border="0" name="submit" alt="PayPal - The safer, easier way to pay online!">
<img alt="" border="0" src="https://www.paypalobjects.com/en_US/i/scr/pixel.gif" width="1" height="1">
</form></td>
</tr>
</tbody>
</table>
<table class="product lang_ltr lang_en" cellpadding="1" cellspacing="1">
<thead>
<tr>
<th>Package D</th>
</tr>
</thead>
<tbody>
<tr>
<td class="pic">
<img src="http://content.tg-payment.com/content/img/products/Travian_paket_d.jpg" style="width:
99px; height:99px;"
alt="Package D" /></td>
</tr>
<tr>
<td>600&nbsp;Gold</td>
</tr>
<tr>
<td>12.00&nbsp;USD</td>
</tr>
<tr>
<td><form action="https://www.paypal.com/cgi-bin/webscr" method="post">
<input type="hidden" name="cmd" value="_s-xclick">
<input type="hidden" name="hosted_button_id" value="RFTJWJQW47QHU">
<input type="image" src="https://www.paypalobjects.com/en_US/i/btn/btn_buynow_SM.gif" border="0" name="submit" alt="PayPal - The safer, easier way to pay online!">
<img alt="" border="0" src="https://www.paypalobjects.com/en_US/i/scr/pixel.gif" width="1" height="1">
</form>
</td>
</tr>
</tbody>
</table>
<table class="product lang_ltr lang_en" cellpadding="1" cellspacing="1">
<thead>
<tr>
<th>Package E</th>
</tr>
</thead>
<tbody>
<tr>
<td class="pic">
<img src="http://content.tg-payment.com/content/img/products/Travian_paket_e.jpg" style="width:
99px; height:99px;"
alt="Package E" /></td>
</tr>
<tr>
<td>1600&nbsp;Gold</td>
</tr>
<tr>
<td>34.00&nbsp;USD</td>
</tr>
<tr>
<td><form action="https://www.paypal.com/cgi-bin/webscr" method="post">
<input type="hidden" name="cmd" value="_s-xclick">
<input type="hidden" name="hosted_button_id" value="X5G8NT6H3XNMS">
<input type="image" src="https://www.paypalobjects.com/en_US/i/btn/btn_buynow_SM.gif" border="0" name="submit" alt="PayPal - The safer, easier way to pay online!">
<img alt="" border="0" src="https://www.paypalobjects.com/en_US/i/scr/pixel.gif" width="1" height="1">
</form>
</td>
</tr>
</tbody>
</table>
<table class="product lang_ltr lang_en" cellpadding="1" cellspacing="1">
<thead>
<tr>
<th>Voucher</th>
</tr>
</thead>
<tbody>
<tr>
<td class="pic"><a href="#" class="voucher" onclick="window.open('/voucher.php','voucher','scrollbars=yes,status=yes,resizable=yes,toolbar=yes,width=800,height=600');return false;">
<img src="http://content.tg-payment.com/content/img/products/Travian_voucher_b.jpg" style="width:
99px; height:99px;"
alt="Voucher" /></a></td>
</tr>
<tr>
<td>Your Option</td>
</tr>
<tr>
<td>
<font color="gray">(ID operator)</font
</td>
</tr>
<tr>
<td>
<a href="#" class="voucher" onclick="window.open('/voucher.php','voucher','scrollbars=yes,status=yes,resizable=yes,toolbar=yes,width=800,height=600');return false;">
&raquo; Buy </a>
</td>
</tr>
</tbody>
</table>
<table class="product lang_ltr lang_en" cellpadding="1" cellspacing="1">
<thead>
<tr>
<th><font color="red">Rules</font></th>
</tr>
</thead>
<tbody>
<tr><td>
after you buy the product, you should report to the Multihunter.
<br/>to activate your product within 24 hours.
</td></tr>
</tbody>
</table>
<div class="clear"></div>
<div style="padding: 10px 10px; font-style: italic; font-size: 10px;">All prices listed are final sales amounts.</div>
</div>
<?php }else{ ?>
<div id="products">
<table class="product lang_ltr lang_en" cellpadding="1" cellspacing="1">
<thead>
<tr>
<th>Package 1</th>
</tr>
</thead>
<tbody>
<tr>
<td class="pic"><a>
<img src="http://content.tg-payment.com/content/img/products/Travian_paket_a.jpg" style="width:
99px; height:99px;"
alt="Package A" /></a></td>
</tr>
<tr>
<td>30&nbsp;Gold</td>
</tr>
<tr>
<td>1.00&nbsp;USD</td>
</tr>
<tr>
<td><a
href="banned.php">&raquo; next</a></td>
</tr>
</tbody>
</table>
<table class="product lang_ltr lang_en" cellpadding="1" cellspacing="1">
<thead>
<tr>
<th>Package 2</th>
</tr>
</thead>
<tbody>
<tr>
<td class="pic"><a>
<img src="http://content.tg-payment.com/content/img/products/Travian_paket_b.jpg" style="width:
99px; height:99px;"
alt="Package B" /></a></td>
</tr>
<tr>
<td>100&nbsp;Gold</td>
</tr>
<tr>
<td>3.00&nbsp;USD</td>
</tr>
<tr>
<td><a
href="banned.php">&raquo; next</a></td>
</tr>
</tbody>
</table>
<table class="product lang_ltr lang_en" cellpadding="1" cellspacing="1">
<thead>
<tr>
<th>Package 3</th>
</tr>
</thead>
<tbody>
<tr>
<td class="pic"><a>
<img src="http://content.tg-payment.com/content/img/products/Travian_paket_c.jpg" style="width:
99px; height:99px;"
alt="Package C" /></a></td>
</tr>
<tr>
<td>250&nbsp;Gold</td>
</tr>
<tr>
<td>6.00&nbsp;USD</td>
</tr>
<tr>
<td><a
href="banned.php">&raquo; next</a></td>
</tr>
</tbody>
</table>
<table class="product lang_ltr lang_en" cellpadding="1" cellspacing="1">
<thead>
<tr>
<th>Package 4</th>
</tr>
</thead>
<tbody>
<tr>
<td class="pic"><a>
<img src="http://content.tg-payment.com/content/img/products/Travian_paket_d.jpg" style="width:
99px; height:99px;"
alt="Package D" /></a></td>
</tr>
<tr>
<td>600&nbsp;Gold</td>
</tr>
<tr>
<td>12.00&nbsp;USD</td>
</tr>
<tr>
<td><a
href="banned.php">&raquo; next</a></td>
</tr>
</tbody>
</table>
<table class="product lang_ltr lang_en" cellpadding="1" cellspacing="1">
<thead>
<tr>
<th>Package 5</th>
</tr>
</thead>
<tbody>
<tr>
<td class="pic"><a>
<img src="http://content.tg-payment.com/content/img/products/Travian_paket_e.jpg" style="width:
99px; height:99px;"
alt="Package E" /></a></td>
</tr>
<tr>
<td>1600&nbsp;Gold</td>
</tr>
<tr>
<td>34.00&nbsp;USD</td>
</tr>
<tr>
<td><a
href="banned.php">&raquo; next</a></td>
</tr>
</tbody>
</table>
<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>
+61
View File
@@ -0,0 +1,61 @@
<?php
////////////// made by alq0rsan /////////////////////////
if($session->access != BANNED){
$MyGold = mysql_query("SELECT * FROM ".TB_PREFIX."users WHERE `username`='".$session->username."'") or die(mysql_error());
$golds = mysql_fetch_array($MyGold);
$MyId = mysql_query("SELECT * FROM ".TB_PREFIX."users WHERE `username`='".$session->username."'") or die(mysql_error());
$uuid = mysql_fetch_array($MyId);
$MyVilId = mysql_query("SELECT * FROM ".TB_PREFIX."bdata WHERE `wid`='".$village->wid."'") or die(mysql_error());
$uuVilid = mysql_fetch_array($MyVilId);
$goldlog = mysql_query("SELECT * FROM ".TB_PREFIX."gold_fin_log") or die(mysql_error());
$today = date("mdHi");
if (mysql_num_rows($MyGold)) {
if($golds['6'] > 2) {
if (mysql_num_rows($MyGold)) {
if($golds['14'] <= time()) {
mysql_query("UPDATE ".TB_PREFIX."users set b2 = '0' where `username`='".$session->username."'") or die(mysql_error());
}
if($golds['14'] == 0) {
mysql_query("UPDATE ".TB_PREFIX."users set b2 = ('".mktime(date("H"),date("i"), date("s"),date("m") , date("d"), date("Y"))."')+".PLUS_PRODUCTION." where `username`='".$session->username."'") or die(mysql_error());
} else {
mysql_query("UPDATE ".TB_PREFIX."users set b2 = '".($golds['14']+PLUS_PRODUCTION)."' where `username`='".$session->username."'") or die(mysql_error());
}
$done1 = "+25% Production: Clay";
mysql_query("UPDATE ".TB_PREFIX."users set gold = ".($session->gold-5)." where `username`='".$session->username."'") or die(mysql_error());
mysql_query("INSERT INTO ".TB_PREFIX."gold_fin_log VALUES ('".(mysql_num_rows($goldlog)+1)."', '".$village->wid."', '+25% Production: Clay')") or die(mysql_error());
} else {
$done1 = "nothing has been done";
mysql_query("INSERT INTO ".TB_PREFIX."gold_fin_log VALUES ('".(mysql_num_rows($goldlog)+1)."', '".$village->wid."', 'Failed +25% Production: Clay')") or die(mysql_error());
}
} else {
$done1 = "You need more gold";
}
}
print "<BR><BR><BR><BR>";
echo $done1;
print "<BR>";
include("Templates/Plus/3.tpl");
}else{
header("Location: banned.php");
}
?>
+61
View File
@@ -0,0 +1,61 @@
<?php
////////////// made by alq0rsan /////////////////////////
if($session->access != BANNED){
$MyGold = mysql_query("SELECT * FROM ".TB_PREFIX."users WHERE `username`='".$session->username."'") or die(mysql_error());
$golds = mysql_fetch_array($MyGold);
$MyId = mysql_query("SELECT * FROM ".TB_PREFIX."users WHERE `username`='".$session->username."'") or die(mysql_error());
$uuid = mysql_fetch_array($MyId);
$MyVilId = mysql_query("SELECT * FROM ".TB_PREFIX."bdata WHERE `wid`='".$village->wid."'") or die(mysql_error());
$uuVilid = mysql_fetch_array($MyVilId);
$goldlog = mysql_query("SELECT * FROM ".TB_PREFIX."gold_fin_log") or die(mysql_error());
$today = date("mdHi");
if (mysql_num_rows($MyGold)) {
if($golds['6'] > 2) {
if (mysql_num_rows($MyGold)) {
if($golds['15'] <= time()) {
mysql_query("UPDATE ".TB_PREFIX."users set b3 = '0' where `username`='".$session->username."'") or die(mysql_error());
}
if($golds['15'] == 0) {
mysql_query("UPDATE ".TB_PREFIX."users set b3 = ('".mktime(date("H"),date("i"), date("s"),date("m") , date("d"), date("Y"))."')+".PLUS_PRODUCTION." where `username`='".$session->username."'") or die(mysql_error());
} else {
mysql_query("UPDATE ".TB_PREFIX."users set b3 = '".($golds['15']+PLUS_PRODUCTION)."' where `username`='".$session->username."'") or die(mysql_error());
}
$done1 = "+25% Production: Iron";
mysql_query("UPDATE ".TB_PREFIX."users set gold = ".($session->gold-5)." where `username`='".$session->username."'") or die(mysql_error());
mysql_query("INSERT INTO ".TB_PREFIX."gold_fin_log VALUES ('".(mysql_num_rows($goldlog)+1)."', '".$village->wid."', '+25% Production: Iron')") or die(mysql_error());
} else {
$done1 = "nothing has been done";
mysql_query("INSERT INTO ".TB_PREFIX."gold_fin_log VALUES ('".(mysql_num_rows($goldlog)+1)."', '".$village->wid."', 'Failed +25% Production: Iron')") or die(mysql_error());
}
} else {
$done1 = "You need more gold";
}
}
print "<BR><BR><BR><BR>";
echo $done1;
print "<BR>";
include("Templates/Plus/3.tpl");
}else{
header("Location: banned.php");
}
?>
+61
View File
@@ -0,0 +1,61 @@
<?php
////////////// made by alq0rsan /////////////////////////
if($session->access != BANNED){
$MyGold = mysql_query("SELECT * FROM ".TB_PREFIX."users WHERE `username`='".$session->username."'") or die(mysql_error());
$golds = mysql_fetch_array($MyGold);
$MyId = mysql_query("SELECT * FROM ".TB_PREFIX."users WHERE `username`='".$session->username."'") or die(mysql_error());
$uuid = mysql_fetch_array($MyId);
$MyVilId = mysql_query("SELECT * FROM ".TB_PREFIX."bdata WHERE `wid`='".$village->wid."'") or die(mysql_error());
$uuVilid = mysql_fetch_array($MyVilId);
$goldlog = mysql_query("SELECT * FROM ".TB_PREFIX."gold_fin_log") or die(mysql_error());
$today = date("mdHi");
if (mysql_num_rows($MyGold)) {
if($golds['6'] > 2) {
if (mysql_num_rows($MyGold)) {
if($golds['16'] <= time()) {
mysql_query("UPDATE ".TB_PREFIX."users set b4 = '0' where `username`='".$session->username."'") or die(mysql_error());
}
if($golds['16'] == 0) {
mysql_query("UPDATE ".TB_PREFIX."users set b4 = ('".mktime(date("H"),date("i"), date("s"),date("m") , date("d"), date("Y"))."')+".PLUS_PRODUCTION." where `username`='".$session->username."'") or die(mysql_error());
} else {
mysql_query("UPDATE ".TB_PREFIX."users set b4 = '".($golds['16']+PLUS_PRODUCTION)."' where `username`='".$session->username."'") or die(mysql_error());
}
$done1 = "+25% Production: Crop";
mysql_query("UPDATE ".TB_PREFIX."users set gold = ".($session->gold-5)." where `username`='".$session->username."'") or die(mysql_error());
mysql_query("INSERT INTO ".TB_PREFIX."gold_fin_log VALUES ('".(mysql_num_rows($goldlog)+1)."', '".$village->wid."', '+25% Production: Crop')") or die(mysql_error());
} else {
$done1 = "nothing has been done";
mysql_query("INSERT INTO ".TB_PREFIX."gold_fin_log VALUES ('".(mysql_num_rows($goldlog)+1)."', '".$village->wid."', 'Failed +25% Production: Crop')") or die(mysql_error());
}
} else {
$done1 = "You need more gold";
}
}
print "<BR><BR><BR><BR>";
echo $done1;
print "<BR>";
include("Templates/Plus/3.tpl");
}else{
header("Location: banned.php");
}
?>
+46
View File
@@ -0,0 +1,46 @@
<!---<?php
/*include("Templates/Plus/pmenu.tpl");
$MyVilId = mysql_query("SELECT * FROM ".TB_PREFIX."vdata WHERE `wref`='".$village->wid."'") or die(mysql_error());
$uuVilid = mysql_fetch_array($MyVilId);
$totalR = ($uuVilid['6']+$uuVilid['7']+$uuVilid['8']+$uuVilid['10']);
$quart = ($totalR / 4);
*/
?>
<form method="get" action="plus.php">
<input name="id" value="14" type="hidden">
<div align="center">
<table border="1" width="50%" cellspacing="0" cellpadding="0">
<tr>
<td align="center" width="25%"><img class="r1" src="img/x.gif" alt="Lumber" title="Lumber" />Lumber</td>
<td align="center" width="25%"><img class="r2" src="img/x.gif" alt="Clay" title="Clay" />Clay</td>
<td align="center" width="25%"><img class="r3" src="img/x.gif" alt="Iron" title="Iron" />Iron</td>
<td align="center" width="25%"><img class="r4" src="img/x.gif" alt="Crop" title="Crop" />Crop</td>
</tr>
<tr>
<td align="center">
<?php
/* $MyGold = mysql_query("SELECT * FROM ".TB_PREFIX."users WHERE `username`='".$session->username."'") or die(mysql_error());
$golds = mysql_fetch_array($MyGold);
$MyId = mysql_query("SELECT * FROM ".TB_PREFIX."users WHERE `username`='".$session->username."'") or die(mysql_error());
$uuid = mysql_fetch_array($MyId);
echo "<input type='text' name='T1' size='6' value=".$quart."></td>";
echo "<td align='center'>";
echo "<input type='text' name='T2' size='6' value=".$quart."></td>";
echo "<td align='center'>";
echo "<input type='text' name='T3' size='6' value=".$quart."></td>";
echo "<td align='center'>";
echo "<input type='text' name='T4' size='6' value=".$quart."></td>";
mysql_query("UPDATE ".TB_PREFIX."users set gold = ".($session->gold-1)." where `username`='".$session->username."'") or die(mysql_error());
*/
?>
</tr>
<tr>
<td colspan="4" align="center">
<input type="submit" value="Trade 1:1" name="B1"></td>
</tr>
</table>
</div>
</form>-->
+33
View File
@@ -0,0 +1,33 @@
<?php
////////////// made by alq0rsan /////////////////////////
if($session->access != BANNED){
$MyGold = mysql_query("SELECT * FROM ".TB_PREFIX."users WHERE `username`='".$session->username."'") or die(mysql_error());
$golds = mysql_fetch_array($MyGold);
$MyVilId = mysql_query("SELECT * FROM ".TB_PREFIX."vdata WHERE `wref`='".$village->wid."'") or die(mysql_error());
$uuVilid = mysql_fetch_array($MyVilId);
$totalT = ($T1+$T2+$T3+$T4);
$totalR = ($uuVilid['6']+$uuVilid['7']+$uuVilid['8']+$uuVilid['10']);
$goldlog = mysql_query("SELECT * FROM ".TB_PREFIX."gold_fin_log") or die(mysql_error());
if($totalT <= $totalR) {
mysql_query("UPDATE ".TB_PREFIX."vdata set wood = '".$T1."' where `wref`='".$village->wid."'") or die(mysql_error());
mysql_query("UPDATE ".TB_PREFIX."vdata set clay = '".$T2."' where `wref`='".$village->wid."'") or die(mysql_error());
mysql_query("UPDATE ".TB_PREFIX."vdata set iron = '".$T3."' where `wref`='".$village->wid."'") or die(mysql_error());
mysql_query("UPDATE ".TB_PREFIX."vdata set crop = '".$T4."' where `wref`='".$village->wid."'") or die(mysql_error());
mysql_query("UPDATE ".TB_PREFIX."users set gold = ".($session->gold-3)." where `username`='".$session->username."'") or die(mysql_error());
mysql_query("INSERT INTO ".TB_PREFIX."gold_fin_log VALUES ('".(mysql_num_rows($goldlog)+1)."', '".$village->wid."', 'trade 1:1')") or die(mysql_error());
echo "done";
} else {
echo "failed";
mysql_query("INSERT INTO ".TB_PREFIX."gold_fin_log VALUES ('".(mysql_num_rows($goldlog)+1)."', '".$village->wid."', 'Failed trade 1:1')") or die(mysql_error());
}
include("Templates/Plus/3.tpl");
}else{
header("Location: banned.php");
}
?>
+217
View File
@@ -0,0 +1,217 @@
<?php
include("Templates/Plus/pmenu.tpl");
?>
<table id="plus_features" class="features" cellpadding="1" cellspacing="1">
<thead><tr>
<th colspan="2">Features of Travian <span class="plus_g">P</span><span class="plus_o">l</span><span class="plus_g">u</span><span class="plus_o">s</span></th>
</tr></thead><tbody><tr>
<td colspan="2" class="empty"></td>
</tr>
<tr>
<th colspan="2">Waiting loop for constructions</th>
</tr>
<tr>
<td class="preview"><a href="plus.php?id=3"><img class="p1" src="img/x.gif" alt="Waiting loop for constructions" title="Waiting loop for constructions" /></a></td>
<td class="text">The waiting loop enables you to give your builders another order to raise or extend a second building. After completing their first task and a short break (60s), they will start to take care of this second job.</td>
</tr><tr>
<td colspan="2" class="empty"></td>
</tr>
<tr>
<th colspan="2">Larger map</th>
</tr>
<tr>
<td class="preview"><a href="plus.php?id=3"><img class="xxl_map" src="img/x.gif" alt="Larger map" title="Larger map" /></a></td>
<td class="text">You can enlarge the map to get a better overview. Instead of 7x7 fields you can have a map of 13x13 fields. Other alliances which are allied or have a non-aggression pact (NAP) with you are shown in special colours.</td>
</tr><tr>
<td colspan="2" class="empty"></td>
</tr>
<tr>
<th colspan="2">Improved view in the rally point.</th>
</tr>
<tr>
<td class="preview"><a href="plus.php?id=3"><img class="att_mark" src="img/x.gif" alt="Improved view in the rally point." title="Improved view in the rally point." /></a></td>
<td class="text">In your rally point you can mark incoming attacks in the colours green, yellow and red to be able to distinguish between what you think are severe and harmless attacks . Additionally the total movement time (without taking into consideration the tournament square or an artefact effect) of the troop types is shown.</td>
</tr><tr>
<td colspan="2" class="empty"></td>
</tr>
<tr>
<th colspan="2">Archive function for reports and messages</th>
</tr>
<tr>
<td class="preview"><a href="plus.php?id=3"><img class="p5" src="img/x.gif" alt="Archive function for reports and messages" title="Archive function for reports and messages" /></a></td>
<td class="text">Important reports and messages can be archived and thereby be looked up faster. Additionally, you can choose several messages or reports and archive or delete them at once.</td>
</tr><tr>
<td colspan="2" class="empty"></td>
</tr>
<tr>
<th colspan="2">Sorting function for reports and messages</th>
</tr>
<tr>
<td class="preview"><a href="plus.php?id=3"><img class="sort" src="img/x.gif" alt="Sorting function for reports and messages" title="Sorting function for reports and messages" /></a></td>
<td class="text">By clicking the table heading "Sent" you can reverse the sorting of reports and messages. If you get many messages a day and need to look up older ones you are able to do so very fast with this function. It can also be used in the archives.</td>
</tr><tr>
<td colspan="2" class="empty"></td>
</tr>
<tr>
<th colspan="2">Sorting function for the marketplace</th>
</tr>
<tr>
<td class="preview"><a href="plus.php?id=3"><img class="p6" src="img/x.gif" alt="Sorting function for the marketplace" title="Sorting function for the marketplace" /></a></td>
<td class="text">To use the marketplace more efficiently, you can filter the offers for certain resources only. Additionally you can use a ratio filter to only see 1:1 offers.</td>
</tr><tr>
<td colspan="2" class="empty"></td>
</tr>
<tr>
<th colspan="2">Auto-completion</th>
</tr>
<tr>
<td class="preview"><a href="plus.php?id=3"><img class="autovv" src="img/x.gif" alt="Auto-completion" title="Auto-completion" /></a></td>
<td class="text">By using the auto-completion you can easily "write" a whole village name by using very few figures. Depending on your preferences you can use this function in any combination for own villages, villages of alliance members or villages of your surroundings.</td>
</tr><tr>
<td colspan="2" class="empty"></td>
</tr>
<tr>
<th colspan="2">Report filter</th>
</tr>
<tr>
<td class="preview"><a href="plus.php?id=3"><img class="bfilter" src="img/x.gif" alt="Report filter" title="Report filter" /></a></td>
<td class="text">Thanks to the report filter unwanted reports concerning marketplace transactions are a problem of the past. Depending on your personal preferences you can easily switch off reports concerning trades from/to other villages or between your own villages.</td>
</tr><tr>
<td colspan="2" class="empty"></td>
</tr>
<tr>
<th colspan="2">Freely definable direct links</th>
</tr>
<tr>
<td class="preview"><a href="plus.php?id=3"><img class="p7" src="img/x.gif" alt="Freely definable direct links" title="Freely definable direct links" /></a></td>
<td class="text">Thanks to these links, you can reach every page you want with just one click. Just create a link to every destination you want and get directly to your alliance's overview, to your barracks or to the tempting 1:1 biddings at the marketplace.</td>
</tr><tr>
<td colspan="2" class="empty"></td>
</tr>
<tr>
<th colspan="2">Graphical statistics</th>
</tr>
<tr>
<td class="preview"><a href="plus.php?id=3"><img class="st1" src="img/x.gif" alt="Graphical statistics" title="Graphical statistics" /></a></td>
<td class="text">These statistics show you the chronological development of your account, e.g. the ranking, your army's strength or your population's development.</td>
</tr><tr>
<td colspan="2" class="empty"></td>
</tr>
<tr>
<th colspan="2">Central account overview</th>
</tr>
<tr>
<td class="preview"><a href="plus.php?id=3"><img class="dorf3" src="img/x.gif" alt="Central account overview" title="Central account overview" /></a></td>
<td class="text">Anyone who reigns over several villages might easily miss something going on within his realm: where are those troops I built, are all my workers at work or are some of them lazy, do I lose resources because one of my warehouses isn't big enough? Just take a look at your central village overview and you can check out all your villages at once. If you own more than one village you can reach the central village overview by clicking "Villages" directly above the list of your villages.</td>
</tr><tr>
<td colspan="2" class="empty"></td>
</tr>
<tr>
<th colspan="2">Notepad</th>
</tr>
<tr>
<td class="preview"><a href="plus.php?id=3"><img class="p8" src="img/x.gif" alt="Notepad" title="Notepad" /></a></td>
<td class="text">Paper and pencil aren't always at hand. In order to make you don't forget important things or if you simply want to make a few notes, use your notebook.</td>
</tr></tbody></table><table id="gold_features" class="features" cellpadding="1" cellspacing="1">
<thead><tr>
<th colspan="2">Features of Travian <font color="#71D000">G</font><font color="#FF6F0F">o</font><font color="#71D000">l</font><font color="#FF6F0F">d</font></th>
</tr></thead><tbody><tr>
<td colspan="2" class="empty"></td>
</tr>
<tr>
<th colspan="2">Production bonus for lumber</th>
</tr>
<tr>
<td class="preview"><a href="plus.php?id=3"><img class="p1_25" src="img/x.gif" alt="Production bonus for lumber" title="Production bonus for lumber" /></a></td>
<td class="text">With this Gold advantage all your villages' lumber production will be increased by 25%.
<br /><br />
The bonus will not be added to the single resource fields but to the sum of the production.
<br /><br />
<span style="color:#FF0000">This feature is NOT included in the gold club!</span></p></td>
</tr><tr>
<td colspan="2" class="empty"></td>
</tr>
<tr>
<th colspan="2">Production bonus for clay</th>
</tr>
<tr>
<td class="preview"><a href="plus.php?id=3"><img class="p2_25" src="img/x.gif" alt="Production bonus for clay" title="Production bonus for clay" /></a></td>
<td class="text">With this Gold advantage all your villages' clay production will be increased by 25%.
<br /><br />
The bonus will not be added to the single resource fields but to the sum of the production.
<br /><br />
<span style="color:#FF0000">This feature is NOT included in the gold club!</span></p></td>
</tr><tr>
<td colspan="2" class="empty"></td>
</tr>
<tr>
<th colspan="2">Production bonus for iron</th>
</tr>
<tr>
<td class="preview"><a href="plus.php?id=3"><img class="p3_25" src="img/x.gif" alt="Production bonus for iron" title="Production bonus for iron" /></a></td>
<td class="text">With this Gold advantage all your villages' iron production will be increased by 25%.
<br /><br />
The bonus will not be added to the single resource fields but to the sum of the production.
<br /><br />
<span style="color:#FF0000">This feature is NOT included in the gold club!</span></p></td>
</tr><tr>
<td colspan="2" class="empty"></td>
</tr>
<tr>
<th colspan="2">Production bonus for crop</th>
</tr>
<tr>
<td class="preview"><a href="plus.php?id=3"><img class="p4_25" src="img/x.gif" alt="Production bonus for crop" title="Production bonus for crop" /></a></td>
<td class="text">With this Gold advantage all your villages' crop production will be increased by 25%.
<br /><br />
The bonus will not be added to the single resource fields but to the sum of the production.
<br /><br />
<span style="color:#FF0000">This feature is NOT included in the gold club!</span></p></td>
</tr><tr>
<td colspan="2" class="empty"></td>
</tr>
<tr>
<th colspan="2">Complete construction orders & research immediately.</th>
</tr>
<tr>
<td class="preview"><a href="plus.php?id=3"><img class="bau0" src="img/x.gif" alt="Complete construction orders & research immediately." title="Complete construction orders & research immediately." /></a></td>
<td class="text">In the current village all construction orders and research in the academy as well as the blacksmith and armoury will be completed immediately.
<br /><br />
However, the <i>buildings</i> Residence and Palace and <i>villages</i> with a wonder of the world inside them are excluded.
<br /><br />
<span style="color:#FF0000">This feature is NOT included in the gold club!</span></p></td>
</tr><tr>
<td colspan="2" class="empty"></td>
</tr>
<tr>
<th colspan="2">NPC Merchant</th>
</tr>
<tr>
<td class="preview"><a href="plus.php?id=3"><img class="npc" src="img/x.gif" alt="NPC Merchant" title="NPC Merchant" /></a></td>
<td class="text">The NPC Merchant will exchange any desired amount of resources in a village with other resources at a ratio of 1:1.
<br /><br />
<span style="color:#FF0000">This feature is NOT included in the gold club!</span></p></td>
</tr></tbody></table></div>
+458
View File
@@ -0,0 +1,458 @@
<?php
$MyGold = mysql_query("SELECT * FROM ".TB_PREFIX."users WHERE `username`='".$session->username."'") or die(mysql_error());
$golds = mysql_fetch_array($MyGold);
if($golds['13'] <= time()) {
mysql_query("UPDATE ".TB_PREFIX."users set b1 = '0' where `username`='".$session->username."'") or die(mysql_error());
}
if($golds['14'] <= time()) {
mysql_query("UPDATE ".TB_PREFIX."users set b2 = '0' where `username`='".$session->username."'") or die(mysql_error());
}
if($golds['15'] <= time()) {
mysql_query("UPDATE ".TB_PREFIX."users set b3 = '0' where `username`='".$session->username."'") or die(mysql_error());
}
if($golds['16'] <= time()) {
mysql_query("UPDATE ".TB_PREFIX."users set b4 = '0' where `username`='".$session->username."'") or die(mysql_error());
}
include("Templates/Plus/pmenu.tpl");
$MyGold = mysql_query("SELECT * FROM ".TB_PREFIX."users WHERE `username`='".$session->username."'") or die(mysql_error());
$golds = mysql_fetch_array($MyGold);
$today = date("mdHi");
if (mysql_num_rows($MyGold)) {
if($session->gold == 0) {
echo "<p>You currently don't own gold.</p>";
} else {
echo "<p>You currently have <b> $session->gold </b> gold</p>";
}
}
?>
<table class="plusFunctions" cellpadding="1" cellspacing="1">
<thead>
<tr>
<th colspan="5">Plus function</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><font color="#71D000">P</font><font color="#FF6F0F">l</font><font color="#71D000">u</font><font color="#FF6F0F">s</font></b> Account<br />
<span class="run">
<?php
$datetimep=$golds['plus'];
$datetime1=$golds['b1'];
$datetime2=$golds['b2'];
$datetime3=$golds['b3'];
$datetime4=$golds['b4'];
$datetimeap=$golds['ap'];
$datetimedp=$golds['dp'];
//Retrieve the current date/time
$date2=strtotime("NOW");
if ($datetimep == 0) {
print "get PLUS<br>";
}else
if ($datetimep <= $date2) {
print "Your PLUS advantage has ended.<br>";
mysql_query("UPDATE ".TB_PREFIX."users set plus = '0' where `username`='".$session->username."'") or die(mysql_error());
} else {
$holdtotmin=(($datetimep-$date2)/60);
$holdtothr=(($datetimep-$date2)/3600);
$holdtotday=intval(($datetimep-$date2)/86400);
echo "<font color='#B3B3B3' size='1'>Remaining: <b>".$holdtotday. "</b> days";
$holdhr=intval($holdtothr-($holdtotday*24));
echo " <b>".($holdhr). "</b> hours ";
$holdmr=intval($holdtotmin-(($holdhr*60)+($holdtotday*1440)));
echo "<b> ".($holdmr). "</b> mins</font>";
}
?>
</span>
</td>
<td class="dur"><?php if(PLUS_TIME >= 86400){
echo ''.(PLUS_TIME/86400).' Days';
} else if(PLUS_TIME < 86400){
echo ''.(PLUS_TIME/3600).' Hours';
} ?>
</td>
<td class="cost"><img src="img/x.gif" class="gold" alt="Gold" title="Gold" alt="Gold" title="Gold" />10</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['gold'] > 9 && $datetimep < $date2) {
echo '
<a href="plus.php?id=8"><span>Activate';
}elseif
($golds['gold'] > 9 && $datetimep > $date2) {
echo '
<a href="plus.php?id=8"><span>Extend';
} else {
echo '<a href="plus.php?s=1"><span class="none">too little gold';}
}
?>
</span></a></td>
</tr>
<tr>
<td colspan="5" class="empty"></td>
</tr>
<tr>
<td class="man"></a></td>
<td class="desc">
+<b>25</b>% <img class="r1" src="img/x.gif" alt="Lumber" title="Lumber" /> Production: Lumber<br />
<span class="run">
<?php
$tl_b1=$golds['b1'];
if ($tl_b1 < $date2) {
print " ";
} else {
$holdtotmin1=(($tl_b1-$date2)/60);
$holdtothr1=(($tl_b1-$date2)/3600);
$holdtotday1=intval(($tl_b1-$date2)/86400);
$holdhr1=intval($holdtothr1-($holdtotday1*24));
$holdmr1=intval($holdtotmin1-(($holdhr1*60)+($holdtotday1*1440)));
}
if ($tl_b1 < $date2) {
print " ";
} else {
echo "<font color='#B3B3B3' size='1'>Remaining <b> ".$holdtotday1. "</b> days ";
echo "<b> ".($holdhr1). "</b> hours ";
echo "<b> ".($holdmr1). "</b> mins</font> ";
}
?>
&nbsp; </span>
</td>
<td class="dur"><?php if(PLUS_PRODUCTION >= 86400){
echo ''.(PLUS_PRODUCTION/86400).' Days';
} else if(PLUS_PRODUCTION < 86400){
echo ''.(PLUS_PRODUCTION/3600).' Hours';
} ?></td>
<td class="cost"><img src="img/x.gif" class="gold" alt="Gold" title="Gold" />5</td>
<td class="act"><span class="none">
<?php
if ($session->access != BANNED){
if (mysql_num_rows($MyGold)) {
if($golds['gold'] > 4 && $tl_b1 < $date2) {
echo '<a href="plus.php?id=9"><span>Activate';
}elseif
($golds['gold'] > 4 && $datetime1 > $date2) {
echo ' <a href="plus.php?id=9"><span>Extend';
} else {
echo '<a href="plus.php?s=1"><span class="none">too little gold';}
}
} else {
if (mysql_num_rows($MyGold)) {
if($golds['gold'] > 4 && $tl_b1 < $date2) {
echo '<a href="banned.php"><span>Activate';
}elseif
($golds['gold'] > 4 && $datetime1 > $date2) {
echo ' <a href="banned.php"><span>Extend';
} else {
echo '<a href="banned.php"><span class="none">too little gold';}
}
}
?>
</span></a></td>
</tr>
<tr>
<td class="man"></td>
<td class="desc">
+<b>25</b>% <img class="r2" src="img/x.gif" alt="Clay" title="Clay" /> Production: Clay<br />
<span class="run">
<?php
$tl_b2=$golds['b2'];
if ($tl_b2 < $date2) {
print " ";
} else {
$holdtotmin2=(($tl_b2-$date2)/60);
$holdtothr2=(($tl_b2-$date2)/3600);
$holdtotday2=intval(($tl_b2-$date2)/86400);
$holdhr2=intval($holdtothr2-($holdtotday2*24));
$holdmr2=intval($holdtotmin2-(($holdhr2*60)+($holdtotday2*1440)));
}
if ($tl_b2 < $date2) {
print " ";
} else {
echo "<font color='#B3B3B3' size='1'>Remaining: <b> ".$holdtotday2. "</b> days ";
echo "<b> ".($holdhr2). "</b> hours ";
echo "<b> ".($holdmr2). "</b> mins<font>";
}
?>
&nbsp; </span>
</td>
<td class="dur"><?php if(PLUS_PRODUCTION >= 86400){
echo ''.(PLUS_PRODUCTION/86400).' Days';
} else if(PLUS_PRODUCTION < 86400){
echo ''.(PLUS_PRODUCTION/3600).' Hours';
} ?></td>
<td class="cost"><img src="img/x.gif" class="gold" alt="Gold" title="Gold" />5</td>
<td class="act"><span class="none">
<?php
if ($session->access != BANNED){
if (mysql_num_rows($MyGold)) {
if($golds['gold'] > 4 && $tl_b2 < $date2) {
echo '<a href="plus.php?id=10"><span>Activate';
}elseif
($golds['gold'] > 4 && $tl_b2 > $date2) {
echo ' <a href="plus.php?id=10"><span>Extend';
} else {
echo '<a href="plus.php?s=1"><span class="none">too little gold</span></a></td>';}
}
} else {
if (mysql_num_rows($MyGold)) {
if($golds['gold'] > 4 && $tl_b2 < $date2) {
echo '<a href="banned.php"><span>Activate';
}elseif
($golds['gold'] > 4 && $tl_b2 > $date2) {
echo ' <a href="banned.php"><span>Extend';
} else {
echo '<a href="banned.php"><span class="none">too little gold</span></a></td>';}
}
}
?>
</tr>
<tr>
<td class="man"></td>
<td class="desc">
+<b>25</b>% <img class="r3" src="img/x.gif" alt="Iron" title="Iron" /> Production: Iron<br />
<span class="run">
<?php
$tl_b3=$golds['b3'];
if ($tl_b3 < $date2) {
print " ";
} else {
$holdtotmin3=(($tl_b3-$date2)/60);
$holdtothr3=(($tl_b3-$date2)/3600);
$holdtotday3=intval(($tl_b3-$date2)/86400);
$holdhr3=intval($holdtothr3-($holdtotday3*24));
$holdmr3=intval($holdtotmin3-(($holdhr3*60)+($holdtotday3*1440)));
}
if ($tl_b3 < $date2) {
print " ";
} else {
echo "<font color='#B3B3B3' size='1'>Remaining: <b> ".$holdtotday3. "</b> days ";
echo "<b> ".($holdhr3). "</b> hours ";
echo "<b> ".($holdmr3). "</b> mins</font>";
}
?>
&nbsp; </span>
</td>
<td class="dur"><?php if(PLUS_PRODUCTION >= 86400){
echo ''.(PLUS_PRODUCTION/86400).' Days';
} else if(PLUS_PRODUCTION < 86400){
echo ''.(PLUS_PRODUCTION/3600).' Hours';
} ?></td>
<td class="cost"><img src="img/x.gif" class="gold" alt="Gold" title="Gold" />5</td>
<td class="act"><span class="none">
<?php
if ($session->access != BANNED){
if (mysql_num_rows($MyGold)) {
if($golds['gold'] > 4 && $tl_b3 < $date2) {
echo '<a href="plus.php?id=11"><span>Activate';
}elseif
($golds['gold'] > 4 && $tl_b3 > $date2) {
echo ' <a href="plus.php?id=11"><span>Extend';
} else {
echo '<a href="plus.php?s=1"><span class="none">too little gold';}
}
} else {
if (mysql_num_rows($MyGold)) {
if($golds['gold'] > 4 && $tl_b3 < $date2) {
echo '<a href="banned.php"><span>Activate';
}elseif
($golds['gold'] > 4 && $tl_b3 > $date2) {
echo ' <a href="banned.php"><span>Extend';
} else {
echo '<a href="banned.php"><span class="none">too little gold';}
}
}
?>
&nbsp; </span></a></td>
</tr>
<tr>
<td class="man"></a></td>
<td class="desc">
+<b>25</b>% <img class="r4" src="img/x.gif" alt="Crop" title="Crop" /> Production: Crop<br />
<span class="run">
<?php
$tl_b4=$golds['b4'];
if ($tl_b4 < $date2) {
print " ";
} else {
$holdtotmin4=(($tl_b4-$date2)/60);
$holdtothr4=(($tl_b4-$date2)/3600);
$holdtotday4=intval(($tl_b4-$date2)/86400);
$holdhr4=intval($holdtothr4-($holdtotday4*24));
$holdmr4=intval($holdtotmin4-(($holdhr4*60)+($holdtotday4*1440)));
}
if ($tl_b4 < $date2) {
print " ";
} else {
echo "<font color='#B3B3B3' size='1'>Remaining: <b> ".$holdtotday4. "</b> days ";
echo "<b> ".($holdhr4). "</b> hours ";
echo "<b> ".($holdmr4). "</b> mins</font>";
}
?>
&nbsp; </span> </td>
<td class="dur"><?php if(PLUS_PRODUCTION >= 86400){
echo ''.(PLUS_PRODUCTION/86400).' Days';
} else if(PLUS_PRODUCTION < 86400){
echo ''.(PLUS_PRODUCTION/3600).' Hours';
} ?></td>
<td class="cost"><img src="img/x.gif" class="gold" alt="Gold" title="Gold" />5</td>
<td <span class="none">
<?php
if ($session->access != BANNED){
if (mysql_num_rows($MyGold)) {
if($golds['gold'] > 4 && $tl_b4 < $date2) {
echo '<a href="plus.php?id=12"><span>Activate';
}elseif
($golds['gold'] > 4 && $tl_b4 > $date2) {
echo ' <a href="plus.php?id=12"><span>Extend';
} else {
echo '<a href="plus.php?s=1"><span class="none">too little gold';}
}
} else {
if (mysql_num_rows($MyGold)) {
if($golds['gold'] > 4 && $tl_b4 < $date2) {
echo '<a href="banned.php"><span>Activate';
}elseif
($golds['gold'] > 4 && $tl_b4 > $date2) {
echo ' <a href="banned.php"><span>Extend';
} else {
echo '<a href="banned.php"><span class="none">too little gold';}
}
}
?>
</span></a></td>
</tr>
<tr>
<td colspan="5" class="empty"></td>
</tr>
<tr>
<td class="man"></td>
<td class="desc">Complete construction orders and researches in this village now (does not work for Palace and Residence).</td>
<td class="dur">now</td>
<td class="cost"><img src="img/x.gif" class="gold" alt="Gold" title="Gold" />2</td>
<td class="act"><span class="none">
<?php
if ($session->access != BANNED){
if (mysql_num_rows($MyGold)) {
if($golds['gold'] > 1) {
echo '
<a href="plus.php?id=7"><span>On';
} else {
echo '<a href="plus.php?s=1"><span class="none">too little gold';
}
}
} else {
if (mysql_num_rows($MyGold)) {
if($golds['gold'] > 1) {
echo '
<a href="banned.php"><span>On';
} else {
echo '<a href="banned.php"><span class="none">too little gold';
}
}
}
?>
</span></a></td>
</tr>
<tr>
<td class="man"></td>
<td class="desc">1:1 Trade with the NPC merchant</td>
<td class="dur">now</td>
<td class="cost"><img src="img/x.gif" class="gold" alt="Gold" title="Gold" />3</td>
<td class="act"><span class="none">
<?php
if ($session->access != BANNED){
if (mysql_num_rows($MyGold)) {
if($golds['gold'] > 2) {
echo ' <a href="build.php?gid=17&t=3"><span>NPC';
} else {
echo '<a href="plus.php?s=1"><span class="none">too little gold';
}
}
} else {
if (mysql_num_rows($MyGold)) {
if($golds['gold'] > 2) {
echo ' <a href="banned.php"><span>NPC';
} else {
echo '<a href="banned.php"><span class="none">too little gold';
}
}
}
?>
</span></a>
</td>
</tr>
</tbody>
</table>
</div>
+19
View File
@@ -0,0 +1,19 @@
<?php
include("Templates/Plus/pmenu.tpl");
?>
<p class="f10 b">How do I get Gold?</p>
<p>Ask owner of the site</p>
<p class="f10 b">Why can't I finish some buildings with Gold?</p>
<p>Due to game play reasons the buildings Residence and Palace are excluded from this function. The same applies to villages in which the wonders of the world can be constructed. </p>
<p class="f10 b">I activated the Plus account, however, my resource production did not increase.</p>
<p>The production did not increase because Plus is separated from these additional features. </p>
<p class="f10 b">Do I need to activate Plus before I can use any other function?</p>
<p>No, you can use every single gold feature as long as you have enough gold. </p>
</div>
+53
View File
@@ -0,0 +1,53 @@
<?php
include("Templates/Plus/pmenu.tpl");
?>
<h2>Invite friends and receive free Gold</h2>
<p>If you get new players to open an account and settle a second village with Travian you will receive gold. You can use this gold to purchase a plus account or plus advantages.
<br>
<br>
To bring in new players, you can invite them by e-mail or have them click on your REF link.</p>
<h2>How is it done?</h2>
<h3>1) Invite your friends via Email</h3>
<?php if($session->access != BANNED){ ?>
<p><a href="plus.php?id=5&amp;a=1&amp;mail">&raquo; Invite by e-mail</a></p>
<?php }else{ ?>
<p><a href="banned.php">&raquo; Invite by e-mail</a></p>
<?php } ?>
<h3>2) Copy your personal REF-Link and share it!</h3><span class="notice">Your personal REF Link:</span>
<br>
<span class="link"><?php echo HOMEPAGE; ?>?id=ref_<?php echo $session->uid; ?></span>
<h3>Progress of your invited friends</h3>
<p>As soon as a player you invited has found his <b>2</b>. village, you will be credited with <b>50</b> gold.</p>
<table id="brought_in" cellpadding="1" cellspacing="1">
<thead>
<tr>
<th colspan="6">Players brought in</th>
</tr>
<tr>
<td></td>
<td>World</td>
<td>UID</td>
<td>Member since</td>
<td>Inhabitants</td>
<td>Villages</td>
</tr>
</thead>
<tr>
<td class="none" colspan="6">You have not brought in any new players yet.</td>
</tr>
</table>
</div>
+56
View File
@@ -0,0 +1,56 @@
<?php
////////////// made by alq0rsan MADE BETER BY advocaite /////////////////////////
if($session->access != BANNED){
$MyGold = mysql_query("SELECT * FROM ".TB_PREFIX."users WHERE `username`='".$session->username."'") or die(mysql_error());
$golds = mysql_fetch_array($MyGold);
$MyId = mysql_query("SELECT * FROM ".TB_PREFIX."users WHERE `username`='".$session->username."'") or die(mysql_error());
$uuid = mysql_fetch_array($MyId);
$MyVilId = mysql_query("SELECT * FROM ".TB_PREFIX."bdata WHERE `wid`='".$village->wid."'") or die(mysql_error());
$uuVilid = mysql_fetch_array($MyVilId);
$MyVilId2 = mysql_query("SELECT * FROM ".TB_PREFIX."research WHERE `vref`='".$village->wid."'") or die(mysql_error());
$uuVilid2 = mysql_fetch_array($MyVilId2);
$goldlog = mysql_query("SELECT * FROM ".TB_PREFIX."gold_fin_log") or die(mysql_error());
$today = date("mdHi");
if (mysql_num_rows($MyGold)) {
if($golds['6'] > 2) {
if (mysql_num_rows($MyVilId) || mysql_num_rows($MyVilId2)) {
mysql_query("UPDATE ".TB_PREFIX."bdata set timestamp = '1' where wid = ".$village->wid." AND type != '25' OR type != '26'") or die(mysql_error());
mysql_query("UPDATE ".TB_PREFIX."research set timestamp = '1' where vref = '".$village->wid."'") or die(mysql_error());
$done1 = "&nbsp;&nbsp; All construction orders and Researches in this village has been Completed";
mysql_query("UPDATE ".TB_PREFIX."users set gold = ".($session->gold-2)." where `username`='".$session->username."'") or die(mysql_error());
mysql_query("INSERT INTO ".TB_PREFIX."gold_fin_log VALUES ('".(mysql_num_rows($goldlog)+1)."', '".$village->wid."', 'Finish construction and research with gold')") or die(mysql_error());
} else {
$done1 = "&nbsp;&nbsp; Nothing has been Completed";
mysql_query("INSERT INTO ".TB_PREFIX."gold_fin_log VALUES ('".(mysql_num_rows($goldlog)+1)."', '".$village->wid."', 'Failed construction and research with gold')") or die(mysql_error());
}
} else {
$done1 = "&nbsp;&nbsp;You need more Gold";
}
}
print "<BR><BR><BR><BR>";
echo $done1;
print "<BR>";
include("Templates/Plus/3.tpl");
}else{
header("Location: banned.php");
}
?>
+57
View File
@@ -0,0 +1,57 @@
<?php
////////////// made by alq0rsan /////////////////////////
if($session->access != BANNED){
$MyGold = mysql_query("SELECT * FROM ".TB_PREFIX."users WHERE `username`='".$session->username."'") or die(mysql_error());
$golds = mysql_fetch_array($MyGold);
$MyId = mysql_query("SELECT * FROM ".TB_PREFIX."users WHERE `username`='".$session->username."'") or die(mysql_error());
$uuid = mysql_fetch_array($MyId);
$MyVilId = mysql_query("SELECT * FROM ".TB_PREFIX."bdata WHERE `wid`='".$village->wid."'") or die(mysql_error());
$uuVilid = mysql_fetch_array($MyVilId);
$goldlog = mysql_query("SELECT * FROM ".TB_PREFIX."gold_fin_log") or die(mysql_error());
$today = date("mdHi");
if (mysql_num_rows($MyGold)) {
if($golds['6'] > 2) {
if (mysql_num_rows($MyGold)) {
if($golds['12'] == 0) {
mysql_query("UPDATE ".TB_PREFIX."users set plus = ('".mktime(date("H"),date("i"), date("s"),date("m") , date("d"), date("Y"))."')+".PLUS_TIME." where `username`='".$session->username."'") or die(mysql_error());
} else {
mysql_query("UPDATE ".TB_PREFIX."users set plus = '".($golds['12']+PLUS_TIME)."' where `username`='".$session->username."'") or die(mysql_error());
}
$done1 = "&nbsp;&nbsp;Plus Account";
mysql_query("UPDATE ".TB_PREFIX."users set gold = ".($session->gold-10)." where `username`='".$session->username."'") or die(mysql_error());
mysql_query("INSERT INTO ".TB_PREFIX."gold_fin_log VALUES ('".(mysql_num_rows($goldlog)+1)."', '".$village->wid."', 'Plus Account')") or die(mysql_error());
} else {
$done1 = "nothing has been done";
mysql_query("INSERT INTO ".TB_PREFIX."gold_fin_log VALUES ('".(mysql_num_rows($goldlog)+1)."', '".$village->wid."', 'Failed Plus Account')") or die(mysql_error());
}
} else {
$done1 = "&nbsp;&nbsp;You need more gold";
}
}
print "<BR><BR><BR><BR>";
echo $done1;
print "<BR>";
include("Templates/Plus/3.tpl");
}else{
header("Location: banned.php");
}
?>
+61
View File
@@ -0,0 +1,61 @@
<?php
////////////// made by alq0rsan /////////////////////////
if($session->access != BANNED){
$MyGold = mysql_query("SELECT * FROM ".TB_PREFIX."users WHERE `username`='".$session->username."'") or die(mysql_error());
$golds = mysql_fetch_array($MyGold);
$MyId = mysql_query("SELECT * FROM ".TB_PREFIX."users WHERE `username`='".$session->username."'") or die(mysql_error());
$uuid = mysql_fetch_array($MyId);
$MyVilId = mysql_query("SELECT * FROM ".TB_PREFIX."bdata WHERE `wid`='".$village->wid."'") or die(mysql_error());
$uuVilid = mysql_fetch_array($MyVilId);
$goldlog = mysql_query("SELECT * FROM ".TB_PREFIX."gold_fin_log") or die(mysql_error());
$today = date("mdHi");
if (mysql_num_rows($MyGold)) {
if($golds['6'] > 2) {
if (mysql_num_rows($MyGold)) {
if($golds['13'] <= time()) {
mysql_query("UPDATE ".TB_PREFIX."users set b1 = '0' where `username`='".$session->username."'") or die(mysql_error());
}
if($golds['13'] == 0) {
mysql_query("UPDATE ".TB_PREFIX."users set b1 = ('".mktime(date("H"),date("i"), date("s"),date("m") , date("d"), date("Y"))."')+".PLUS_PRODUCTION." where `username`='".$session->username."'") or die(mysql_error());
} else {
mysql_query("UPDATE ".TB_PREFIX."users set b1 = '".($golds['13']+PLUS_PRODUCTION)."' where `username`='".$session->username."'") or die(mysql_error());
}
$done1 = "+25% Production: Lumber";
mysql_query("UPDATE ".TB_PREFIX."users set gold = ".($session->gold-5)." where `username`='".$session->username."'") or die(mysql_error());
mysql_query("INSERT INTO ".TB_PREFIX."gold_fin_log VALUES ('".(mysql_num_rows($goldlog)+1)."', '".$village->wid."', '+25% Production: Lumber')") or die(mysql_error());
} else {
$done1 = "nothing has been done";
mysql_query("INSERT INTO ".TB_PREFIX."gold_fin_log VALUES ('".(mysql_num_rows($goldlog)+1)."', '".$village->wid."', 'Failed +25% Production: Lumber')") or die(mysql_error());
}
} else {
$done1 = "You need more gold";
}
}
print "<BR><BR><BR><BR>";
echo $done1;
print "<BR>";
include("Templates/Plus/3.tpl");
}else{
header("Location: banned.php");
}
?>
+123
View File
@@ -0,0 +1,123 @@
<?php
////////////// edited by Pyrrhic of A.G.B. /////////////////////////
include("Templates/Plus/pmenu.tpl");
echo " <br /><div align=center><h2>Get <font color=#71D000>P</font><font color=#FF6F0F>l</font><font color=#71D000>u</font><font color=#FF6F0F>s</font></h2>";
echo " <br /> To enter you login then select the plus site. <br />You will be redirected to the plus site.";
echo " <br /> <i>The plus system will be monitored. Account name, site plus on ip, <br /> and points given are logged,<br /> if caught cheating account will be banned.</i> <br /> <br /> </div>";
if(!$_POST['plus']){
echo <<<EOT
<form method="POST">
<table border="0" width="300" align="center">
<tr><td><b>$session->username</b></td></tr>
<tr><td align=center><b>Select Reward: </b>
<select name="reward">
<option value="error" selected>Select reward...</option>
<option value="p_plus">VIP Account</option>
<option value="p_b1">Lumber</option>
<option value="p_b2">Clay</option>
<option value="p_b3">Iron</option>
<option value="p_b4">Crop </option>";
</select><br/><br/>
<input type="submit" name="plus" value="Get Now"></td></tr>
</table>
</form>
<br /> <br />
EOT;
}else{
$account = mysql_real_escape_string($_POST['username']);
$reward = mysql_real_escape_string($_POST['reward']);
$valid=TRUE;
if($reward == ""){
echo "<b>ERROR:</b><br />";
echo "Please select a reward.";
echo "<br /><br /><input type=\"button\" value=\"Back\" onclick=\"history.go(-1)\">";
$valid=FALSE;
}
if(!$valid) break;
$valid=TRUE;
/////////////////////////////////////////////////////////
$plusTime = 604800; // 7 days
$time = time();
$giveplus = ($time + $plustime);
$accountCheck = mysql_query("SELECT * FROM ".TB_PREFIX."users WHERE `username`='".$session->username."'") or die(mysql_error());
if(mysql_num_rows($accountCheck) <= 0){
echo "<b>ERROR:</b><br />";
echo "The account name you entered does not exist.";
echo "<br /><br /><input type=\"button\" value=\"Back\" onclick=\"history.go(-1)\">";
$valid=FALSE;
}
if(!$valid) break;
$valid=TRUE;
$acc = mysql_fetch_array($accountCheck);
$plusCheck = mysql_query("SELECT * FROM ".TB_PREFIX."users WHERE `username`='".$session->username."'") or die(mysql_error());
$pluss = mysql_fetch_array($plusCheck);
switch($reward){
case 'p_plus':
$key='plus';
$gldz='10';
$url='URL=./plus.php?id=3';
break;
case 'p_b1':
$key ='b1';
$gldz='5';
$url='URL=./plus.php?id=3';
break;
case 'p_b2':
$key ='b2';
$gldz='5';
$url='URL=./plus.php?id=3';
break;
case 'p_b3':
$key ='b3';
$gldz='5';
$url='URL=./plus.php?id=3';
break;
case 'p_b4':
$key ='b4';
$gldz='5';
$url='URL=./plus.php?id=3';
break;
default:
echo' Please select the option you wish to activate or extend.<br>';
$valid=FALSE;
break;
}
if(!$valid) break;
$valid=TRUE;
if(mysql_num_rows($plusCheck) > 0){
if($time > $pluss[$key] ){
$editplus = mysql_query("UPDATE ".TB_PREFIX."users SET `{$key}`= `{$key}` + ('".$time."'+'".$plusTime."'), `gold` = `gold` - {$gldz} WHERE `username`='".$session->username."'") or die(mysql_error());
echo "<META HTTP-EQUIV=Refresh CONTENT=\"2; {$url}\" ><br /><br /><div align=center><font color=green size=4><b> Your Status has been updated!</b></font></div>";
}else
if($time < $pluss[$key]){
$editplus = mysql_query("UPDATE ".TB_PREFIX."users SET `{$key}`= `{$key}` +'".$plusTime."', `gold` = `gold` - {$gldz} WHERE `username`='".$session->username."'") or die(mysql_error());
echo "<META HTTP-EQUIV=Refresh CONTENT=\"2; {$url}\" ><br /><br /><div align=center><font color=green size=4><b> Your Status has been updated!</b></font></div>";
}
}
else{
$insertplus = mysql_query("INSERT INTO ".TB_PREFIX."users (`username`,`{$key}`, `gold`) VALUES ('".$session->username."', ('".$time."'+'".$plusTime."'),`gold` - {$gldz})") or die(mysql_error());
echo "<META HTTP-EQUIV=Refresh CONTENT=\"3; {$url})\" ><br /><br /><div align=center><font color=green size=4><b> Your Status has been updated!</b></font></div>";
}
}
?>
</div>
+55
View File
@@ -0,0 +1,55 @@
<div id="content" class="plus">
<h1>Travian <font color="#71D000">P</font><font color="#FF6F0F">l</font><font color="#71D000">u</font><font color="#FF6F0F">s</font></h1>
<div id="textmenu">
<a href="plus.php" <?php
if(!isset($_GET['id'])) {
echo "class=\"selected\"";
}
if(isset($_GET['id']) && $_GET['id'] == 1) {
echo "class=\"selected\"";
}
?>>Tariffs</a>
| <a href="plus.php?id=2" <?php
if(isset($_GET['id']) && $_GET['id'] == 2) {
echo "class=\"selected\"";
}
if(isset($_GET['id']) && $_GET['id'] >= 6) {
echo "class=\"selected\"";
}
?>>Advantages</a>
| <a href="plus.php?id=3" <?php
if(isset($_GET['id']) && $_GET['id'] == 3) {
echo "class=\"selected\"";
}
if(isset($_GET['id']) && $_GET['id'] >= 6) {
echo "class=\"selected\"";
}
?>>Gold</a>
| <a href="plus.php?id=4" <?php
if(isset($_GET['id']) && $_GET['id'] == 4) {
echo "class=\"selected\"";
}
?>>FAQ</a>
| <a href="plus.php?id=5" <?php
if(isset($_GET['id']) && $_GET['id'] == 5) {
echo "class=\"selected\"";
}
if(isset($_GET['id']) && $_GET['id'] >= 6) {
echo "class=\"selected\"";
}
?>>Earn gold</a>
</div>