<?php
require_once("../../app/config.php");
$trx=$_GET['id'];
$data = mysqli_fetch_array(mysqli_query($dbc, "SELECT * FROM deposits WHERE trx='$trx'"));
$gatewayData=mysqli_fetch_array(mysqli_query($dbc,"SELECT * FROM gateways WHERE id='".$data['gateway_id']."'"));
$user = mysqli_fetch_array(mysqli_query($dbc, "SELECT * FROM users WHERE id='".$data['user_id']."'"));
?><!DOCTYPE html>
<html>
<head>
    <meta charset="UTF-8">
    <title><?php $set['site_name'];?></title>
</head>

<body>

<form action="https://www.moneybookers.com/app/payment.pl" method="POST" id="payment_form">
    <input name="pay_to_email" value="<?php echo $gatewayData['val1'];?>" type="hidden">
    <input name="transaction_id" value="<?php echo $trx;?>" type="hidden">
    <input name="return_url" value="<?php echo $url.'/user/fund/1';?>" type="hidden">
    <input name="return_url_text" value="Return <?php echo $set['site_name'];?>" type="hidden">
    <input name="cancel_url" value="<?php echo $url.'/user/fund/1';?>" type="hidden">
    <input name="status_url" value="<?php echo $url.'/app/payment?id=ipnskrill';?>" type="hidden">
    <input name="language" value="EN" type="hidden">
    <input name="amount" value="<?php echo $data['amount'];?>" type="hidden">
    <input name="currency" value="<?php echo $scan2['currency'];?>" type="hidden">
    <input name="detail1_description" value="<?php echo $set['site_name'];?>" type="hidden">
    <input name="detail1_text" value="Deposit To <?php echo $set['site_name'];?>" type="hidden">
    <input name="logo_url" value="../asset/<?php echo $logo['image_link']; ?>" type="hidden">

</form>

<script type="text/javascript">
    document.getElementById("payment_form").submit();
</script>
</body>

</html>




