Files
TravianZ/Templates/Plus/110.tpl
T
novgorodschi catalin 0934806e8d Refactor all PLUS System
Refactor PLUS System + Fix some bugs
2026-05-20 10:57:02 +03:00

41 lines
2.1 KiB
Smarty
Raw Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
<?php
include("Templates/Plus/pmenu.tpl");
$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';
?>
<table class="rate_details lang_ltr lang_de" cellpadding="1" cellspacing="1">
<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>
</div>
</div>