Refactor all PLUS System

Refactor PLUS System + Fix some bugs
This commit is contained in:
novgorodschi catalin
2026-05-20 10:57:02 +03:00
parent 3f32e21333
commit 0934806e8d
22 changed files with 841 additions and 2275 deletions
+34 -216
View File
@@ -1,228 +1,46 @@
<!--
**
** - TravianX -
** DO NOT REMOVE COPYRIGHT NOTICE!
-->
<?php
include("Templates/Plus/pmenu.tpl");$extragoud="0";
// TravianZ - DO NOT REMOVE COPYRIGHT NOTICE!
include("Templates/Plus/pmenu.tpl");
$packages = [
['id' => 110, 'key' => 'A', 'img' => 'Travian_paket_a.jpg', 'gold' => defined('PLUS_PACKAGE_A_GOLD') ? PLUS_PACKAGE_A_GOLD : 60, 'price' => defined('PLUS_PACKAGE_A_PRICE') ? PLUS_PACKAGE_A_PRICE : '1,99'],
['id' => 111, 'key' => 'B', 'img' => 'Travian_paket_b.jpg', 'gold' => defined('PLUS_PACKAGE_B_GOLD') ? PLUS_PACKAGE_B_GOLD : 120, 'price' => defined('PLUS_PACKAGE_B_PRICE') ? PLUS_PACKAGE_B_PRICE : '4,99'],
['id' => 112, 'key' => 'C', 'img' => 'Travian_paket_c.jpg', 'gold' => defined('PLUS_PACKAGE_C_GOLD') ? PLUS_PACKAGE_C_GOLD : 360, 'price' => defined('PLUS_PACKAGE_C_PRICE') ? PLUS_PACKAGE_C_PRICE : '9,99'],
['id' => 113, 'key' => 'D', 'img' => 'Travian_paket_d.jpg', 'gold' => defined('PLUS_PACKAGE_D_GOLD') ? PLUS_PACKAGE_D_GOLD : 1000, 'price' => defined('PLUS_PACKAGE_D_PRICE') ? PLUS_PACKAGE_D_PRICE : '19,99'],
['id' => 3110, 'key' => 'E', 'img' => 'Travian_paket_e.jpg', 'gold' => defined('PLUS_PACKAGE_E_GOLD') ? PLUS_PACKAGE_E_GOLD : 2000, 'price' => defined('PLUS_PACKAGE_E_PRICE') ? PLUS_PACKAGE_E_PRICE : '49,99'],
];
$currency = defined('PAYPAL_CURRENCY') ? PAYPAL_CURRENCY : 'EUR';
$payEmail = defined('PAYPAL_EMAIL') ? PAYPAL_EMAIL : 'novgorodschi@icloud.com';
?>
<script type="text/javascript">
<!--
function loadProductGroup(group_id) {
if (group_id.length == 0){
path='';
} else {
path='?group='+group_id;
}
location.href=path;
}
//-->
</script>
<table class="rate_details lang_ltr lang_de" cellpadding="1" cellspacing="1">
<thead>
<tr>
<th colspan="2">Gold Shop</th>
</tr>
</thead>
<thead><tr><th colspan="2">Gold Shop</th></tr></thead>
<tbody>
<tr>
<td class="pic"><img src="img/bezahlung/Travian_verdienen.jpg" style="99px; height:99px;" alt="Package A" />
<div>Gold Shop</div>
</td>
<td class="pic"><img src="img/bezahlung/Travian_verdienen.jpg" style="width:99px;height:99px;" alt="Gold Shop" /><div>Gold Shop</div></td>
<td class="desc">
Basically, we reserve the ordered amount of gold immediately after the payment. If there are any problems, please send an email to our
<a href="mailto:<?php echo (defined('PAYPAL_EMAIL') ? PAYPAL_EMAIL : 'novgorodschi@icloud.com') ?>">payment account</a>. <br /><br /><b>Username<br />Payment Method<br />Ordered Package<br />
Date and time</b><br /><br />We strive to ensure speedy processing!<br />
</td>
Basically, we reserve the ordered amount of gold immediately after the payment. If there are any problems, please send an email to our
<a href="mailto:<?= $payEmail ?>">payment account</a>.<br><br>
<b>Username<br>Payment Method<br>Ordered Package<br>Date and time</b><br><br>
We strive to ensure speedy processing!
</td>
</tr>
</tbody>
</table>
<div id="products">
<table class="product lang_ltr lang_de" cellpadding="1" cellspacing="1">
<thead>
<tr>
<th>Package A</th>
</tr>
</thead>
<tbody>
<tr>
<td class="pic"><a href="plus1.php?id=110">
<img src="img/bezahlung/Travian_paket_a.jpg" style="width:
99px; height:99px;"
alt="Package A" /></a></td>
</tr>
<tr>
<td><?php echo (defined('PLUS_PACKAGE_A_GOLD') ? PLUS_PACKAGE_A_GOLD : 60); ?>&nbsp;Gold</td>
</tr>
<tr>
<td><?php echo (defined('PLUS_PACKAGE_A_PRICE') ? PLUS_PACKAGE_A_PRICE : '1,99') . ' ' . (defined('PAYPAL_CURRENCY') ? PAYPAL_CURRENCY : 'EUR'); ?></td>
</tr>
<tr>
<td><a href="plus1.php?id=110">&raquo; buy</a></td>
</tr>
</tbody>
</table>
<table class="product lang_ltr lang_de" cellpadding="1" cellspacing="1">
<thead>
<tr>
<th>Package B</th>
</tr>
</thead>
<tbody>
<tr>
<td class="pic"><a
href="plus1.php?id=111">
<img src="img/bezahlung/Travian_paket_b.jpg" style="width:
99px; height:99px;"
alt="Package B" /></a></td>
</tr>
<tr>
<td><?php echo (defined('PLUS_PACKAGE_B_GOLD') ? PLUS_PACKAGE_B_GOLD : 120); ?>&nbsp;Gold</td>
</tr>
<tr>
<td><?php echo (defined('PLUS_PACKAGE_B_PRICE') ? PLUS_PACKAGE_B_PRICE : '4,99') . ' ' . (defined('PAYPAL_CURRENCY') ? PAYPAL_CURRENCY : 'EUR'); ?></td>
</tr>
<tr>
<td><a
href="plus1.php?id=111">&raquo; buy</a></td>
</tr>
</tbody>
</table>
<table class="product lang_ltr lang_de" cellpadding="1" cellspacing="1">
<thead>
<tr>
<th>Package C</th>
</tr>
</thead>
<tbody>
<tr>
<td class="pic"><a
href="plus1.php?id=112">
<img src="img/bezahlung/Travian_paket_c.jpg" style="width:
99px; height:99px;"
alt="Package C" /></a></td>
</tr>
<tr>
<td><?php echo (defined('PLUS_PACKAGE_C_GOLD') ? PLUS_PACKAGE_C_GOLD : 360); ?>&nbsp;Gold</td>
</tr>
<tr>
<td><?php echo (defined('PLUS_PACKAGE_C_PRICE') ? PLUS_PACKAGE_C_PRICE : '9,99') . ' ' . (defined('PAYPAL_CURRENCY') ? PAYPAL_CURRENCY : 'EUR'); ?></td>
</tr>
<tr>
<td><a
href="plus1.php?id=112">&raquo; buy</a></td>
</tr>
</tbody>
</table>
<table class="product lang_ltr lang_de" cellpadding="1" cellspacing="1">
<thead>
<tr>
<th>Package D</th>
</tr>
</thead>
<tbody>
<tr>
<td class="pic"><a
href="plus1.php?id=113">
<img src="img/bezahlung/Travian_paket_d.jpg" style="width:
99px; height:99px;"
alt="Package D" /></a></td>
</tr>
<tr>
<td><?php echo (defined('PLUS_PACKAGE_D_GOLD') ? PLUS_PACKAGE_D_GOLD : 1000); ?>&nbsp;Gold</td>
</tr>
<tr>
<td><?php echo (defined('PLUS_PACKAGE_D_PRICE') ? PLUS_PACKAGE_D_PRICE : '19,99') . ' ' . (defined('PAYPAL_CURRENCY') ? PAYPAL_CURRENCY : 'EUR'); ?></td>
</tr>
<tr>
<td><a
href="plus1.php?id=113">&raquo; buy</a></td>
</tr>
</tbody>
</table>
<table class="product lang_ltr lang_de" cellpadding="1" cellspacing="1">
<thead>
<tr>
<th>Package E</th>
</tr>
</thead>
<tbody>
<tr>
<td class="pic"><a
href="plus1.php?id=3110">
<img src="img/bezahlung/Travian_paket_e.jpg" style="width:
99px; height:99px;"
alt="Package E" /></a></td>
</tr>
<tr>
<td><?php echo (defined('PLUS_PACKAGE_E_GOLD') ? PLUS_PACKAGE_E_GOLD : 2000); ?>&nbsp;Gold</td>
</tr>
<tr>
<td><?php echo (defined('PLUS_PACKAGE_E_PRICE') ? PLUS_PACKAGE_E_PRICE : '49,99') . ' ' . (defined('PAYPAL_CURRENCY') ? PAYPAL_CURRENCY : 'EUR'); ?></td>
</tr>
<tr>
<td><a
href="plus1.php?id=3110">&raquo; buy</a></td>
</tr>
</tbody>
</table>
<!-- <table class="product lang_ltr lang_de" cellpadding="1" cellspacing="1">
<thead>
<tr>
<th>Verdienen</th>
</tr>
</thead>
<tbody>
<tr>
<td class="pic"><a
href="plus1.php?id=5533">
<img src="img/bezahlung/Travian_verdienen.jpg" style="width:
99px; height:99px;"
alt="verdienen" /></a></td>
</tr>
<tr>
<td>300&nbsp;Gold</td>
</tr>
<tr>
<td>12,00&nbsp;EUR</td>
</tr>
<tr>
<td><a
href="plus1.php?id=5533">&raquo; buy</a></td>
</tr>
</tbody>
</table>-->
<?php foreach($packages as $p): ?>
<table class="product lang_ltr lang_de" cellpadding="1" cellspacing="1">
<thead><tr><th>Package <?= $p['key'] ?></th></tr></thead>
<tbody>
<tr><td class="pic"><a href="plus1.php?id=<?= $p['id'] ?>"><img src="img/bezahlung/<?= $p['img'] ?>" style="width:99px;height:99px;" alt="Package <?= $p['key'] ?>" /></a></td></tr>
<tr><td><?= $p['gold'] ?>&nbsp;Gold</td></tr>
<tr><td><?= $p['price'] ?>&nbsp;<?= $currency ?></td></tr>
<tr><td><a href="plus1.php?id=<?= $p['id'] ?>" onclick="if(this.dataset.c) return false; this.dataset.c=1;">&raquo; buy</a></td></tr>
</tbody>
</table>
<?php endforeach; ?>
<div class="clear"></div>
<div style="padding: 10px 10px; font-style: italic; font-size: 10px; color: #F00;"><b>None of the packages are refundable!</b></div>
</div>
<div style="padding:10px;font-style:italic;font-size:10px;color:#F00;"><b>None of the packages are refundable!</b></div>
</div>
</div>
+41 -26
View File
@@ -1,28 +1,43 @@
<?php
////////////// made by alq0rsan, improved by evader /////////////////////////
if($session->gold >= 5){
$MyGold = mysqli_query($database->dblink,"SELECT gold, b2 FROM ".TB_PREFIX."users WHERE `id`='".$session->uid."'") or die(mysqli_error($database->dblink));
$golds = mysqli_fetch_array($MyGold);
if($session->sit == 0) {
if (mysqli_num_rows($MyGold) == 1) {
if($golds['gold'] >= 5) {
if($golds['b2'] < time()) {
mysqli_query($database->dblink,"UPDATE ".TB_PREFIX."users set b2 = '".(time()+PLUS_PRODUCTION)."' where `id`='".$session->uid."'") or die(mysqli_error($database->dblink));
} else {
mysqli_query($database->dblink,"UPDATE ".TB_PREFIX."users set b2 = '".($golds['b2']+PLUS_PRODUCTION)."' where `id`='".$session->uid."'") or die(mysqli_error($database->dblink));
}
$done1 = "+25% Production: Clay";
mysqli_query($database->dblink,"UPDATE ".TB_PREFIX."users set gold = ".($session->gold-5)." where `id`='".$session->uid."'") or die(mysqli_error($database->dblink));
mysqli_query($database->dblink,"INSERT INTO ".TB_PREFIX."gold_fin_log (wid,log) VALUES ('".$village->wid."', '+25% Production: Clay')") or die(mysqli_error($database->dblink));
} else {
$done1 = "You need more gold";
}
} else {
$done1 = "Failed clay attempt";
mysqli_query($database->dblink,"INSERT INTO ".TB_PREFIX."gold_fin_log (wid,log) VALUES ('".$village->wid."', 'Failed +25% Production: Clay')") or die(mysqli_error($database->dblink));
}
}
header("Location: plus.php?id=3");
exit;
#################################################################################
## -= YOU MAY NOT REMOVE OR CHANGE THIS NOTICE =- ##
## --------------------------------------------------------------------------- ##
## Project: TravianZ (Refactor incremental) ##
## File: 8.tpl ##
## Description: Clay Plus ##
## Made by: alq0rsan ##
## Improved by: evader ##
## Refactor by: Shadow ##
## ##
#################################################################################
if($session->sit == 0) {
$uid = (int)$session->uid;
$now = time();
$cost = 5;
// UPDATE atomic: scade gold doar dacă ai, și prelungește b2
$sql = "UPDATE ".TB_PREFIX."users
SET gold = gold - $cost,
b2 = IF(b2 > $now, b2 + ".PLUS_PRODUCTION.", $now + ".PLUS_PRODUCTION.")
WHERE id = '$uid' AND gold >= $cost";
mysqli_query($database->dblink, $sql) or die(mysqli_error($database->dblink));
if(mysqli_affected_rows($database->dblink) == 1) {
// succes - update instant în sesiune
$session->gold -= $cost;
// log
mysqli_query($database->dblink, "INSERT INTO ".TB_PREFIX."gold_fin_log (wid,log) VALUES ('".$village->wid."', '+25% Production: Clay')") or die(mysqli_error($database->dblink));
// iinvalidează cache v9
if(method_exists($database, 'clearUserCache')) {
$database->clearUserCache($uid);
}
}
}
?>
header("Location: plus.php?id=3");
exit;
?>
+41 -26
View File
@@ -1,28 +1,43 @@
<?php
////////////// made by alq0rsan, improved by evader /////////////////////////
if($session->gold >= 5){
$MyGold = mysqli_query($database->dblink,"SELECT gold, b3 FROM ".TB_PREFIX."users WHERE `id`='".$session->uid."'") or die(mysqli_error($database->dblink));
$golds = mysqli_fetch_array($MyGold);
if($session->sit == 0) {
if (mysqli_num_rows($MyGold)) {
if($golds['gold'] >= 5) {
if($golds['b3'] < time()) {
mysqli_query($database->dblink,"UPDATE ".TB_PREFIX."users set b3 = '".(time()+PLUS_PRODUCTION)."' where `id`='".$session->uid."'") or die(mysqli_error($database->dblink));
} else {
mysqli_query($database->dblink,"UPDATE ".TB_PREFIX."users set b3 = '".($golds['b3']+PLUS_PRODUCTION)."' where `id`='".$session->uid."'") or die(mysqli_error($database->dblink));
}
$done1 = "+25% Production: Iron";
mysqli_query($database->dblink,"UPDATE ".TB_PREFIX."users set gold = ".($session->gold-5)." where `id`='".$session->uid."'") or die(mysqli_error($database->dblink));
mysqli_query($database->dblink,"INSERT INTO ".TB_PREFIX."gold_fin_log (wid,log) VALUES ('".$village->wid."', '+25% Production: Iron')") or die(mysqli_error($database->dblink));
} else {
$done1 = "You need more gold";
}
} else {
$done1 = "Failed iron attempt";
mysqli_query($database->dblink,"INSERT INTO ".TB_PREFIX."gold_fin_log (wid,log) VALUES ('".$village->wid."', 'Failed +25% Production: Iron')") or die(mysqli_error($database->dblink));
}
}
header("Location: plus.php?id=3");
exit;
#################################################################################
## -= YOU MAY NOT REMOVE OR CHANGE THIS NOTICE =- ##
## --------------------------------------------------------------------------- ##
## Project: TravianZ (Refactor incremental) ##
## File: 8.tpl ##
## Description: Iron Plus ##
## Made by: alq0rsan ##
## Improved by: evader ##
## Refactor by: Shadow ##
## ##
#################################################################################
if($session->sit == 0) {
$uid = (int)$session->uid;
$now = time();
$cost = 5;
// UPDATE atomic: scade gold doar dacă ai, și prelungește b3
$sql = "UPDATE ".TB_PREFIX."users
SET gold = gold - $cost,
b3 = IF(b3 > $now, b3 + ".PLUS_PRODUCTION.", $now + ".PLUS_PRODUCTION.")
WHERE id = '$uid' AND gold >= $cost";
mysqli_query($database->dblink, $sql) or die(mysqli_error($database->dblink));
if(mysqli_affected_rows($database->dblink) == 1) {
// succes - update instant în sesiune
$session->gold -= $cost;
// log
mysqli_query($database->dblink, "INSERT INTO ".TB_PREFIX."gold_fin_log (wid,log) VALUES ('".$village->wid."', '+25% Production: Iron')") or die(mysqli_error($database->dblink));
// invalidează cache v9
if(method_exists($database, 'clearUserCache')) {
$database->clearUserCache($uid);
}
}
}
?>
header("Location: plus.php?id=3");
exit;
?>
+35 -141
View File
@@ -1,147 +1,41 @@
<?php
include("Templates/Plus/pmenu.tpl");
$name = $session->uid;
//echo"<br>Benutzer-Id : $name<br>";
//$free = $session->uid;
//echo"<br>Veriable free : ?account=56387&project=trvnx&theme=default&gfx=x-surfer&bgcolor=ffffff&title=travianix-30+Gold&amount=150&free=$free<br>";
$pkg = [
'gold' => defined('PLUS_PACKAGE_A_GOLD') ? PLUS_PACKAGE_A_GOLD : 60,
'price' => defined('PLUS_PACKAGE_A_PRICE') ? PLUS_PACKAGE_A_PRICE : '1,99',
];
$price = str_replace(',', '.', $pkg['price']);
$currency = defined('PAYPAL_CURRENCY') ? PAYPAL_CURRENCY : 'EUR';
$email = defined('PAYPAL_EMAIL') ? PAYPAL_EMAIL : 'novgorodschi@icloud.com';
?>
<!-- Hinweis -->
<!--
<table class="rate_details lang_ltr lang_de" cellpadding="1" cellspacing="1">
<thead>
<tr>
<th colspan="2">1. Call2Pay</th>
</tr>
</thead>
<tbody>
<tr>
<td class="pic"><img src="img/bezahlung/call2pay.png" style="99px; height:99px;" alt="Paket A" />
<div>Gold : 60<br />Cost : 1,99 Euro<br />Wait: Instant</div>
</td>
<td class="desc">
Pay by Phone <br />
<a href="#"
onclick="window.open('http://billing.micropayment.ch/call2pay/event/?account=56387&project=trvnx&theme=default&gfx=x-surfer&bgcolor=ffffff&title=travianix-60+Gold&amount=199','nsrpay','scrollbars=yes,status=yes,resizable=yes,toolbar=yes,width=800,height=600');return false;">
<img src="img/bezahlung/call2pay1.png" style="width:126px; height:38px;" alt="call2pay" /></a>
<br />
More Info about micropayment can be found here: <a href="https://www.micropayment.ch/" target="_blank"><br />More Info</a>
</td>
</tr>
</tbody>
<thead><tr><th colspan="2">PayPal Package A</th></tr></thead>
<tbody>
<tr>
<td class="pic">
<img src="img/bezahlung/paypal.jpg" style="width:99px;height:99px;" alt="Package A">
<div>Gold: <?= $pkg['gold'] ?><br>Cost: <?= $pkg['price'] ?> <?= $currency ?><br>Wait: 24h</div>
</td>
<td class="desc">
Initiate Payment by PayPal<br><br>
<form action="https://www.paypal.com/cgi-bin/webscr" method="post" target="_blank">
<input type="hidden" name="business" value="<?= $email ?>">
<input type="hidden" name="cmd" value="_xclick">
<input type="hidden" name="item_name" value="<?= SERVER_NAME ?> Package A">
<input type="hidden" name="amount" value="<?= $price ?>">
<input type="hidden" name="currency_code" value="<?= $currency ?>">
<!-- CELE MAI IMPORTANTE identificare -->
<input type="hidden" name="custom" value="<?= $session->uid ?>|110|<?= time() ?>">
<input type="hidden" name="invoice" value="TX-<?= $session->uid ?>-110-<?= time() ?>">
<input type="hidden" name="notify_url" value="<?= HOMEPAGE ?>paypal_ipn.php">
<input type="hidden" name="return" value="<?= HOMEPAGE ?>plus.php?id=1&paid=1">
<input type="image" src="https://www.paypalobjects.com/webstatic/en_US/i/btn/png/btn_buynow_107x26.png" name="submit" alt="Buy Now">
</form>
<br>More info: <a href="https://www.paypal.com" target="_blank">PayPal</a>
</td>
</tr>
</tbody>
</table>
<table class="rate_details lang_ltr lang_de" cellpadding="1" cellspacing="1">
<thead>
<tr>
<th colspan="2">2. Handy2Pay</th>
</tr>
</thead>
<tbody>
<tr>
<td class="pic"><img src="img/bezahlung/handy2pay.png" style="99px; height:99px;" alt="Paket A" />
<div>Gold : 60<br />Cost : 1,99 Euro<br />Wait: Instant</div>
</td>
<td class="desc">
Pay with SMS <br />
<a href="#"
onclick="window.open('http://billing.micropayment.ch/handypay/event/?account=56387&project=trvnx&theme=default&gfx=x-surfer&bgcolor=ffffff&title=travianix-60+Gold&amount=199&paytext=TravianiX+60+Gold&smstext=travianix60gold','nsrpay','scrollbars=yes,status=yes,resizable=yes,toolbar=yes,width=800,height=600');return false;">
<img src="img/bezahlung/handy2pay2.png" style="width:126px; height:38px;" alt="handy2pay" /></a>
<br />
More Info about micropayment can be found here: <a href="https://www.micropayment.ch/" target="_blank"><br />More Info</a>
</td>
</tr>
</tbody>
</table>
<table class="rate_details lang_ltr lang_de" cellpadding="1" cellspacing="1">
<thead>
<tr>
<th colspan="2">3. Ebank2Pay</th>
</tr>
</thead>
<tbody>
<tr>
<td class="pic"><img src="img/bezahlung/ebank2pay.png" style="99px; height:99px;" alt="Paket A" />
<div>Gold : 60<br />Cost : 1,99 Euro<br />Wait: Sofort</div>
</td>
<td class="desc">
Pay by online banktransfer <br />
<a href="#"
onclick="window.open('http://billing.micropayment.ch/ebank2pay/event/?account=56387&project=trvnx&theme=default&gfx=x-surfer&bgcolor=ffffff&title=travianix+60+Gold&amount=199&currency=EUR&paytext=travianix+60+Gold','nsrpay','scrollbars=yes,status=yes,resizable=yes,toolbar=yes,width=800,height=600');return false;">
<img src="img/bezahlung/ebank2pay2.png" style="width:181px; height:38px;" alt="ebank2pay" /></a>
<br />
More Info about micropayment can be found here: <a href="https://www.micropayment.ch/" target="_blank"><br />More Info</a>
</td>
</tr>
</tbody>
</table>
-->
<table class="rate_details lang_ltr lang_de" cellpadding="1" cellspacing="1">
<thead>
<tr>
<th colspan="2">Paypal</th>
</tr>
</thead>
<tbody>
<tr>
<td class="pic">
<img src="img/bezahlung/paypal.jpg" style="99px; height:99px;" alt="Package A" />
<div>
Gold : <?php echo (defined('PLUS_PACKAGE_A_GOLD') ? PLUS_PACKAGE_A_GOLD : 60); ?>
<br />
Cost : <?php echo (defined('PLUS_PACKAGE_A_PRICE') ? PLUS_PACKAGE_A_PRICE : '1,99') . ' ' . (defined('PAYPAL_CURRENCY') ? PAYPAL_CURRENCY : 'EUR'); ?>
<br />
Wait: 24 hours
</div>
</td>
<td class="desc">
Initiate Payment by Paypal
<br /><br />
<form action="https://www.paypal.com/cgi-bin/webscr" method="post">
<!-- Identify your business so that you can collect the payments. -->
<input type="hidden" name="business" value="<?php echo (defined('PAYPAL_EMAIL') ? PAYPAL_EMAIL : 'novgorodschi@icloud.com'); ?>">
<!-- Specify a Buy Now button. -->
<input type="hidden" name="cmd" value="_xclick">
<!-- Specify details about the item that buyers will purchase. -->
<input type="hidden" name="item_name" value="<?php echo SERVER_NAME . ' Package A Gold Pack (' . $session->username . ')'; ?>">
<input type="hidden" name="amount" value="<?php echo (defined('PLUS_PACKAGE_A_PRICE') ? str_replace(",", ".", PLUS_PACKAGE_A_PRICE) : '1,99'); ?>">
<input type="hidden" name="currency_code" value="<?php echo (defined('PAYPAL_CURRENCY') ? PAYPAL_CURRENCY : 'EUR'); ?>">
<!-- Display the payment button. -->
<input type="image" name="submit" border="0"
src="https://www.paypalobjects.com/webstatic/en_US/i/btn/png/btn_buynow_107x26.png"
alt="Buy Now">
<img alt="" border="0" width="1" height="1" src="https://www.paypalobjects.com/en_US/i/scr/pixel.gif" >
</form>
<br />
More Info about PayPal can be found here: <br />
<a href="#" onclick="window.open('https://www.paypal.com/en/cgi-bin/webscr?cmd=xpt/cps/popup/OLCWhatIsPayPal-outside','external','scrollbars=yes,status=yes,resizable=yes,toolbar=yes,width=800,height=600');return false;">More Info</a>
<br />
</td>
</tr>
</tbody>
</table>
<br /><br /><br /><br /><br /><br />
</div>
</div>
</div>
+41 -213
View File
@@ -1,220 +1,48 @@
<?php
include("Templates/Plus/pmenu.tpl");
$free = $session->uid;
$uid = (int)$session->uid;
$gold = defined('PLUS_PACKAGE_B_GOLD')? PLUS_PACKAGE_B_GOLD : 120;
$price = defined('PLUS_PACKAGE_B_PRICE')? str_replace(',', '.', PLUS_PACKAGE_B_PRICE) : '4.99';
$currency = defined('PAYPAL_CURRENCY')? PAYPAL_CURRENCY : 'EUR';
$paypal = defined('PAYPAL_EMAIL')? PAYPAL_EMAIL : 'novgorodschi@icloud.com';
// link-uri pentru IPN
$notify = rtrim(HOMEPAGE,'/'). '/paypal_ipn.php';
$return = rtrim(HOMEPAGE,'/'). '/plus.php?id=1&paid=1';
$cancel = rtrim(HOMEPAGE,'/'). '/plus.php?id=1&cancel=1';
?>
<!-- Hinweis -->
<!--
<table class="rate_details lang_ltr lang_de" cellpadding="1" cellspacing="1">
<thead>
<table class="rate_details" cellpadding="1" cellspacing="1">
<thead><tr><th colspan="2">PayPal Package B</th></tr></thead>
<tbody>
<tr>
<td class="pic">
<img src="img/bezahlung/paypal.jpg" style="width:99px;height:99px;" alt="Package B" />
<div>Gold: <?= $gold?><br>Cost: <?= $price?> <?= $currency?><br>Wait: instant after IPN</div>
</td>
<td class="desc">
Pay securely with PayPal.<br><br>
<form action="https://www.paypal.com/cgi-bin/webscr" method="post" target="_top">
<input type="hidden" name="cmd" value="_xclick">
<input type="hidden" name="business" value="<?= $paypal?>">
<input type="hidden" name="item_name" value="<?= SERVER_NAME?> Package B">
<input type="hidden" name="item_number" value="B-<?= $gold?>">
<input type="hidden" name="amount" value="<?= $price?>">
<input type="hidden" name="currency_code" value="<?= $currency?>">
<tr>
<th colspan="2">1. Call2Pay</th>
</tr>
</thead>
<tbody>
<tr>
<td class="pic"><img src="img/bezahlung/call2pay.png" style="99px; height:99px;" alt="Paket A" />
<!-- IDENTIFICARE JUCĂTOR -->
<input type="hidden" name="custom" value="<?= $uid?>">
<input type="hidden" name="notify_url" value="<?= $notify?>">
<input type="hidden" name="return" value="<?= $return?>">
<input type="hidden" name="cancel_return" value="<?= $cancel?>">
<input type="hidden" name="no_shipping" value="1">
<div>Gold : 120<br />Cost : 4,99 Euro<br />Wait: Instant</div>
</td>
<td class="desc">
Pay by phone <br />
<a href="#"
onclick="window.open('http://billing.micropayment.de/call2pay/event/?account=56387&project=trvnx&theme=default&gfx=x-surfer&bgcolor=ffffff&title=travianix-120+Gold&amount=499','nsrpay','scrollbars=yes,status=yes,resizable=yes,toolbar=yes,width=800,height=600');return false;">
<img src="img/bezahlung/call2pay1.png" style="width:126px; height:38px;" alt="call2pay" /></a>
<br />
More information about micropayent can be found here: <a href="https://www.micropayment.de/" target="_blank"><br />More Info</a>
</td>
</tr>
</tbody>
<input type="image" src="https://www.paypalobjects.com/webstatic/en_US/i/btn/png/btn_buynow_107x26.png" name="submit" alt="Buy Now">
</form>
<br>After payment you will be credited automatically.
</td>
</tr>
</tbody>
</table>
<table class="rate_details lang_ltr lang_de" cellpadding="1" cellspacing="1">
<thead>
<tr>
<th colspan="2">2. Handy2Pay</th>
</tr>
</thead>
<tbody>
<tr>
<td class="pic"><img src="img/bezahlung/handy2pay.png" style="99px; height:99px;" alt="Paket A" />
<div>Gold : 120<br />Cost : 4,99 Euro<br />Wait: Instant</div>
</td>
<td class="desc">
Pay with SMS <br />
<a href="#"
onclick="window.open('http://billing.micropayment.de/handypay/event/?account=56387&project=trvnx&theme=default&gfx=x-surfer&bgcolor=ffffff&title=travianix-120+Gold&amount=499&paytext=TravianiX+120+Gold&smstext=travianix120gold','nsrpay','scrollbars=yes,status=yes,resizable=yes,toolbar=yes,width=800,height=600');return false;">
<img src="img/bezahlung/handy2pay2.png" style="width:126px; height:38px;" alt="handy2pay" /></a>
<br />
More information about micropayent can be found here: <a href="https://www.micropayment.de/" target="_blank"><br />More Info</a>
</td>
</tr>
</tbody>
</table>
<table class="rate_details lang_ltr lang_de" cellpadding="1" cellspacing="1">
<thead>
<tr>
<th colspan="2">3. Ebank2Pay</th>
</tr>
</thead>
<tbody>
<tr>
<td class="pic"><img src="img/bezahlung/ebank2pay.png" style="99px; height:99px;" alt="Paket A" />
<div>Gold : 120<br />Cost : 4,99 Euro<br />Wait: Instant</div>
</td>
<td class="desc">
Pay with online banktransfer <br />
<a href="#"
onclick="window.open('http://billing.micropayment.de/ebank2pay/event/?account=56387&project=trvnx&theme=default&gfx=x-surfer&bgcolor=ffffff&title=travianix+120+Gold&amount=499&currency=EUR&paytext=travianix+120+Gold','nsrpay','scrollbars=yes,status=yes,resizable=yes,toolbar=yes,width=800,height=600');return false;">
<img src="img/bezahlung/ebank2pay2.png" style="width:181px; height:38px;" alt="ebank2pay" /></a>
<br />
More information about micropayent can be found here: <a href="https://www.micropayment.de/" target="_blank"><br />More Info</a>
</td>
</tr>
</tbody>
</table>
-->
<table class="rate_details lang_ltr lang_de" cellpadding="1" cellspacing="1">
<thead>
<tr>
<th colspan="2">Paypal</th>
</tr>
</thead>
<tbody>
<tr>
<td class="pic">
<img src="img/bezahlung/paypal.jpg" style="99px; height:99px;" alt="Package B" />
<div>
Gold : <?php echo (defined('PLUS_PACKAGE_B_GOLD') ? PLUS_PACKAGE_B_GOLD : 120); ?>
<br />
Cost : <?php echo (defined('PLUS_PACKAGE_B_PRICE') ? PLUS_PACKAGE_B_PRICE : '4,99') . ' ' . (defined('PAYPAL_CURRENCY') ? PAYPAL_CURRENCY : 'EUR'); ?>
<br />
Wait: 24 hours
</div>
</td>
<td class="desc">
Initiate Payment by Paypal
<br /><br />
<form action="https://www.paypal.com/cgi-bin/webscr" method="post">
<!-- Identify your business so that you can collect the payments. -->
<input type="hidden" name="business" value="<?php echo (defined('PAYPAL_EMAIL') ? PAYPAL_EMAIL : 'novgorodschi@icloud.com'); ?>">
<!-- Specify a Buy Now button. -->
<input type="hidden" name="cmd" value="_xclick">
<!-- Specify details about the item that buyers will purchase. -->
<input type="hidden" name="item_name" value="<?php echo SERVER_NAME . ' Package B Gold Pack'; ?>">
<input type="hidden" name="amount" value="<?php echo (defined('PLUS_PACKAGE_B_PRICE') ? str_replace(",", ".", PLUS_PACKAGE_B_PRICE) : '4,99'); ?>">
<input type="hidden" name="currency_code" value="<?php echo (defined('PAYPAL_CURRENCY') ? PAYPAL_CURRENCY : 'EUR'); ?>">
<!-- Display the payment button. -->
<input type="image" name="submit" border="0"
src="https://www.paypalobjects.com/webstatic/en_US/i/btn/png/btn_buynow_107x26.png"
alt="Buy Now">
<img alt="" border="0" width="1" height="1" src="https://www.paypalobjects.com/en_US/i/scr/pixel.gif" >
</form>
<br />
More Info about PayPal can be found here: <br />
<a href="#" onclick="window.open('https://www.paypal.com/en/cgi-bin/webscr?cmd=xpt/cps/popup/OLCWhatIsPayPal-outside','external','scrollbars=yes,status=yes,resizable=yes,toolbar=yes,width=800,height=600');return false;">More Info</a>
<br />
</td>
</tr>
</tbody>
</table>
<!--
<table class="rate_details lang_ltr lang_de" cellpadding="1" cellspacing="1">
<thead>
<tr>
<th colspan="2">5. Skrill (moneybookers)</th>
</tr>
</thead>
<tbody>
<tr>
<td class="pic"><img src="img/bezahlung/skrill1.jpg" style="99px; height:99px;" alt="Paket A" />
<div>Gold : 120<br />Cost : 4,99 Euro<br />Wait: 24 hours</div>
</td>
<td class="desc">
Mit Skrill (moneybookers) kannst du mit deiner Kreditkarte oder per Überweisung von deinem Konto zahlen. <br />
<?PHP echo'<form action="https://www.moneybookers.com/app/payment.pl" target="_blank">
<input type="hidden" name="pay_to_email" value="novgorodschi@icloud.com">
<input type="hidden" name="recipient_description" value="netsoundradio">
<input type="hidden" name="transaction_id" value="112">
<input type="hidden" name="return_url" value="http://www.merchant.com/payment_made.htm">
<input type="hidden" name="return_url_text" value="Danke für deinen Einkauf">
<input type="hidden" name="return_url_target" value="1">
<input type="hidden" name="cancel_url" value="http://www.merchant.com/payment_cancelled.htm">
<input type="hidden" name="cancel_url_target" value="1">
<input type="hidden" name="status_url" value="mailto: novgorodschi@icloud.com">
<input type="hidden" name="status_url2" value="mailto: novgorodschi@icloud.com">
<input type="hidden" name="new_window_redirect" value="1">
<input type="hidden" name="dynamic_descriptor" value="Descriptor">
<input type="hidden" name="language" value="DE">
<input type="hidden" name="confirmation_note" value="Vielen Dank für deinen Einkauf! ">
<input type="hidden" name="merchant_fields" value="field1">
<input type="hidden" name="title" value="">
<input type="hidden" name="firstname" value="">
<input type="hidden" name="lastname" value="">
<input type="hidden" name="address" value="">
<input type="hidden" name="address2" value="Bitte Spielername eingeben">
<input type="hidden" name="phone_number" value="">
<input type="hidden" name="postal_code" value="">
<input type="hidden" name="city" value="">
<input type="hidden" name="state" value="">
<input type="hidden" name="country" value="GER">
<input type="hidden" name="amount" value="4.99">
<input type="hidden" name="currency" value="EUR">
<input type="hidden" name="amount2_description" value="Produktpreis:">
<input type="hidden" name="amount2" value="4.99">
<input type="hidden" name="amount3_description" value="Bearbeitung:">
<input type="hidden" name="amount3" value="0">
<input type="hidden" name="amount4_description" value="Steuer:">
<input type="hidden" name="amount4" value="0">
<input type="hidden" name="detail1_description" value="Product ID:">
<input type="hidden" name="detail1_text" value="Paket B : 100 Gold">
<input type="hidden" name="detail2_description" value="Beschreibung:">
<input type="hidden" name="detail2_text" value="Travian Gold ">
<input type="hidden" name="detail3_description" value="Verkäufer-ID:">
<input type="hidden" name="detail3_text" value="37115003">
<input type="hidden" name="detail4_description" value="Weitere Angaben:">
<input type="hidden" name="detail4_text" value="5-6 Tage Leieferzeit">
<input type="hidden" name="rec_period" value="1">
<input type="hidden" name="rec_grace_period" value="1">
<input type="hidden" name="rec_cycle" value="day">
<input type="hidden" name="ondemand_max_currency" value="EUR">
<input type="hidden" name="payment_methods" value="PWY21,PWY22,PWY26,PWY25,PWY28,PWY32,PWY33,PWY36,ACC,VSA,MSC,VSD,VSE,AMX,DIN,JCB,MAE,LSR,SLO,GCB,SFT,DID,GIR,ENT,EBT,SO2,NPY,PLI,DNK,CSI,PSP,EPY,BWI,MZM,">
<input type="hidden" name="submit_id" value="Submit">
<input type="image" src="img/bezahlung/skrill.png" alt="Absenden">
</form>';?>
<br />Mehr Information zu Skrill findest du hier: <a href="https://www.moneybookers.com/app/skrill.pl" target="_blank"><br />Weitere Infos</a>
</td>
</tr>
</tbody>
</table>
-->
<br /><br /><br /><br /><br /><br />
</div>
</div>
</div>
+37 -214
View File
@@ -1,220 +1,43 @@
<?php
include("Templates/Plus/pmenu.tpl");
$free = $session->uid;
$uid = (int)$session->uid;
$gold = defined('PLUS_PACKAGE_C_GOLD') ? PLUS_PACKAGE_C_GOLD : 360;
$price = defined('PLUS_PACKAGE_C_PRICE') ? str_replace(',', '.', PLUS_PACKAGE_C_PRICE) : '9.99';
$currency = defined('PAYPAL_CURRENCY') ? PAYPAL_CURRENCY : 'EUR';
$paypal = defined('PAYPAL_EMAIL') ? PAYPAL_EMAIL : 'novgorodschi@icloud.com';
$base = rtrim(HOMEPAGE,'/');
?>
<!-- Hinweis -->
<!--
<table class="rate_details lang_ltr lang_de" cellpadding="1" cellspacing="1">
<thead>
<tr>
<th colspan="2">1. Call2Pay</th>
</tr>
</thead>
<tbody>
<tr>
<td class="pic"><img src="img/bezahlung/call2pay.png" style="99px; height:99px;" alt="Paket A" />
<div>Gold : 360<br />Cost : 9,99 Euro<br />Wait: Instant</div>
</td>
<td class="desc">
Pay by Phone <br />
<table class="rate_details" cellpadding="1" cellspacing="1">
<thead><tr><th colspan="2">PayPal Package C</th></tr></thead>
<tbody>
<tr>
<td class="pic">
<img src="img/bezahlung/paypal.jpg" style="width:99px;height:99px;" alt="Package C">
<div>Gold: <?= $gold ?><br>Cost: <?= $price ?> <?= $currency ?><br>Wait: instant</div>
</td>
<td class="desc">
Pay securely with PayPal.<br><br>
<form action="https://www.paypal.com/cgi-bin/webscr" method="post">
<input type="hidden" name="cmd" value="_xclick">
<input type="hidden" name="business" value="<?= $paypal ?>">
<input type="hidden" name="item_name" value="<?= SERVER_NAME ?> Package C">
<input type="hidden" name="item_number" value="C-<?= $gold ?>">
<input type="hidden" name="amount" value="<?= $price ?>">
<input type="hidden" name="currency_code" value="<?= $currency ?>">
<a href="#"
onclick="window.open('http://billing.micropayment.de/call2pay/event/?account=56387&project=trvnx&theme=default&gfx=x-surfer&bgcolor=ffffff&title=travianix-360+Gold&amount=999','nsrpay','scrollbars=yes,status=yes,resizable=yes,toolbar=yes,width=800,height=600');return false;">
<img src="img/bezahlung/call2pay1.png" style="width:126px; height:38px;" alt="call2pay" /></a>
<br />
More information about micropayent can be found here: <a href="https://www.micropayment.de/" target="_blank"><br />More Info</a>
</td>
</tr>
</tbody>
</table>
<table class="rate_details lang_ltr lang_de" cellpadding="1" cellspacing="1">
<thead>
<tr>
<th colspan="2">2. Handy2Pay</th>
</tr>
</thead>
<tbody>
<tr>
<td class="pic"><img src="img/bezahlung/handy2pay.png" style="99px; height:99px;" alt="Paket A" />
<div>Gold : 360<br />Cost : 9,99 Euro<br />Wait: Instant</div>
</td>
<td class="desc">
Pay with SMS <br />
<!-- IDENTIFICARE -->
<input type="hidden" name="custom" value="<?= $uid ?>|112|<?= $gold ?>">
<input type="hidden" name="invoice" value="TX-<?= $uid ?>-<?= time() ?>">
<input type="hidden" name="notify_url" value="<?= $base ?>/paypal_ipn.php">
<input type="hidden" name="return" value="<?= $base ?>/plus.php?id=1&paid=1">
<input type="hidden" name="cancel_return" value="<?= $base ?>/plus.php?id=1">
<a href="#"
onclick="window.open('http://billing.micropayment.de/handypay/event/?account=56387&project=trvnx&theme=default&gfx=x-surfer&bgcolor=ffffff&title=travianix-+360+Gold&amount=999&paytext=TravianiX+360+Gold&smstext=travianix360gold','nsrpay','scrollbars=yes,status=yes,resizable=yes,toolbar=yes,width=800,height=600');return false;">
<img src="img/bezahlung/handy2pay2.png" style="width:126px; height:38px;" alt="handy2pay" /></a>
<br />
More information about micropayent can be found here: <a href="https://www.micropayment.de/" target="_blank"><br />More Info</a>
</td>
</tr>
</tbody>
<input type="image" src="https://www.paypalobjects.com/webstatic/en_US/i/btn/png/btn_buynow_107x26.png" name="submit" alt="Buy Now">
</form>
</td>
</tr>
</tbody>
</table>
<table class="rate_details lang_ltr lang_de" cellpadding="1" cellspacing="1">
<thead>
<tr>
<th colspan="2">3. Ebank2Pay</th>
</tr>
</thead>
<tbody>
<tr>
<td class="pic"><img src="img/bezahlung/ebank2pay.png" style="99px; height:99px;" alt="Paket A" />
<div>Gold : 360<br />Cost : 9,99 Euro<br />Wait: Instant</div>
</td>
<td class="desc">
Pay by online banktranfer <br />
<a href="#"
onclick="window.open('http://billing.micropayment.de/ebank2pay/event/?account=56387&project=trvnx&theme=default&gfx=x-surfer&bgcolor=ffffff&title=travianix+360+Gold&amount=999&currency=EUR&paytext=travianix+360+Gold','nsrpay','scrollbars=yes,status=yes,resizable=yes,toolbar=yes,width=800,height=600');return false;">
<img src="img/bezahlung/ebank2pay2.png" style="width:181px; height:38px;" alt="ebank2pay" /></a>
<br />
More information about micropayent can be found here: <a href="https://www.micropayment.de/" target="_blank"><br />More Info</a>
</td>
</tr>
</tbody>
</table>
-->
<table class="rate_details lang_ltr lang_de" cellpadding="1" cellspacing="1">
<thead>
<tr>
<th colspan="2">Paypal</th>
</tr>
</thead>
<tbody>
<tr>
<td class="pic">
<img src="img/bezahlung/paypal.jpg" style="99px; height:99px;" alt="Package C" />
<div>
Gold : <?php echo (defined('PLUS_PACKAGE_C_GOLD') ? PLUS_PACKAGE_C_GOLD : 360); ?>
<br />
Cost : <?php echo (defined('PLUS_PACKAGE_C_PRICE') ? PLUS_PACKAGE_C_PRICE : '9,99') . ' ' . (defined('PAYPAL_CURRENCY') ? PAYPAL_CURRENCY : 'EUR'); ?>
<br />
Wait: 24 hours
</div>
</td>
<td class="desc">
Initiate Payment by Paypal
<br /><br />
<form action="https://www.paypal.com/cgi-bin/webscr" method="post">
<!-- Identify your business so that you can collect the payments. -->
<input type="hidden" name="business" value="<?php echo (defined('PAYPAL_EMAIL') ? PAYPAL_EMAIL : 'novgorodschi@icloud.com'); ?>">
<!-- Specify a Buy Now button. -->
<input type="hidden" name="cmd" value="_xclick">
<!-- Specify details about the item that buyers will purchase. -->
<input type="hidden" name="item_name" value="<?php echo SERVER_NAME . ' Package C Gold Pack (' . $session->username . ')'; ?>">
<input type="hidden" name="amount" value="<?php echo (defined('PLUS_PACKAGE_C_PRICE') ? str_replace(",", ".", PLUS_PACKAGE_C_PRICE) : '9,99'); ?>">
<input type="hidden" name="currency_code" value="<?php echo (defined('PAYPAL_CURRENCY') ? PAYPAL_CURRENCY : 'EUR'); ?>">
<!-- Display the payment button. -->
<input type="image" name="submit" border="0"
src="https://www.paypalobjects.com/webstatic/en_US/i/btn/png/btn_buynow_107x26.png"
alt="Buy Now">
<img alt="" border="0" width="1" height="1" src="https://www.paypalobjects.com/en_US/i/scr/pixel.gif" >
</form>
<br />
More Info about PayPal can be found here: <br />
<a href="#" onclick="window.open('https://www.paypal.com/en/cgi-bin/webscr?cmd=xpt/cps/popup/OLCWhatIsPayPal-outside','external','scrollbars=yes,status=yes,resizable=yes,toolbar=yes,width=800,height=600');return false;">More Info</a>
<br />
</td>
</tr>
</tbody>
</table>
<!--
<table class="rate_details lang_ltr lang_de" cellpadding="1" cellspacing="1">
<thead>
<tr>
<th colspan="2">5. Skrill (moneybookers)</th>
</tr>
</thead>
<tbody>
<tr>
<td class="pic"><img src="img/bezahlung/skrill1.jpg" style="99px; height:99px;" alt="Paket A" />
<div>Gold : 360<br />Cost : 9,99 Euro<br />Wait: 24 hours</div>
</td>
<td class="desc">
Mit Skrill (moneybookers) kannst du mit deiner Kreditkarte oder per Überweisung von deinem Konto zahlen. <br />
<?PHP echo'<form action="https://www.moneybookers.com/app/payment.pl" target="_blank">
<input type="hidden" name="pay_to_email" value="novgorodschi@icloud.com">
<input type="hidden" name="recipient_description" value="netsoundradio">
<input type="hidden" name="transaction_id" value="112">
<input type="hidden" name="return_url" value="http://www.merchant.com/payment_made.htm">
<input type="hidden" name="return_url_text" value="Danke für deinen Einkauf">
<input type="hidden" name="return_url_target" value="1">
<input type="hidden" name="cancel_url" value="http://www.merchant.com/payment_cancelled.htm">
<input type="hidden" name="cancel_url_target" value="1">
<input type="hidden" name="status_url" value="mailto: novgorodschi@icloud.com">
<input type="hidden" name="status_url2" value="mailto: novgorodschi@icloud.com">
<input type="hidden" name="new_window_redirect" value="1">
<input type="hidden" name="dynamic_descriptor" value="Descriptor">
<input type="hidden" name="language" value="DE">
<input type="hidden" name="confirmation_note" value="Vielen Dank für deinen Einkauf! ">
<input type="hidden" name="merchant_fields" value="field1">
<input type="hidden" name="title" value="">
<input type="hidden" name="firstname" value="">
<input type="hidden" name="lastname" value="">
<input type="hidden" name="address" value="">
<input type="hidden" name="address2" value="Bitte Spielername eingeben">
<input type="hidden" name="phone_number" value="">
<input type="hidden" name="postal_code" value="">
<input type="hidden" name="city" value="">
<input type="hidden" name="state" value="">
<input type="hidden" name="country" value="GER">
<input type="hidden" name="amount" value="9.99">
<input type="hidden" name="currency" value="EUR">
<input type="hidden" name="amount2_description" value="Produktpreis:">
<input type="hidden" name="amount2" value="9.99">
<input type="hidden" name="amount3_description" value="Bearbeitung:">
<input type="hidden" name="amount3" value="0">
<input type="hidden" name="amount4_description" value="Steuer:">
<input type="hidden" name="amount4" value="0">
<input type="hidden" name="detail1_description" value="Product ID:">
<input type="hidden" name="detail1_text" value="Paket C : 600 Gold">
<input type="hidden" name="detail2_description" value="Beschreibung:">
<input type="hidden" name="detail2_text" value="Travian Gold ">
<input type="hidden" name="detail3_description" value="Verkäufer-ID:">
<input type="hidden" name="detail3_text" value="37115003">
<input type="hidden" name="detail4_description" value="Weitere Angaben:">
<input type="hidden" name="detail4_text" value="5-6 Tage Leieferzeit">
<input type="hidden" name="rec_period" value="1">
<input type="hidden" name="rec_grace_period" value="1">
<input type="hidden" name="rec_cycle" value="day">
<input type="hidden" name="ondemand_max_currency" value="EUR">
<input type="hidden" name="payment_methods" value="PWY21,PWY22,PWY26,PWY25,PWY28,PWY32,PWY33,PWY36,ACC,VSA,MSC,VSD,VSE,AMX,DIN,JCB,MAE,LSR,SLO,GCB,SFT,DID,GIR,ENT,EBT,SO2,NPY,PLI,DNK,CSI,PSP,EPY,BWI,MZM,">
<input type="hidden" name="submit_id" value="Submit">
<input type="image" src="img/bezahlung/skrill.png" alt="Absenden">
</form>';?>
<br />Mehr Information zu Skrill findest du hier: <a href="https://www.moneybookers.com/app/skrill.pl" target="_blank"><br />Weitere Infos</a>
</td>
</tr>
</tbody>
</table>
-->
<br /><br /><br /><br /><br /><br />
</div>
</div>
</div></div>
+35 -189
View File
@@ -1,193 +1,39 @@
<?php
include("Templates/Plus/pmenu.tpl");
$free = $session->uid;
$uid = (int)$session->uid;
$gold = defined('PLUS_PACKAGE_D_GOLD') ? PLUS_PACKAGE_D_GOLD : 1000;
$price = defined('PLUS_PACKAGE_D_PRICE') ? str_replace(',', '.', PLUS_PACKAGE_D_PRICE) : '19.99';
$currency = defined('PAYPAL_CURRENCY') ? PAYPAL_CURRENCY : 'EUR';
$paypal = defined('PAYPAL_EMAIL') ? PAYPAL_EMAIL : 'novgorodschi@icloud.com';
$base = rtrim(HOMEPAGE,'/');
?>
<!-- Hinweis -->
<!--
<table class="rate_details lang_ltr lang_de" cellpadding="1" cellspacing="1">
<thead>
<tr>
<th colspan="2">1. Call2Pay</th>
</tr>
</thead>
<tbody>
<tr>
<td class="pic"><img src="img/bezahlung/call2pay.png" style="99px; height:99px;" alt="Paket A" />
<div>Gold : 1000<br />Cost : 19,99 Euro<br />Wait : Instant</div>
</td>
<td class="desc">
Pay by phone <br />
<a href="#"
onclick="window.open('http://billing.micropayment.de/call2pay/event/?account=56387&project=trvnx&theme=default&gfx=x-surfer&bgcolor=ffffff&title=travianix-1000+Gold&amount=1999','nsrpay','scrollbars=yes,status=yes,resizable=yes,toolbar=yes,width=800,height=600');return false;">
<img src="img/bezahlung/call2pay1.png" style="width:126px; height:38px;" alt="call2pay" /></a>
<br />
More information about micropayent can be found here: <a href="https://www.micropayment.de/" target="_blank"><br />More Info</a>
</td>
</tr>
</tbody>
<table class="rate_details" cellpadding="1" cellspacing="1">
<thead><tr><th colspan="2">PayPal Package D</th></tr></thead>
<tbody>
<tr>
<td class="pic">
<img src="img/bezahlung/paypal.jpg" style="width:99px;height:99px;" alt="Package D">
<div>Gold: <?= $gold ?><br>Cost: <?= $price ?> <?= $currency ?><br>Wait: instant</div>
</td>
<td class="desc">
Pay securely with PayPal.<br><br>
<form action="https://www.paypal.com/cgi-bin/webscr" method="post">
<input type="hidden" name="cmd" value="_xclick">
<input type="hidden" name="business" value="<?= $paypal ?>">
<input type="hidden" name="item_name" value="<?= SERVER_NAME ?> Package D">
<input type="hidden" name="item_number" value="D-<?= $gold ?>">
<input type="hidden" name="amount" value="<?= $price ?>">
<input type="hidden" name="currency_code" value="<?= $currency ?>">
<input type="hidden" name="custom" value="<?= $uid ?>|113|<?= $gold ?>">
<input type="hidden" name="invoice" value="TX-<?= $uid ?>-<?= time() ?>">
<input type="hidden" name="notify_url" value="<?= $base ?>/paypal_ipn.php">
<input type="hidden" name="return" value="<?= $base ?>/plus.php?id=1&paid=1">
<input type="hidden" name="cancel_return" value="<?= $base ?>/plus.php?id=1">
<input type="image" src="https://www.paypalobjects.com/webstatic/en_US/i/btn/png/btn_buynow_107x26.png" name="submit" alt="Buy Now">
</form>
</td>
</tr>
</tbody>
</table>
<table class="rate_details lang_ltr lang_de" cellpadding="1" cellspacing="1">
<thead>
<tr>
<th colspan="2">2. Ebank2Pay</th>
</tr>
</thead>
<tbody>
<tr>
<td class="pic"><img src="img/bezahlung/ebank2pay.png" style="99px; height:99px;" alt="Paket A" />
<div>Gold : 1000<br />Cost : 19,99 Euro<br />Wait : Instant</div>
</td>
<td class="desc">
Pay by online banktransfer <br />
<a href="#"
onclick="window.open('http://billing.micropayment.de/ebank2pay/event/?account=56387&project=trvnx&theme=default&gfx=x-surfer&bgcolor=ffffff&title=travianix+1000+Gold&amount=1999&currency=EUR&paytext=travianix+1000+Gold','nsrpay','scrollbars=yes,status=yes,resizable=yes,toolbar=yes,width=800,height=600');return false;">
<img src="img/bezahlung/ebank2pay2.png" style="width:181px; height:38px;" alt="ebank2pay" /></a>
<br />
More information about micropayent can be found here: <a href="https://www.micropayment.de/" target="_blank"><br />More Info</a>
</td>
</tr>
</tbody>
</table>
-->
<table class="rate_details lang_ltr lang_de" cellpadding="1" cellspacing="1">
<thead>
<tr>
<th colspan="2">Paypal</th>
</tr>
</thead>
<tbody>
<tr>
<td class="pic">
<img src="img/bezahlung/paypal.jpg" style="99px; height:99px;" alt="Package D" />
<div>
Gold : <?php echo (defined('PLUS_PACKAGE_D_GOLD') ? PLUS_PACKAGE_D_GOLD : 1000); ?>
<br />
Cost : <?php echo (defined('PLUS_PACKAGE_D_PRICE') ? PLUS_PACKAGE_D_PRICE : '19,99') . ' ' . (defined('PAYPAL_CURRENCY') ? PAYPAL_CURRENCY : 'EUR'); ?>
<br />
Wait: 24 hours
</div>
</td>
<td class="desc">
Initiate Payment by Paypal
<br /><br />
<form action="https://www.paypal.com/cgi-bin/webscr" method="post">
<!-- Identify your business so that you can collect the payments. -->
<input type="hidden" name="business" value="<?php echo (defined('PAYPAL_EMAIL') ? PAYPAL_EMAIL : 'novgorodschi@icloud.com'); ?>">
<!-- Specify a Buy Now button. -->
<input type="hidden" name="cmd" value="_xclick">
<!-- Specify details about the item that buyers will purchase. -->
<input type="hidden" name="item_name" value="<?php echo SERVER_NAME . ' Package D Gold Pack (' . $session->username . ')'; ?>">
<input type="hidden" name="amount" value="<?php echo (defined('PLUS_PACKAGE_D_PRICE') ? str_replace(",", ".", PLUS_PACKAGE_D_PRICE) : '19,99'); ?>">
<input type="hidden" name="currency_code" value="<?php echo (defined('PAYPAL_CURRENCY') ? PAYPAL_CURRENCY : 'EUR'); ?>">
<!-- Display the payment button. -->
<input type="image" name="submit" border="0"
src="https://www.paypalobjects.com/webstatic/en_US/i/btn/png/btn_buynow_107x26.png"
alt="Buy Now">
<img alt="" border="0" width="1" height="1" src="https://www.paypalobjects.com/en_US/i/scr/pixel.gif" >
</form>
<br />
More Info about PayPal can be found here: <br />
<a href="#" onclick="window.open('https://www.paypal.com/en/cgi-bin/webscr?cmd=xpt/cps/popup/OLCWhatIsPayPal-outside','external','scrollbars=yes,status=yes,resizable=yes,toolbar=yes,width=800,height=600');return false;">More Info</a>
<br />
</td>
</tr>
</tbody>
</table>
<!--
<table class="rate_details lang_ltr lang_de" cellpadding="1" cellspacing="1">
<thead>
<tr>
<th colspan="2">4. Skrill (moneybookers)</th>
</tr>
</thead>
<tbody>
<tr>
<td class="pic"><img src="img/bezahlung/skrill1.jpg" style="99px; height:99px;" alt="Paket A" />
<div>Gold : 1000<br />Cost : 19,99 Euro<br />Wait : 24 hours</div>
</td>
<td class="desc">
Mit Skrill (moneybookers) kannst du mit deiner Kreditkarte oder per Überweisung von deinem Konto zahlen. <br />
<? echo'<form action="https://www.moneybookers.com/app/payment.pl" target="_blank">
<input type="hidden" name="pay_to_email" value="novgorodschi@icloud.com">
<input type="hidden" name="recipient_description" value="netsoundradio">
<input type="hidden" name="transaction_id" value="113">
<input type="hidden" name="return_url" value="http://www.merchant.com/payment_made.htm">
<input type="hidden" name="return_url_text" value="Danke für deinen Einkauf">
<input type="hidden" name="return_url_target" value="1">
<input type="hidden" name="cancel_url" value="http://www.merchant.com/payment_cancelled.htm">
<input type="hidden" name="cancel_url_target" value="1">
<input type="hidden" name="status_url" value="mailto: novgorodschi@icloud.com">
<input type="hidden" name="status_url2" value="mailto: novgorodschi@icloud.com">
<input type="hidden" name="new_window_redirect" value="1">
<input type="hidden" name="dynamic_descriptor" value="Descriptor">
<input type="hidden" name="language" value="DE">
<input type="hidden" name="confirmation_note" value="Vielen Dank für deinen Einkauf! ">
<input type="hidden" name="merchant_fields" value="field1">
<input type="hidden" name="title" value="">
<input type="hidden" name="firstname" value="">
<input type="hidden" name="lastname" value="">
<input type="hidden" name="address" value="">
<input type="hidden" name="address2" value="Bitte Spielername eingeben">
<input type="hidden" name="phone_number" value="">
<input type="hidden" name="postal_code" value="">
<input type="hidden" name="city" value="">
<input type="hidden" name="state" value="">
<input type="hidden" name="country" value="GER">
<input type="hidden" name="amount" value="19.99">
<input type="hidden" name="currency" value="EUR">
<input type="hidden" name="amount2_description" value="Produktpreis:">
<input type="hidden" name="amount2" value="19.99">
<input type="hidden" name="amount3_description" value="Bearbeitung:">
<input type="hidden" name="amount3" value="0">
<input type="hidden" name="amount4_description" value="Steuer:">
<input type="hidden" name="amount4" value="0">
<input type="hidden" name="detail1_description" value="Product ID:">
<input type="hidden" name="detail1_text" value="Paket D : 600 Gold">
<input type="hidden" name="detail2_description" value="Beschreibung:">
<input type="hidden" name="detail2_text" value="Travian Gold ">
<input type="hidden" name="detail3_description" value="Verkäufer-ID:">
<input type="hidden" name="detail3_text" value="37115003">
<input type="hidden" name="detail4_description" value="Weitere Angaben:">
<input type="hidden" name="detail4_text" value="5-6 Tage Leieferzeit">
<input type="hidden" name="rec_period" value="1">
<input type="hidden" name="rec_grace_period" value="1">
<input type="hidden" name="rec_cycle" value="day">
<input type="hidden" name="ondemand_max_currency" value="EUR">
<input type="hidden" name="payment_methods" value="PWY21,PWY22,PWY26,PWY25,PWY28,PWY32,PWY33,PWY36,ACC,VSA,MSC,VSD,VSE,AMX,DIN,JCB,MAE,LSR,SLO,GCB,SFT,DID,GIR,ENT,EBT,SO2,NPY,PLI,DNK,CSI,PSP,EPY,BWI,MZM,">
<input type="hidden" name="submit_id" value="Submit">
<input type="image" src="img/bezahlung/skrill.png" alt="Absenden">
</form>';?>
<br />Mehr Information zu Skrill findest du hier: <a href="https://www.moneybookers.com/app/skrill.pl" target="_blank"><br />Weitere Infos</a>
</td>
</tr>
</tbody>
</table>
-->
<br /><br /><br /><br /><br /><br />
</div>
</div>
</div></div>
+41 -26
View File
@@ -1,28 +1,43 @@
<?php
////////////// made by alq0rsan, improved by evader /////////////////////////
if($session->gold >= 5){
$MyGold = mysqli_query($database->dblink,"SELECT gold, b4 FROM ".TB_PREFIX."users WHERE `id`='".$session->uid."'") or die(mysqli_error($database->dblink));
$golds = mysqli_fetch_array($MyGold);
if($session->sit == 0) {
if (mysqli_num_rows($MyGold)) {
if($golds['gold'] >= 5) {
if($golds['b4'] < time()) {
mysqli_query($database->dblink,"UPDATE ".TB_PREFIX."users set b4 = '".(time()+PLUS_PRODUCTION)."' where `id`='".$session->uid."'") or die(mysqli_error($database->dblink));
} else {
mysqli_query($database->dblink,"UPDATE ".TB_PREFIX."users set b4 = '".($golds['b4']+PLUS_PRODUCTION)."' where `id`='".$session->uid."'") or die(mysqli_error($database->dblink));
}
$done1 = "+25% Production: Crop";
mysqli_query($database->dblink,"UPDATE ".TB_PREFIX."users set gold = ".($session->gold-5)." where `id`='".$session->uid."'") or die(mysqli_error($database->dblink));
mysqli_query($database->dblink,"INSERT INTO ".TB_PREFIX."gold_fin_log (wid,log) VALUES ('".$village->wid."', '+25% Production: Crop')") or die(mysqli_error($database->dblink));
} else {
$done1 = "You need more gold";
}
} else {
$done1 = "Failed crop attempt";
mysqli_query($database->dblink,"INSERT INTO ".TB_PREFIX."gold_fin_log (wid,log) VALUES ('".$village->wid."', 'Failed +25% Production: Crop')") or die(mysqli_error($database->dblink));
}
}
header("Location: plus.php?id=3");
exit;
#################################################################################
## -= YOU MAY NOT REMOVE OR CHANGE THIS NOTICE =- ##
## --------------------------------------------------------------------------- ##
## Project: TravianZ (Refactor incremental) ##
## File: 8.tpl ##
## Description: Crop Plus ##
## Made by: alq0rsan ##
## Improved by: evader ##
## Refactor by: Shadow ##
## ##
#################################################################################
if($session->sit == 0) {
$uid = (int)$session->uid;
$now = time();
$cost = 5;
// UPDATE atomic: scade gold doar dacă ai, și prelungește b4
$sql = "UPDATE ".TB_PREFIX."users
SET gold = gold - $cost,
b4 = IF(b4 > $now, b4 + ".PLUS_PRODUCTION.", $now + ".PLUS_PRODUCTION.")
WHERE id = '$uid' AND gold >= $cost";
mysqli_query($database->dblink, $sql) or die(mysqli_error($database->dblink));
if(mysqli_affected_rows($database->dblink) == 1) {
// succes - update instant în sesiune
$session->gold -= $cost;
// log
mysqli_query($database->dblink, "INSERT INTO ".TB_PREFIX."gold_fin_log (wid,log) VALUES ('".$village->wid."', '+25% Production: Crop')") or die(mysqli_error($database->dblink));
// invalidează cache v9
if(method_exists($database, 'clearUserCache')) {
$database->clearUserCache($uid);
}
}
}
?>
header("Location: plus.php?id=3");
exit;
?>
-48
View File
@@ -1,48 +0,0 @@
<!---<?php
/*include("Templates/Plus/pmenu.tpl");
$MyVilId = mysqli_query($database->dblink,"SELECT * FROM ".TB_PREFIX."vdata WHERE `wref`='".$village->wid."'") or die(mysqli_error($database->dblink));
$uuVilid = mysqli_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
if($session->sit == 0) {
/* $MyGold = mysqli_query($database->dblink,"SELECT * FROM ".TB_PREFIX."users WHERE `id`='".$session->uid."'") or die(mysqli_error($database->dblink));
$golds = mysqli_fetch_array($MyGold);
$MyId = mysqli_query($database->dblink,"SELECT * FROM ".TB_PREFIX."users WHERE `id`='".$session->uid."'") or die(mysqli_error($database->dblink));
$uuid = mysqli_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>";
mysqli_query($database->dblink,"UPDATE ".TB_PREFIX."users set gold = ".($session->gold-1)." where `id`='".$session->uid."'") or die(mysqli_error($database->dblink));
*/
}
?>
</tr>
<tr>
<td colspan="4" align="center">
<input type="submit" value="Trade 1:1" name="B1"></td>
</tr>
</table>
</div>
</form>-->
-29
View File
@@ -1,29 +0,0 @@
<?php
////////////// made by alq0rsan /////////////////////////
$MyVilId = mysqli_query($database->dblink,"SELECT * FROM ".TB_PREFIX."vdata WHERE `wref`='".$village->wid."'") or die(mysqli_error($database->dblink));
$uuVilid = mysqli_fetch_array($MyVilId);
$totalT = ($T1+$T2+$T3+$T4);
$totalR = ($uuVilid['6']+$uuVilid['7']+$uuVilid['8']+$uuVilid['10']);
$goldlog = mysqli_fetch_array(mysqli_query($database->dblink,"SELECT Count(*) as Total FROM ".TB_PREFIX."gold_fin_log"), MYSQLI_ASSOC) or die(mysqli_error($database->dblink));
if($totalT <= $totalR) {
mysqli_query($database->dblink,"UPDATE ".TB_PREFIX."vdata set wood = '".$T1."' where `wref`='".$village->wid."'") or die(mysqli_error($database->dblink));
mysqli_query($database->dblink,"UPDATE ".TB_PREFIX."vdata set clay = '".$T2."' where `wref`='".$village->wid."'") or die(mysqli_error($database->dblink));
mysqli_query($database->dblink,"UPDATE ".TB_PREFIX."vdata set iron = '".$T3."' where `wref`='".$village->wid."'") or die(mysqli_error($database->dblink));
mysqli_query($database->dblink,"UPDATE ".TB_PREFIX."vdata set crop = '".$T4."' where `wref`='".$village->wid."'") or die(mysqli_error($database->dblink));
mysqli_query($database->dblink,"UPDATE ".TB_PREFIX."users set gold = ".($session->gold-3)." where `id`='".$session->uid."'") or die(mysqli_error($database->dblink));
mysqli_query($database->dblink,"INSERT INTO ".TB_PREFIX."gold_fin_log VALUES ('".($goldlog['Total']+1)."', '".$village->wid."', 'trade 1:1')") or die(mysqli_error($database->dblink));
echo "done";
} else {
echo "failed";
mysqli_query($database->dblink,"INSERT INTO ".TB_PREFIX."gold_fin_log VALUES ('".($goldlog['Total']+1)."', '".$village->wid."', 'Failed trade 1:1')") or die(mysqli_error($database->dblink));
}
header("Location: plus.php?id=3");
exit;
?>
+31 -3
View File
@@ -1,8 +1,36 @@
<?php
////////////// made by alq0rsan /////////////////////////
if($session->gold >= 100 && $session->sit == 0 && $session->goldclub == 0) {
mysqli_query($database->dblink,"UPDATE ".TB_PREFIX."users set goldclub = 1, gold = gold - 100 where `id`='".$session->uid."'");
// Gold Club activation 100 gold, atomic
$uid = (int)$session->uid;
if($session->sit != 0) {
header("Location: plus.php?id=3"); exit;
}
// un singur query care face tot
mysqli_query($database->dblink,
"UPDATE ".TB_PREFIX."users
SET goldclub = 1, gold = gold - 100
WHERE id = $uid AND gold >= 100 AND goldclub = 0"
);
if(mysqli_affected_rows($database->dblink) == 1) {
// succes update sesiunea
$session->gold -= 100;
$session->goldclub = 1;
$_SESSION['gold'] = $session->gold;
$_SESSION['goldclub'] = 1;
if(isset($database->cache)) {
$database->cache->delete('user:'.$uid);
}
// log
mysqli_query($database->dblink,
"INSERT INTO ".TB_PREFIX."gold_fin_log (wid, action, time)
VALUES (0, 'Gold Club activated', ".time().")"
);
}
header("Location: plus.php?id=3");
exit;
?>
+49 -202
View File
@@ -1,207 +1,54 @@
<?php
include("Templates/Plus/pmenu.tpl");
$plusFeatures = [
['title'=>'Waiting loop for constructions', 'img'=>'p1', '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.'],
['title'=>'Larger map', 'img'=>'xxl_map', '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.'],
['title'=>'Archive function for reports and messages', 'img'=>'p5', '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.'],
['title'=>'Sorting function for reports and messages', 'img'=>'sort', '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.'],
['title'=>'Sorting function for the marketplace', 'img'=>'p6', '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.'],
['title'=>'Auto-completion', 'img'=>'autovv', '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.'],
['title'=>'Report filter', 'img'=>'bfilter', '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.'],
['title'=>'Freely definable direct links', 'img'=>'p7', '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.'],
['title'=>'Graphical statistics', 'img'=>'st1', 'text'=>'These statistics show you the chronological development of your account, e.g. the ranking, your army\'s strength or your population\'s development.'],
['title'=>'Central account overview', 'img'=>'dorf3', '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.'],
['title'=>'Notepad', 'img'=>'p8', '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.'],
];
$goldFeatures = [
['title'=>'Production bonus for lumber', 'img'=>'p1_25', '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.'],
['title'=>'Production bonus for clay', 'img'=>'p2_25', '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.'],
['title'=>'Production bonus for iron', 'img'=>'p3_25', '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.'],
['title'=>'Production bonus for crop', 'img'=>'p4_25', '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.'],
['title'=>'Complete construction orders & research immediately.', 'img'=>'bau0', '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.'],
['title'=>'NPC Merchant', 'img'=>'npc', 'text'=>'The NPC Merchant will exchange any desired amount of resources in a village with other resources at a ratio of 1:1.'],
];
?>
<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>
<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>
<?php foreach($plusFeatures as $f): ?>
<tr><th colspan="2"><?= $f['title'] ?></th></tr>
<tr>
<td class="preview"><a href="plus.php?id=3"><img class="<?= $f['img'] ?>" src="img/x.gif" alt="<?= $f['title'] ?>" /></a></td>
<td class="text"><?= $f['text'] ?></td>
</tr>
<tr><td colspan="2" class="empty"></td></tr>
<?php endforeach; ?>
</tbody></table>
</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">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>
<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>
<?php foreach($goldFeatures as $f): ?>
<tr><th colspan="2"><?= $f['title'] ?></th></tr>
<tr>
<td class="preview"><a href="plus.php?id=3"><img class="<?= $f['img'] ?>" src="img/x.gif" alt="<?= $f['title'] ?>" /></a></td>
<td class="text"><?= $f['text'] ?><br><br><span style="color:#F00">This feature is NOT included in the gold club!</span></td>
</tr>
<tr><td colspan="2" class="empty"></td></tr>
<?php endforeach; ?>
</tbody></table>
</div>
+154 -424
View File
@@ -1,454 +1,184 @@
<?php
//TODO: Reduce this file by a lot, by using arrays
$MyGold = mysqli_query($database->dblink, "SELECT * FROM " . TB_PREFIX . "users WHERE `id`='" . $session->uid . "'") or die(mysqli_error($database->dblink));
$golds = mysqli_fetch_array($MyGold);
// TODO: Reduce this file by a lot, by using arrays
$MyGold = mysqli_query($database->dblink, "SELECT * FROM " . TB_PREFIX . "users WHERE id='".$session->uid."'") or die(mysqli_error($database->dblink));
$golds = mysqli_fetch_assoc($MyGold);
include ("Templates/Plus/pmenu.tpl");
$MyGold = mysqli_query($database->dblink, "SELECT * FROM " . TB_PREFIX . "users WHERE `id`='" . $session->uid . "'") or die(mysqli_error($database->dblink));
$golds = mysqli_fetch_array($MyGold);
$date2 = time();
$today = date("mdHi");
if (mysqli_num_rows($MyGold)) {
if ($session->gold == 0)
if ($golds) {
if ($golds['gold'] == 0)
echo "<p>You currently don't own gold.</p>";
else
echo "<p>You currently have <b> $session->gold </b> gold</p>";
echo "<p>You currently have <b>".$golds['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"><a href="#" onClick="return Popup(0,6);"><img
class="help" src="img/x.gif" alt="" title="" /></a></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");
function formatRemainingTime($endTimestamp, $nowTimestamp) {
$remaining = (int)$endTimestamp - (int)$nowTimestamp;
if ($remaining <= 0) {
return '';
}
$days = intdiv($remaining, 86400);
$remaining %= 86400;
$hours = intdiv($remaining, 3600);
$remaining %= 3600;
$mins = intdiv($remaining, 60);
$secs = $remaining % 60;
if ($remaining <= 0) return '';
$days = intdiv($remaining, 86400); $remaining %= 86400;
$hours = intdiv($remaining, 3600); $remaining %= 3600;
$mins = intdiv($remaining, 60); $secs = $remaining % 60;
return 'Remaining: <b>'.$days.'</b> days <b>'.$hours.'</b> hours <b>'.$mins.'</b> mins <b>'.$secs.'</b> secs (until '.date('H:i:s', (int)$endTimestamp).')';
}
if ($datetimep == 0) echo "get PLUS<br>";
else
{
if ($datetimep <= $date2) {
print "Your PLUS advantage has ended.<br>";
mysqli_query($database->dblink, "UPDATE " . TB_PREFIX . "users set plus = '0' where `id`='" . $session->uid . "'") or die(mysqli_error($database->dblink));
} else {
echo "<font color='#B3B3B3' size='1'>" . formatRemainingTime($datetimep, $date2) . "</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 = mysqli_query($database->dblink, "SELECT * FROM " . TB_PREFIX . "users WHERE `id`='" . $session->uid . "'") or die(mysqli_error($database->dblink));
$golds = mysqli_fetch_array($MyGold);
if (mysqli_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 href="#" onClick="return Popup(1,6);"><img
class="help" src="img/x.gif" alt="" title="" /></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) {
echo "<font color='#B3B3B3' size='1'>" . formatRemainingTime($tl_b1, $date2) . "</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 (mysqli_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 (mysqli_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"><a href="#" onClick="return Popup(2,6);"><img
class="help" src="img/x.gif" alt="" title="" /></a></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) {
echo "<font color='#B3B3B3' size='1'>" . formatRemainingTime($tl_b2, $date2) . "</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 (mysqli_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 (mysqli_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"><a href="#" onClick="return Popup(3,6);"><img
class="help" src="img/x.gif" alt="" title="" /></a></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) {
echo "<font color='#B3B3B3' size='1'>" . formatRemainingTime($tl_b3, $date2) . "</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 (mysqli_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 (mysqli_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 href="#" onClick="return Popup(4,6);"><img
class="help" src="img/x.gif" alt="" title="" /></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) {
echo "<font color='#B3B3B3' size='1'>" . formatRemainingTime($tl_b4, $date2) . "</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 (mysqli_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 (mysqli_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"><a href="#" onClick="return Popup(7,6);"><img
class="help" src="img/x.gif" alt="" title="" /></a></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 (mysqli_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 (mysqli_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"><a href="#" onClick="return Popup(8,6);"><img
class="help" src="img/x.gif" alt="" title="" /></a></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 (mysqli_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 (mysqli_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>
<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>
<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"><a href="#" onClick="return Popup(0,6);"><img class="help" src="img/x.gif" alt="" /></a></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
if ($datetimep == 0) echo "get PLUS<br>";
else {
if ($datetimep <= $date2) {
echo "Your PLUS advantage has ended.<br>";
mysqli_query($database->dblink, "UPDATE ".TB_PREFIX."users SET plus='0' WHERE id='".$session->uid."'");
} else {
echo "<font color='#B3B3B3' size='1'>".formatRemainingTime($datetimep, $date2)."</font>";
}
}
?></span></td>
<td class="dur"><?php echo (PLUS_TIME >= 86400) ? (PLUS_TIME/86400).' Days' : (PLUS_TIME/3600).' Hours'; ?></td>
<td class="cost"><img src="img/x.gif" class="gold" />10</td>
<td class="act"><?php
if ($golds['gold'] > 9 && $datetimep < $date2) {
echo '<a href="plus.php?id=8" onclick="if(this.dataset.c) return false; this.dataset.c=1; this.style.pointerEvents=\'none\'; this.style.opacity=\'0.5\';"><span>Activate</span></a>';
} elseif ($golds['gold'] > 9 && $datetimep > $date2) {
echo '<a href="plus.php?id=8" onclick="if(this.dataset.c) return false; this.dataset.c=1; this.style.pointerEvents=\'none\'; this.style.opacity=\'0.5\';"><span>Extend</span></a>';
} 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>
<!-- LUMBER -->
<tr>
<td class="man"><a href="#" onClick="return Popup(1,6);"><img class="help" src="img/x.gif" /></a></td>
<td class="desc">+<b>25</b>% <img class="r1" src="img/x.gif" /> Production: Lumber<br />
<span class="run"><?php $tl_b1=$golds['b1']; if($tl_b1>=$date2) echo "<font color='#B3B3B3' size='1'>".formatRemainingTime($tl_b1,$date2)."</font>"; ?></span></td>
<td class="dur"><?php echo (PLUS_PRODUCTION>=86400)?(PLUS_PRODUCTION/86400).' Days':(PLUS_PRODUCTION/3600).' Hours'; ?></td>
<td class="cost"><img src="img/x.gif" class="gold" />5</td>
<td class="act"><span class="none"><?php
if($session->access!=BANNED){
if($golds['gold']>4 && $tl_b1<$date2){
echo '<a href="plus.php?id=9" onclick="if(this.dataset.c) return false; this.dataset.c=1; this.style.pointerEvents=\'none\'; this.style.opacity=\'0.5\';"><span>Activate</span></a>';
} elseif($golds['gold']>4 && $datetime1>$date2){
echo '<a href="plus.php?id=9" onclick="if(this.dataset.c) return false; this.dataset.c=1; this.style.pointerEvents=\'none\'; this.style.opacity=\'0.5\';"><span>Extend</span></a>';
} else echo '<a href="plus.php?s=1"><span class="none">too little gold</span></a>';
} else {
echo '<a href="banned.php"><span class="none">too little gold</span></a>';
}
?></span></td>
</tr>
<!-- CLAY -->
<tr>
<td class="man"><a href="#" onClick="return Popup(2,6);"><img class="help" src="img/x.gif" /></a></td>
<td class="desc">+<b>25</b>% <img class="r2" src="img/x.gif" /> Production: Clay<br />
<span class="run"><?php $tl_b2=$golds['b2']; if($tl_b2>=$date2) echo "<font color='#B3B3B3' size='1'>".formatRemainingTime($tl_b2,$date2)."</font>"; ?></span></td>
<td class="dur"><?php echo (PLUS_PRODUCTION>=86400)?(PLUS_PRODUCTION/86400).' Days':(PLUS_PRODUCTION/3600).' Hours'; ?></td>
<td class="cost"><img src="img/x.gif" class="gold" />5</td>
<td class="act"><span class="none"><?php
if($session->access!=BANNED){
if($golds['gold']>4 && $tl_b2<$date2){
echo '<a href="plus.php?id=10" onclick="if(this.dataset.c) return false; this.dataset.c=1; this.style.pointerEvents=\'none\'; this.style.opacity=\'0.5\';"><span>Activate</span></a>';
} elseif($golds['gold']>4 && $tl_b2>$date2){
echo '<a href="plus.php?id=10" onclick="if(this.dataset.c) return false; this.dataset.c=1; this.style.pointerEvents=\'none\'; this.style.opacity=\'0.5\';"><span>Extend</span></a>';
} else echo '<a href="plus.php?s=1"><span class="none">too little gold</span></a>';
} else echo '<a href="banned.php"><span class="none">too little gold</span></a>';
?></span></td>
</tr>
<!-- IRON -->
<tr>
<td class="man"><a href="#" onClick="return Popup(3,6);"><img class="help" src="img/x.gif" /></a></td>
<td class="desc">+<b>25</b>% <img class="r3" src="img/x.gif" /> Production: Iron<br />
<span class="run"><?php $tl_b3=$golds['b3']; if($tl_b3>=$date2) echo "<font color='#B3B3B3' size='1'>".formatRemainingTime($tl_b3,$date2)."</font>"; ?></span></td>
<td class="dur"><?php echo (PLUS_PRODUCTION>=86400)?(PLUS_PRODUCTION/86400).' Days':(PLUS_PRODUCTION/3600).' Hours'; ?></td>
<td class="cost"><img src="img/x.gif" class="gold" />5</td>
<td class="act"><span class="none"><?php
if($session->access!=BANNED){
if($golds['gold']>4 && $tl_b3<$date2){
echo '<a href="plus.php?id=11" onclick="if(this.dataset.c) return false; this.dataset.c=1; this.style.pointerEvents=\'none\'; this.style.opacity=\'0.5\';"><span>Activate</span></a>';
} elseif($golds['gold']>4 && $tl_b3>$date2){
echo '<a href="plus.php?id=11" onclick="if(this.dataset.c) return false; this.dataset.c=1; this.style.pointerEvents=\'none\'; this.style.opacity=\'0.5\';"><span>Extend</span></a>';
} else echo '<a href="plus.php?s=1"><span class="none">too little gold</span></a>';
} else echo '<a href="banned.php"><span class="none">too little gold</span></a>';
?></span></td>
</tr>
<!-- CROP -->
<tr>
<td class="man"><a href="#" onClick="return Popup(4,6);"><img class="help" src="img/x.gif" /></a></td>
<td class="desc">+<b>25</b>% <img class="r4" src="img/x.gif" /> Production: Crop<br />
<span class="run"><?php $tl_b4=$golds['b4']; if($tl_b4>=$date2) echo "<font color='#B3B3B3' size='1'>".formatRemainingTime($tl_b4,$date2)."</font>"; ?></span></td>
<td class="dur"><?php echo (PLUS_PRODUCTION>=86400)?(PLUS_PRODUCTION/86400).' Days':(PLUS_PRODUCTION/3600).' Hours'; ?></td>
<td class="cost"><img src="img/x.gif" class="gold" />5</td>
<td class="act"><span class="none"><?php
if($session->access!=BANNED){
if($golds['gold']>4 && $tl_b4<$date2){
echo '<a href="plus.php?id=12" onclick="if(this.dataset.c) return false; this.dataset.c=1; this.style.pointerEvents=\'none\'; this.style.opacity=\'0.5\';"><span>Activate</span></a>';
} elseif($golds['gold']>4 && $tl_b4>$date2){
echo '<a href="plus.php?id=12" onclick="if(this.dataset.c) return false; this.dataset.c=1; this.style.pointerEvents=\'none\'; this.style.opacity=\'0.5\';"><span>Extend</span></a>';
} else echo '<a href="plus.php?s=1"><span class="none">too little gold</span></a>';
} else echo '<a href="banned.php"><span class="none">too little gold</span></a>';
?></span></td>
</tr>
<tr><td colspan="5" class="empty"></td></tr>
<tr>
<td class="man"><a href="#" onClick="return Popup(9,6);"><img
class="help" src="img/x.gif" alt="" title="" /></a></td>
<td class="desc"><b>Gold Club</b></br> <span class="run"> </span></td>
<td class="dur">Whole game round</td>
<td class="cost"><img src="img/x.gif" class="gold" alt="Gold"
title="Gold" alt="Gold" title="Gold" />100</td>
<td class="act">
<td class="man"><a href="#" onClick="return Popup(7,6);"><img class="help" src="img/x.gif" /></a></td>
<td class="desc">Complete construction orders and researches in this village now</td>
<td class="dur">now</td>
<td class="cost"><img src="img/x.gif" class="gold" />2</td>
<td class="act"><span class="none"><?php
echo ($golds['gold']>1) ? '<a href="plus.php?id=7" onclick="if(this.dataset.c) return false; this.dataset.c=1; this.style.pointerEvents=\'none\';"><span>On</span></a>' : '<a href="plus.php?s=1"><span class="none">too little gold</span></a>';
?></span></td>
</tr>
<?php
$MyGold = mysqli_query($database->dblink, "SELECT * FROM " . TB_PREFIX . "users WHERE `id`='" . $session->uid . "'") or die(mysqli_error($database->dblink));
$golds = mysqli_fetch_array($MyGold);
if (mysqli_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>
<td class="man"><a href="#" onClick="return Popup(8,6);"><img class="help" src="img/x.gif" /></a></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" />3</td>
<td class="act"><span class="none"><?php
echo ($golds['gold']>2) ? '<a href="build.php?gid=17&t=3"><span>NPC</span></a>' : '<a href="plus.php?s=1"><span class="none">too little gold</span></a>';
?></span></td>
</tr>
</tbody>
</table>
</div>
<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"><a href="#" onClick="return Popup(9,6);"><img class="help" src="img/x.gif" /></a></td>
<td class="desc"><b>Gold Club</b></td>
<td class="dur">Whole game round</td>
<td class="cost"><img src="img/x.gif" class="gold" />100</td>
<td class="act"><?php
if($golds['goldclub']==0){
if($golds['gold']>99){
echo '<a href="plus.php?id=15" onclick="if(this.dataset.c) return false; this.dataset.c=1; this.style.pointerEvents=\'none\'; this.style.opacity=\'0.5\';"><span>Activate</span></a>';
} else echo '<a href="plus.php?s=1"><span class="none">too little gold</span></a>';
} else echo '<a href="plus.php?id=3"><span class="none">On</span></a>';
?></td>
</tr>
</tbody>
</table>
</div>
+35 -161
View File
@@ -1,165 +1,39 @@
<?php
include("Templates/Plus/pmenu.tpl");
$free = $session->uid;
$uid = (int)$session->uid;
$gold = defined('PLUS_PACKAGE_E_GOLD') ? PLUS_PACKAGE_E_GOLD : 2000;
$price = defined('PLUS_PACKAGE_E_PRICE') ? str_replace(',', '.', PLUS_PACKAGE_E_PRICE) : '49.99';
$currency = defined('PAYPAL_CURRENCY') ? PAYPAL_CURRENCY : 'EUR';
$paypal = defined('PAYPAL_EMAIL') ? PAYPAL_EMAIL : 'novgorodschi@icloud.com';
$base = rtrim(HOMEPAGE,'/');
?>
<!--
<table class="rate_details lang_ltr lang_de" cellpadding="1" cellspacing="1">
<thead>
<tr>
<th colspan="2">1. Ebank2Pay</th>
</tr>
</thead>
<tbody>
<tr>
<td class="pic"><img src="img/bezahlung/ebank2pay.png" style="99px; height:99px;" alt="Paket A" />
<div>Gold : 2000<br />Cost : 49,99 Euro<br />Wait : Instant</div>
</td>
<td class="desc">
Pay by online banktransfer <br />
<a href="#"
onclick="window.open('http://billing.micropayment.de/ebank2pay/event/?account=56387&project=trvnx&theme=default&gfx=x-surfer&bgcolor=ffffff&title=travianix+2000+Gold&amount=4999&currency=EUR&paytext=travianix+2000+Gold','nsrpay','scrollbars=yes,status=yes,resizable=yes,toolbar=yes,width=800,height=600');return false;">
<img src="img/bezahlung/ebank2pay2.png" style="width:181px; height:38px;" alt="ebank2pay" /></a>
<br />
More information about micropayent can be found here: <a href="https://www.micropayment.de/" target="_blank"><br />More Info</a>
</td>
</tr>
</tbody>
<table class="rate_details" cellpadding="1" cellspacing="1">
<thead><tr><th colspan="2">PayPal Package E</th></tr></thead>
<tbody>
<tr>
<td class="pic">
<img src="img/bezahlung/paypal.jpg" style="width:99px;height:99px;" alt="Package E">
<div>Gold: <?= $gold ?><br>Cost: <?= $price ?> <?= $currency ?><br>Wait: instant</div>
</td>
<td class="desc">
Pay securely with PayPal.<br><br>
<form action="https://www.paypal.com/cgi-bin/webscr" method="post">
<input type="hidden" name="cmd" value="_xclick">
<input type="hidden" name="business" value="<?= $paypal ?>">
<input type="hidden" name="item_name" value="<?= SERVER_NAME ?> Package E">
<input type="hidden" name="item_number" value="E-<?= $gold ?>">
<input type="hidden" name="amount" value="<?= $price ?>">
<input type="hidden" name="currency_code" value="<?= $currency ?>">
<input type="hidden" name="custom" value="<?= $uid ?>|114|<?= $gold ?>">
<input type="hidden" name="invoice" value="TX-<?= $uid ?>-<?= time() ?>">
<input type="hidden" name="notify_url" value="<?= $base ?>/paypal_ipn.php">
<input type="hidden" name="return" value="<?= $base ?>/plus.php?id=1&paid=1">
<input type="hidden" name="cancel_return" value="<?= $base ?>/plus.php?id=1">
<input type="image" src="https://www.paypalobjects.com/webstatic/en_US/i/btn/png/btn_buynow_107x26.png" name="submit" alt="Buy Now">
</form>
</td>
</tr>
</tbody>
</table>
-->
<table class="rate_details lang_ltr lang_de" cellpadding="1" cellspacing="1">
<thead>
<tr>
<th colspan="2">Paypal</th>
</tr>
</thead>
<tbody>
<tr>
<td class="pic">
<img src="img/bezahlung/paypal.jpg" style="99px; height:99px;" alt="Package E" />
<div>
Gold : <?php echo (defined('PLUS_PACKAGE_E_GOLD') ? PLUS_PACKAGE_E_GOLD : 2000); ?>
<br />
Cost : <?php echo (defined('PLUS_PACKAGE_E_PRICE') ? PLUS_PACKAGE_E_PRICE : '49,99') . ' ' . (defined('PAYPAL_CURRENCY') ? PAYPAL_CURRENCY : 'EUR'); ?>
<br />
Wait: 24 hours
</div>
</td>
<td class="desc">
Initiate Payment by Paypal
<br /><br />
<form action="https://www.paypal.com/cgi-bin/webscr" method="post">
<!-- Identify your business so that you can collect the payments. -->
<input type="hidden" name="business" value="<?php echo (defined('PAYPAL_EMAIL') ? PAYPAL_EMAIL : 'novgorodschi@icloud.com'); ?>">
<!-- Specify a Buy Now button. -->
<input type="hidden" name="cmd" value="_xclick">
<!-- Specify details about the item that buyers will purchase. -->
<input type="hidden" name="item_name" value="<?php echo SERVER_NAME . ' Package E Gold Pack (' . $session->username . ')'; ?>">
<input type="hidden" name="amount" value="<?php echo (defined('PLUS_PACKAGE_E_PRICE') ? str_replace(",", ".", PLUS_PACKAGE_E_PRICE) : '49,99'); ?>">
<input type="hidden" name="currency_code" value="<?php echo (defined('PAYPAL_CURRENCY') ? PAYPAL_CURRENCY : 'EUR'); ?>">
<!-- Display the payment button. -->
<input type="image" name="submit" border="0"
src="https://www.paypalobjects.com/webstatic/en_US/i/btn/png/btn_buynow_107x26.png"
alt="Buy Now">
<img alt="" border="0" width="1" height="1" src="https://www.paypalobjects.com/en_US/i/scr/pixel.gif" >
</form>
<br />
More Info about PayPal can be found here: <br />
<a href="#" onclick="window.open('https://www.paypal.com/en/cgi-bin/webscr?cmd=xpt/cps/popup/OLCWhatIsPayPal-outside','external','scrollbars=yes,status=yes,resizable=yes,toolbar=yes,width=800,height=600');return false;">More Info</a>
<br />
</td>
</tr>
</tbody>
</table>
<!--
<table class="rate_details lang_ltr lang_de" cellpadding="1" cellspacing="1">
<thead>
<tr>
<th colspan="2">3. Skrill (moneybookers)</th>
</tr>
</thead>
<tbody>
<tr>
<td class="pic"><img src="img/bezahlung/skrill1.jpg" style="99px; height:99px;" alt="Paket E" />
<div>Gold : 2000<br />Cost : 49,99 Euro<br />Wait : 24 hours</div>
</td>
<td class="desc">
Mit Skrill (moneybookers) kannst du mit deiner Kreditkarte oder per Überweisung von deinem Konto zahlen. <br />
<? echo'<form action="https://www.moneybookers.com/app/payment.pl" target="_blank">
<input type="hidden" name="pay_to_email" value="novgorodschi@icloud.com">
<input type="hidden" name="recipient_description" value="netsoundradio">
<input type="hidden" name="transaction_id" value="112">
<input type="hidden" name="return_url" value="http://www.merchant.com/payment_made.htm">
<input type="hidden" name="return_url_text" value="Danke für deinen Einkauf">
<input type="hidden" name="return_url_target" value="1">
<input type="hidden" name="cancel_url" value="http://www.merchant.com/payment_cancelled.htm">
<input type="hidden" name="cancel_url_target" value="1">
<input type="hidden" name="status_url" value="mailto: novgorodschi@icloud.com">
<input type="hidden" name="status_url2" value="mailto: novgorodschi@icloud.com">
<input type="hidden" name="new_window_redirect" value="1">
<input type="hidden" name="dynamic_descriptor" value="Descriptor">
<input type="hidden" name="language" value="DE">
<input type="hidden" name="confirmation_note" value="Vielen Dank für deinen Einkauf! ">
<input type="hidden" name="merchant_fields" value="field1">
<input type="hidden" name="title" value="">
<input type="hidden" name="firstname" value="">
<input type="hidden" name="lastname" value="">
<input type="hidden" name="address" value="">
<input type="hidden" name="address2" value="Bitte Spielername eingeben">
<input type="hidden" name="phone_number" value="">
<input type="hidden" name="postal_code" value="">
<input type="hidden" name="city" value="">
<input type="hidden" name="state" value="">
<input type="hidden" name="country" value="GER">
<input type="hidden" name="amount" value="49.99">
<input type="hidden" name="currency" value="EUR">
<input type="hidden" name="amount2_description" value="Produktpreis:">
<input type="hidden" name="amount2" value="49.99">
<input type="hidden" name="amount3_description" value="Bearbeitung:">
<input type="hidden" name="amount3" value="0">
<input type="hidden" name="amount4_description" value="Steuer:">
<input type="hidden" name="amount4" value="0">
<input type="hidden" name="detail1_description" value="Product ID:">
<input type="hidden" name="detail1_text" value="Paket E : 1600 Gold">
<input type="hidden" name="detail2_description" value="Beschreibung:">
<input type="hidden" name="detail2_text" value="Travian Gold ">
<input type="hidden" name="detail3_description" value="Verkäufer-ID:">
<input type="hidden" name="detail3_text" value="37115003">
<input type="hidden" name="detail4_description" value="Weitere Angaben:">
<input type="hidden" name="detail4_text" value="5-6 Tage Leieferzeit">
<input type="hidden" name="rec_period" value="1">
<input type="hidden" name="rec_grace_period" value="1">
<input type="hidden" name="rec_cycle" value="day">
<input type="hidden" name="ondemand_max_currency" value="EUR">
<input type="hidden" name="payment_methods" value="PWY21,PWY22,PWY26,PWY25,PWY28,PWY32,PWY33,PWY36,ACC,VSA,MSC,VSD,VSE,AMX,DIN,JCB,MAE,LSR,SLO,GCB,SFT,DID,GIR,ENT,EBT,SO2,NPY,PLI,DNK,CSI,PSP,EPY,BWI,MZM,">
<input type="hidden" name="submit_id" value="Submit">
<input type="image" src="img/bezahlung/skrill.png" alt="Absenden">
</form>';?>
<br />
</td>
</tr>
</tbody>
</table>
-->
<br /><br /><br /><br /><br /><br />
</div>
</div>
</div></div>
+7 -11
View File
@@ -2,18 +2,14 @@
include("Templates/Plus/pmenu.tpl");
?>
<p class="f10 b">How do I get Gold?</p>
<p>Ask owner of the site</p>
<p><a href="plus.php?id=1">Buy it in the Gold Shop</a> or ask the server owner.</p>
<p class="f10 b">Why can't I finish some buildings with Gold?</p>
<p>Residence, Palace and World Wonder villages are excluded for gameplay reasons.</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>
<p class="f10 b">I activated Plus, but production did not increase.</p>
<p>Plus does not include production bonuses. You must buy +25% for each resource separately in <a href="plus.php?id=3">Plus functions</a>.</p>
<p class="f10 b">Do I need Plus to use other features?</p>
<p>No. Every gold feature works standalone as long as you have enough gold.</p>
</div>
+37 -59
View File
@@ -1,68 +1,46 @@
<?php
include("Templates/Plus/pmenu.tpl");
$refLink = rtrim(HOMEPAGE, '/') . '/anmelden.php?uid=ref_' . $session->uid;
$invited = $database->getInvitedUser($session->uid);
?>
<h2>Invite friends and receive free Gold</h2>
<p>If you get new players to open an account and settle a second village, you will receive <b>50 gold</b>. You can use this gold for Plus or any gold advantage.<br><br>
To bring in new players, invite them by e-mail or share your REF link.</p>
<h2>Invite friends and receive free Gold</h2>
<h2>How is it done?</h2>
<h3>1) Invite your friends via Email</h3>
<p><a href="plus.php?id=5&a=1&mail">&raquo; Invite by e-mail</a></p>
<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>
<h3>2) Copy your personal REF-Link and share it!</h3>
<span class="notice">Your personal REF Link:</span><br>
<span class="link" onclick="navigator.clipboard.writeText('<?= $refLink ?>'); this.style.color='#0a0';" title="Click to copy"><?= $refLink ?></span>
<h2>How is it done?</h2>
<h3>Progress of your invited friends</h3>
<p>As soon as a player you invited founds his <b>2nd</b> village, you will be credited with <b>50</b> gold.</p>
<h3>1) Invite your friends via Email</h3>
<p><a href="plus.php?id=5&amp;a=1&amp;mail">&raquo; Invite by e-mail</a></p>
<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.(substr(HOMEPAGE, -1)=="/" ? "":"/");?>anmelden.php?uid=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>UID</td>
<td>Member since</td>
<td>Inhabitants</td>
<td>Villages</td>
</tr>
</thead>
<tbody>
<?php
$invite = $database->getInvitedUser($session->uid);
if(count($invite) > 0){
foreach($invite as $invited) {
$varray = $database->getProfileVillages($invited['id']);
$totalpop = 0;
foreach($varray as $vil) {
$totalpop += $vil['pop'];
}
?>
<tr>
<td><?php echo $invited['id']; ?></td>
<td><?php echo date("j.m.y",$invited['regtime']); ?></td>
<td><?php echo $totalpop; ?></td>
<td><?php echo count($varray); ?></td>
</tr>
<?php
}}else{
?>
<table id="brought_in" cellpadding="1" cellspacing="1">
<thead>
<tr><th colspan="4">Players brought in</th></tr>
<tr><td>UID</td><td>Member since</td><td>Inhabitants</td><td>Villages</td></tr>
</thead>
<tbody>
<?php if(!empty($invited)): ?>
<?php foreach($invited as $inv):
$villages = $database->getProfileVillages($inv['id']);
$totalPop = array_sum(array_column($villages, 'pop'));
$vilCount = count($villages);
?>
<tr>
<td class="none" colspan="6">You have not brought in any new players yet.</td>
<td><?= $inv['id'] ?></td>
<td><?= date('j.m.y', $inv['regtime']) ?></td>
<td><?= $totalPop ?></td>
<td><?= $vilCount ?> <?= $vilCount >= 2 ? '<span style="color:#0a0">✓</span>' : '' ?></td>
</tr>
<?php } ?>
</tbody>
</table>
</div>
<?php endforeach; ?>
<?php else: ?>
<tr><td class="none" colspan="4">You have not brought in any new players yet.</td></tr>
<?php endif; ?>
</tbody>
</table>
</div>
+13
View File
@@ -1,4 +1,17 @@
<?php
#################################################################################
## -= YOU MAY NOT REMOVE OR CHANGE THIS NOTICE =- ##
## --------------------------------------------------------------------------- ##
## Project: TravianZ (Refactor incremental) ##
## File: 8.tpl ##
## Description: Finish All Plus ##
## Made by: alq0rsan ##
## Improved by: evader ##
## Refactor by: Shadow ##
## ##
#################################################################################
$building->finishAll('plus.php?id=3');
exit;
?>
+41 -26
View File
@@ -1,28 +1,43 @@
<?php
////////////// made by alq0rsan, improved by evader /////////////////////////
if($session->gold >= 10){
$MyGold = mysqli_query($database->dblink,"SELECT gold, plus FROM ".TB_PREFIX."users WHERE `id`='".$session->uid."'") or die(mysqli_error($database->dblink));
$golds = mysqli_fetch_array($MyGold);
if($session->sit == 0) {
if (mysqli_num_rows($MyGold) == 1) {
if($golds['gold'] >= 10) {
if($golds['plus'] == 0) {
mysqli_query($database->dblink,"UPDATE ".TB_PREFIX."users set plus = ('".mktime(date("H"),date("i"), date("s"),date("m") , date("d"), date("Y"))."')+".PLUS_TIME." where `id`='".$session->uid."'") or die(mysqli_error($database->dblink));
} else {
mysqli_query($database->dblink,"UPDATE ".TB_PREFIX."users set plus = '".($golds['plus']+PLUS_TIME)."' where `id`='".$session->uid."'") or die(mysqli_error($database->dblink));
}
$done1 = "&nbsp;&nbsp;Plus Account";
mysqli_query($database->dblink,"UPDATE ".TB_PREFIX."users set gold = ".($session->gold-10)." where `id`='".$session->uid."'") or die(mysqli_error($database->dblink));
mysqli_query($database->dblink,"INSERT INTO ".TB_PREFIX."gold_fin_log (wid,log) VALUES ('".$village->wid."', 'Plus Account')") or die(mysqli_error($database->dblink));
} else {
$done1 = "&nbsp;&nbsp;You need more gold";
}
} else {
$done1 = "Failed plus attempt";
mysqli_query($database->dblink,"INSERT INTO ".TB_PREFIX."gold_fin_log (wid,log) VALUES ('".$village->wid."', 'Failed Plus Account')") or die(mysqli_error($database->dblink));
}
}
header("Location: plus.php?id=3");
exit;
#################################################################################
## -= YOU MAY NOT REMOVE OR CHANGE THIS NOTICE =- ##
## --------------------------------------------------------------------------- ##
## Project: TravianZ (Refactor incremental) ##
## File: 8.tpl ##
## Description: Plus Account ##
## Made by: alq0rsan ##
## Improved by: evader ##
## Refactor by: Shadow ##
## ##
#################################################################################
if($session->sit == 0) {
$now = time();
$uid = (int)$session->uid;
$cost = 10;
// un singur UPDATE: scade gold DOAR dacă ai destul, și prelungește plus-ul
$sql = "UPDATE ".TB_PREFIX."users
SET gold = gold - $cost,
plus = IF(plus > $now, plus + ".PLUS_TIME.", $now + ".PLUS_TIME.")
WHERE id = '$uid' AND gold >= $cost";
mysqli_query($database->dblink, $sql) or die(mysqli_error($database->dblink));
if(mysqli_affected_rows($database->dblink) == 1) {
// a reușit - actualizează sesiunea instant
$session->gold -= $cost;
// log (opțional)
mysqli_query($database->dblink, "INSERT INTO ".TB_PREFIX."gold_fin_log (wid,log) VALUES ('".$village->wid."', 'Plus Account')") or die(mysqli_error($database->dblink));
// invalidează cache v9
if(method_exists($database, 'clearUserCache')) {
$database->clearUserCache($uid);
}
}
}
?>
header("Location: plus.php?id=3");
exit;
?>
+40 -25
View File
@@ -1,28 +1,43 @@
<?php
////////////// made by alq0rsan, improved by evader /////////////////////////
if($session->gold >= 5){
$MyGold = mysqli_query($database->dblink,"SELECT gold, b1 FROM ".TB_PREFIX."users WHERE `id`='".$session->uid."'") or die(mysqli_error($database->dblink));
$golds = mysqli_fetch_array($MyGold);
if($session->sit == 0) {
if (mysqli_num_rows($MyGold) == 1) {
if($golds['gold'] >= 5) {
if($golds['b1'] < time()) {
mysqli_query($database->dblink,"UPDATE ".TB_PREFIX."users set b1 = '".(time()+PLUS_PRODUCTION)."' where `id`='".$session->uid."'") or die(mysqli_error($database->dblink));
} else {
mysqli_query($database->dblink,"UPDATE ".TB_PREFIX."users set b1 = '".($golds['b1']+PLUS_PRODUCTION)."' where `id`='".$session->uid."'") or die(mysqli_error($database->dblink));
}
$done1 = "+25% Production: Lumber";
mysqli_query($database->dblink,"UPDATE ".TB_PREFIX."users set gold = ".($session->gold-5)." where `id`='".$session->uid."'") or die(mysqli_error($database->dblink));
mysqli_query($database->dblink,"INSERT INTO ".TB_PREFIX."gold_fin_log (wid,log) VALUES ('".$village->wid."', '+25% Production: Lumber')") or die(mysqli_error($database->dblink));
} else {
$done1 = "You need more gold";
}
} else {
$done1 = "Failed lumber attempt";
mysqli_query($database->dblink,"INSERT INTO ".TB_PREFIX."gold_fin_log (wid,log) VALUES ('".$village->wid."', 'Failed +25% Production: Lumber')") or die(mysqli_error($database->dblink));
}
}
header("Location: plus.php?id=3");
exit;
#################################################################################
## -= YOU MAY NOT REMOVE OR CHANGE THIS NOTICE =- ##
## --------------------------------------------------------------------------- ##
## Project: TravianZ (Refactor incremental) ##
## File: 8.tpl ##
## Description: Wood Plus ##
## Made by: alq0rsan ##
## Improved by: evader ##
## Refactor by: Shadow ##
## ##
#################################################################################
if($session->sit == 0) {
$uid = (int)$session->uid;
$now = time();
$cost = 5;
// UPDATE atomic: scade gold DOAR dacă ai, și prelungește b1 într-o singură operație
$sql = "UPDATE ".TB_PREFIX."users
SET gold = gold - $cost,
b1 = IF(b1 > $now, b1 + ".PLUS_PRODUCTION.", $now + ".PLUS_PRODUCTION.")
WHERE id = '$uid' AND gold >= $cost";
mysqli_query($database->dblink, $sql) or die(mysqli_error($database->dblink));
if(mysqli_affected_rows($database->dblink) == 1) {
// succes - actualizează sesiunea instant (nu mai aștepți cache-ul de 10 sec)
$session->gold -= $cost;
// log
mysqli_query($database->dblink, "INSERT INTO ".TB_PREFIX."gold_fin_log (wid,log) VALUES ('".$village->wid."', '+25% Production: Lumber')") or die(mysqli_error($database->dblink));
// invalidează cache v9
if(method_exists($database, 'clearUserCache')) {
$database->clearUserCache($uid);
}
}
}
header("Location: plus.php?id=3");
exit;
?>
+69 -109
View File
@@ -1,122 +1,82 @@
<?php
////////////// edited by Pyrrhic of A.G.B. /////////////////////////
include("Templates/Plus/pmenu.tpl");
$uid = (int)$session->uid;
$plusTime = 604800; // 7 zile
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>";
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 'Exchange gold for Plus features. All actions are logged.</div><br>';
if(!$_POST['plus']){
echo <<<EOT
if(empty($_POST['plus'])) {
?>
<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 width="300" align="center">
<tr><td><b><?= $session->username ?></b> Gold: <?= $session->gold ?></td></tr>
<tr><td align="center"><b>Select Reward:</b>
<select name="reward" required>
<option value="">Select reward...</option>
<option value="plus">VIP Account (10 gold 7 days)</option>
<option value="b1">Lumber +25% (5 gold)</option>
<option value="b2">Clay +25% (5 gold)</option>
<option value="b3">Iron +25% (5 gold)</option>
<option value="b4">Crop +25% (5 gold)</option>
</select><br><br>
<input type="submit" name="plus" value="Get Now">
</td></tr>
</table>
</form>
<br /> <br />
EOT;
}else{
$account = mysqli_real_escape_string($database->dblink,$_POST['username']);
$reward = mysqli_real_escape_string($database->dblink,$_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 = mysqli_fetch_array(mysqli_query($database->dblink,"SELECT Count(*) as Total FROM ".TB_PREFIX."users WHERE `id`='".$session->uid."'"), MYSQLI_ASSOC) or die(mysqli_error($database->dblink));
if($accountCheck['Total'] <= 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;
$plusCheck = mysqli_query($database->dblink,"SELECT * FROM ".TB_PREFIX."users WHERE `id`='".$session->uid."'") or die(mysqli_error($database->dblink));
$pluss = mysqli_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;
<?php
} else {
$reward = $_POST['reward'] ?? '';
if(mysqli_num_rows($plusCheck) > 0){
if($time > $pluss[$key] ){
$editplus = mysqli_query($database->dblink,"UPDATE ".TB_PREFIX."users SET `{$key}`= `{$key}` + ('".$time."'+'".$plusTime."'), `gold` = `gold` - {$gldz} WHERE `id`='".$session->uid."'") or die(mysqli_error($database->dblink));
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 = mysqli_query($database->dblink,"UPDATE ".TB_PREFIX."users SET `{$key}`= `{$key}` +'".$plusTime."', `gold` = `gold` - {$gldz} WHERE `id`='".$session->uid."'") or die(mysqli_error($database->dblink));
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>";
}
// whitelist
$map = [
'plus' => ['field'=>'plus','cost'=>10],
'b1' => ['field'=>'b1','cost'=>5],
'b2' => ['field'=>'b2','cost'=>5],
'b3' => ['field'=>'b3','cost'=>5],
'b4' => ['field'=>'b4','cost'=>5],
];
if(!isset($map[$reward])) {
die('<b>ERROR:</b> Invalid reward. <button onclick="history.back()">Back</button>');
}
else{
$insertplus = mysqli_query($database->dblink,"INSERT INTO ".TB_PREFIX."users (`username`,`{$key}`, `gold`) VALUES ('".$session->username."', ('".$time."'+'".$plusTime."'),`gold` - {$gldz})") or die(mysqli_error($database->dblink));
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>";
}
$field = $map[$reward]['field'];
$cost = $map[$reward]['cost'];
$now = time();
// 1. scade gold ATOMIC doar dacă ai suficient
$goldUpd = mysqli_query($database->dblink,
"UPDATE ".TB_PREFIX."users SET gold = gold - $cost
WHERE id = $uid AND gold >= $cost"
);
if(mysqli_affected_rows($database->dblink) != 1) {
die('<div align="center"><font color="red"><b>Not enough gold!</b></font><br><button onclick="history.back()">Back</button></div>');
}
// 2. adaugă timpul la feature
// dacă a expirat, setează de acum, altfel adaugă
mysqli_query($database->dblink,
"UPDATE ".TB_PREFIX."users
SET `$field` = IF(`$field` < $now, $now + $plusTime, `$field` + $plusTime)
WHERE id = $uid"
);
// 3. update sesiune
$session->gold -= $cost;
$_SESSION['gold'] = $session->gold;
$session->$field = max($session->$field, $now) + $plusTime;
// 4. log
mysqli_query($database->dblink,
"INSERT INTO ".TB_PREFIX."gold_fin_log (wid, action, time)
VALUES (0, 'Bought $field for $cost gold', $now)"
);
echo '<meta http-equiv="refresh" content="2;url=plus.php?id=3">';
echo '<br><div align="center"><font color="green" size="4"><b>Your status has been updated!</b></font></div>';
}
?>
</div>
+47 -68
View File
@@ -1,79 +1,58 @@
<?php
include("Templates/Plus/pmenu.tpl");
$refLink = rtrim(HOMEPAGE,'/') . '/anmelden.php?uid=ref_' . $session->uid;
$invite = $database->getInvitedUser($session->uid);
?>
<h2>Invite friends and receive free Gold</h2>
<p>If you get new players to open an account and settle a second village, you will receive <b>50 gold</b>. Use it for Plus or any advantage.<br><br>
Invite by e-mail or share your REF link.</p>
<h2>Invite friends and receive free Gold</h2>
<h2>How is it done?</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>
<h3>1) Invite your friends via Email</h3>
<form action="plus.php?id=5&a=1" method="POST">
<p><input class="mail" name="mail" type="email" placeholder="friend@email.com" required style="width:250px"></p>
<p>Own text:</p>
<p><textarea name="text" rows="4" cols="40" style="width:350px">Hi,
<h2>How is it done?</h2>
Join me on <?= SERVER_NAME ?>! Use my link to register:
<?= $refLink ?>
<h3>1) Invite your friends via Email</h3>
<form action="plus.php" method="POST">
<p><input class="mail" name="mail" value=""></p>
<p>Own text:</p>
<p><textarea id="text" name="text" rows="3" cols="20" style="width:350px">
hi, please use this link.
<?php echo HOMEPAGE.(substr(HOMEPAGE, -1)=="/" ? "":"/"); ?>anmelden.php?uid=ref_<?php echo $session->uid; ?>
</textarea></p>
</form>
<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.(substr(HOMEPAGE, -1)=="/" ? "":"/");?>anmelden.php?uid=ref_<?php echo $session->uid; ?></span>
See you in game!</textarea></p>
<p><input type="submit" value="Send Invite"></p>
</form>
<h3>Progress of your invited friends</h3>
<h3>2) Copy your personal REF-Link and share it!</h3>
<span class="notice">Your personal REF Link:</span><br>
<span class="link" onclick="navigator.clipboard.writeText('<?= $refLink ?>'); alert('Copied!')" style="cursor:pointer" title="Click to copy"><?= $refLink ?></span>
<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>
<h3>Progress of your invited friends</h3>
<p>As soon as a player you invited founds his <b>2nd</b> village, you get <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>
<tbody>
<?php
$invite = $database->getInvitedUser($session->uid);
if(count($invite) > 0){
foreach($invite as $invited) {
$varray = $database->getProfileVillages($invited['id']);
$totalpop = 0;
foreach($varray as $vil) {
$totalpop += $vil['pop'];
}
?>
<tr>
<td><?php echo $invited['id']; ?></td>
<td><?php echo date("j.m.y",$invited['regtime']); ?></td>
<td><?php echo $totalpop; ?></td>
<td><?php echo count($varray); ?></td>
</tr>
<?php
}}else{
?>
<tr>
<td class="none" colspan="6">You have not brought in any new players yet.</td>
<table id="brought_in" cellpadding="1" cellspacing="1">
<thead>
<tr><th colspan="4">Players brought in</th></tr>
<tr><td>UID</td><td>Member since</td><td>Inhabitants</td><td>Villages</td></tr>
</thead>
<tbody>
<?php if(!empty($invite)): ?>
<?php foreach($invite as $inv):
$villages = $database->getProfileVillages($inv['id']);
$totalPop = array_sum(array_column($villages, 'pop'));
$vilCount = count($villages);
$rewarded = $vilCount >= 2 ? 'style="background:#dfd"' : '';
?>
<tr <?= $rewarded ?>>
<td><?= $inv['id'] ?></td>
<td><?= date('j.m.y', $inv['regtime']) ?></td>
<td><?= $totalPop ?></td>
<td><?= $vilCount ?><?= $vilCount >= 2 ? ' ✓' : '' ?></td>
</tr>
<?php } ?>
</table>
</div>
<?php endforeach; ?>
<?php else: ?>
<tr><td class="none" colspan="4">You have not brought in any new players yet.</td></tr>
<?php endif; ?>
</tbody>
</table>
</div>
+13 -59
View File
@@ -1,62 +1,16 @@
<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="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']) && @(basename($_SERVER['REQUEST_URI']) !== 'a2b2.php')) {
echo "class=\"selected\"";
}
if(isset($_GET['id']) && (($_GET['id'] == 1) || strlen((string)$_GET['id']) === 3)) {
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 && strlen($_GET['id']) < 3) {
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 && strlen($_GET['id']) < 3) {
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 && strlen($_GET['id']) < 3) {
echo "class=\"selected\"";
}
?>>Earn gold</a>
| <a href="a2b2.php" <?php
if(@(basename($_SERVER['REQUEST_URI']) === 'a2b2.php')) {
echo "class=\"selected\"";
}
?>>Account Statement</a>
<?php
$id = isset($_GET['id']) ? (int)$_GET['id'] : 0;
$uri = basename($_SERVER['REQUEST_URI']);
function sel($cond){ return $cond ? 'class="selected"' : ''; }
?>
<a href="plus.php" <?= sel($id==0 || $id==1 || $id>=100) ?>>Tariffs</a>
| <a href="plus.php?id=2" <?= sel($id==2) ?>>Advantages</a>
| <a href="plus.php?id=3" <?= sel($id==3 || ($id>=6 && $id<=15)) ?>>Gold</a>
| <a href="plus.php?id=4" <?= sel($id==4) ?>>FAQ</a>
| <a href="plus.php?id=5" <?= sel($id==5) ?>>Earn gold</a>
| <a href="a2b2.php" <?= sel($uri==='a2b2.php') ?>>Account Statement</a>
</div>