mirror of
https://github.com/Shadowss/TravianZ.git
synced 2026-07-04 20:04:21 +00:00
0934806e8d
Refactor PLUS System + Fix some bugs
39 lines
2.1 KiB
Smarty
39 lines
2.1 KiB
Smarty
<?php
|
||
include("Templates/Plus/pmenu.tpl");
|
||
|
||
$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,'/');
|
||
?>
|
||
<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>
|
||
</div></div> |