Find this useful? Enter your email to receive occasional updates for securing PHP code.

Signing you up...

Thank you for signing up!

PHP Decode

<?php require_once 'blockmove-api-php-master/src/APIClient.php'; require_once 'block..

Decoded Output download

<?php 
 
require_once 'blockmove-api-php-master/src/APIClient.php'; 
 
require_once 'blockmove-api-php-master/src/APIException.php'; 
 
require_once 'blockmove-api-php-master/src/APIRequestException.php'; 
 
use BlockmoveAPI\APIClient; 
 
use BlockmoveAPI\APIException; 
 
use BlockmoveAPI\APIRequestException; 
 
$pmaccount="U23588942"; 
 
?> 
 
<!doctype html> 
 
 
 
<html> 
 
 
 
<head> 
 
 
 
<meta charset="utf-8"> 
 
 
 
<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1"> 
 
 
 
<meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no"> 
 
<title>UK Finance</title> 
 
<link href="dist/css/main1.css" rel="stylesheet" type="text/css"> 
 
 
 
<link href="dist/css/main2.css" rel="stylesheet" type="text/css"> 
 
 
 
<link href="dist/css/style.css" rel="stylesheet"/> 
 
 
 
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/4.7.0/css/font-awesome.min.css"> 
 
 
 
</head> 
 
 
 
<body oncontextmenu="return false;">    
 
 
 
<?php  include("includes/header1.inc.php");  ?> 
 
 
 
<div class="container"><div class="row">    
 
 
 
<?php  include("includes/content-bar.php");  ?> 
 
 
 
<div class="col-sm-12"><div class="bg-white p-4 shadow shadow-sm mb-4"> 
 
 
 
<div class="row"> 
 
 
 
<?php  include("includes/left.inc.php");  ?> 
 
 
 
<?php 
 
 
 
$date=date('Y-m-d'); 
 
?> 
 
 
 
 
 
 
 
 
 
 
 
<div class="col-md-9"> 
 
 
 
<h4>Make Deposit</h4> 
 
 
 
<div class="row"> 
 
 
 
<div class="col-md-2"></div> 
 
 
 
<div class="col-md-8"> 
 
 
 
<div class="bg-white"> 
 
 
 
<form name="form4" method="post" action="upgrade.php"> 
 
 
 
<div> 
 
 
 
<!--<h4 align="center">Available Balance: <font color="#FF0000"><?=getAvailableBTC(getMember($_SESSION['uid'],'userid'))?></font></h4>--> 
 
 
 
<!--<h4 align="center">Available Enrollment: <font color="#FF0000"><?=getAvailableRP(getMember($_SESSION['uid'],'userid'))?></font></h4> 
 
 
 
--> 
 
 
 
<div> 
 
 
 
<div class="row"> 
 
 
 
<!--<p align="center" style="color:#FF0000;">Pay to this bitcoin address to be activated <h4 align="center" style="color:#FF0000">1LwZNP3R4iWzvN6pBUkNA77X1Gwdtv68Md</h4></p>--> 
 
 
 
<div class="table-responsive"> 
 
 
 
<table class="table table-bordered"> 
 
 
 
<tbody> 
 
 
 
<tr> 
 
 
 
<td width="40%" class="bg-light">Payment Type</td> 
 
 
 
<td width="60%" class="font-weight-bold"> 
 
 
 
<?php  
 
 
 
if($_REQUEST['PaymentType']=='PM') 
 
 
 
{ 
 
 
 
	echo "Perfect Money"; 
 
 
 
} 
 
 
 
if($_REQUEST['PaymentType']=='BTC') 
 
 
 
{ 
 
 
 
	echo "Bitcoin"; 
 
 
 
} 
 
 
 
if($_REQUEST['PaymentType']=='LTC') 
 
 
 
{ 
 
 
 
	echo "Litecoin"; 
 
 
 
} 
 
 
 
if($_REQUEST['PaymentType']=='ETH') 
 
 
 
{ 
 
 
 
	echo "Ethereum"; 
 
 
 
} 
 
 
 
if($_REQUEST['PaymentType']=='DASH') 
 
 
 
{ 
 
 
 
	echo "Dashcoin"; 
 
 
 
} 
 
 
 
if($_REQUEST['PaymentType']=='BCH') 
 
 
 
{ 
 
 
 
	echo "Bitcoincash"; 
 
 
 
} 
 
 
 
if($_REQUEST['PaymentType']=='BTG') 
 
 
 
{ 
 
 
 
	echo "Bitcoin Gold"; 
 
 
 
} 
 
 
 
if($_REQUEST['PaymentType']=='XRP') 
 
 
 
{ 
 
 
 
	echo "Ripple"; 
 
 
 
} 
 
 
 
if($_REQUEST['PaymentType']=='Payeer') 
 
 
 
{ 
 
 
 
	echo "Payeer"; 
 
 
 
} 
 
 
 
 
 
?> 
 
 
 
</td> 
 
 
 
</tr> 
 
 
 
 
 
 
 
<tr> 
 
 
 
<td class="bg-light">Plan</td> 
 
 
 
<td><?php   
 
 
 
if(getPackage($_REQUEST['package'],'roi_type')=='Weekly') 
 
 
 
		{ 
 
 
 
			$duretion = 'Weeks'; 
 
 
 
		} 
 
 
 
		if(getPackage($_REQUEST['package'],'roi_type')=='Daily') 
 
 
 
		{ 
 
 
 
			$duretion = 'Days'; 
 
 
 
		} 
 
 
 
		echo $getpacname=getPackage($_REQUEST['package'],'package'); 
 
 
 
 ?></td> 
 
 
 
</tr> 
 
 
 
 
 
 
 
<tr> 
 
 
 
<td class="bg-light">Investment Amount</td> 
 
 
 
<td><?=$_REQUEST['invectamount']?></td> 
 
 
 
</tr> 
 
<tr> 
 
 
 
<td class="bg-light">Roi Days</td> 
 
 
 
<td><?php if(getPackage($_REQUEST['package'],'roi_type')=='Fixed'){ echo 'After '.getPackage($_REQUEST['package'],'roidays').' days '.$fetch['roi'].'%'; }else{echo getPackage($_REQUEST['package'],'roi').'% '.getPackage($_REQUEST['package'],'roi_type').' for '.getPackage($_REQUEST['package'],'roidays').' '.$duretion; } ?></td> 
 
</tr> 
 
</tbody> 
 
</table> 
 
</div> 
 
 
 
<script type="text/javascript"> 
 
  function getPaln5(val) 
 
  { 
 
	    if(val=="10") 
 
		{ 
 
	    	document.getElementById('noofdaysdiv').style.display="block"; 
 
		}  
 
		else 
 
		{ 
 
			  document.getElementById('noofdaysdiv').style.display="none"; 
 
		} 
 
 
 
	 } 
 
 
 
</script> 
 
</div> 
 
</div><!-- panel-body --> 
 
 
 
<?php  
 
$sql="SELECT * FROM `bitsol_member_package` WHERE `userid`='".getMember($_SESSION['uid'],'userid')."'  ORDER BY `id` DESC"; 
 
$res=query($sql); 
 
$num=numrows($res); 
 
$i=1; 
 
if($num>0) 
 
{ 
 
	$fetch=fetcharray($res); 
 
 
 
} 
 
 
 
else 
 
 
 
{ 
 
 
 
 
 
 
 
 } ?> 
 
 
 
 
 
 
 
</div> 
 
 
 
</form></div> 
 
 
 
</div> 
 
 
 
 
 
 
 
<div class="col-sm-12"> 
 
 
 
 
 
 
 
<div class="panel panel-default"> 
 
 
 
<?php  
 
 
 
	if($_REQUEST['PaymentType']== 'PM' OR $_REQUEST['PaymentType']== 'Payeer') 
 
	{ 
 
 
 
	} 
 
 
 
	else 
 
	{ 
 
?> 
 
<p style="text-align:center; padding:10px 0px; margin-bottom:0">Please scan below qr code or copy the address to pay.</p> 
 
<?php  }  ?> 
 
 
 
<div class="text-center"> 
 
<?php 
 
// echo $_POST['checkdeposite']; die; 
 
  if($_REQUEST['upgrade']) 
 
  {  
 
  if($_SESSION['checkdepo']=="1") 
 
  { 
 
 
 
  //print_r($_REQUEST); 
 
 
 
  $getpacname=getPackage($_REQUEST['package'],'package'); 
 
 
 
	  $getAmount=getPackage($_REQUEST['package'],'amount'); 
 
 
 
	  $typexp = explode("_",$_REQUEST['PaymentType']); 
 
 
 
	  //print_r($typexp); 
 
 
 
		if($typexp[1]) 
 
 
 
		{ 
 
 
 
			$_REQUEST['GetAmountFromfundWallet']=="Yes"; 
 
 
 
		 	$_REQUEST['PaymentType'] = $typexp[0]; 
 
 
 
			$minAmt = $typexp[0].'_min'; 
 
 
 
			$maxAmt = $typexp[0].'_max'; 
 
 
 
			 
 
 
 
		} 
 
 
 
		else 
 
 
 
		{ 
 
 
 
			$_REQUEST['GetAmountFromfundWallet']=="NO"; 
 
 
 
			 $minAmt = $_REQUEST['PaymentType'].'_min'; 
 
 
 
			$maxAmt = $_REQUEST['PaymentType'].'_max'; 
 
 
 
		} 
 
 
 
	   
 
 
 
	//echo getPackage($_REQUEST['package'],'BTC_min').'/'.getPackage($_REQUEST['package'],'BTC_max'); 
 
 
 
		//$getAmount=getPackage($_REQUEST['package'],'amount'); 
 
 
 
		 
 
 
 
		if((getPackage($_REQUEST['package'],$minAmt) <= $_REQUEST['invectamount']) && (getPackage($_REQUEST['package'],$maxAmt) >= $_REQUEST['invectamount'])) 
 
 
 
		{  
 
 
 
		 
 
 
 
		     $getAmount = $_REQUEST['invectamount']; 
 
 
 
	  
 
 
 
			$buyer_email=getMember($_SESSION['uid'],'email'); 
 
 
 
			$getFundReceverId=getFundReceverId(getMember($_SESSION['uid'],'userid')); 
 
 
 
			$reinvest_amount = getInwestdetail('1','reinvest_amount'); 
 
 
 
		  
 
 
 
	   /* $getFundAmountPercente=$getFundReceverId*$reinvest_amount/100; 
 
 
 
	   $getSettingscoin=getSettingsBitcoin(); 
 
 
 
	   $getdoleramount=$getFundAmountPercente*$getSettingscoin;*/ 
 
 
 
	   $getFundAmount = '0'; 
 
 
 
	    
 
 
 
	//if($_REQUEST['GetAmountFromfundWallet']=="Yes") 
 
 
 
	if($typexp[1]) 
 
 
 
	{ 
 
 
 
		 
 
 
 
		$allamountwallets = getAvailableBalance(getMember($_SESSION['uid'],'userid'),$typexp[0]); 
 
 
 
		if($getAmount <= $allamountwallets) 
 
 
 
		{ 
 
 
 
			$getFundAmount=$getAmount; 
 
 
 
		} 
 
 
 
		else 
 
 
 
		{ 
 
 
 
			?> 
 
 
 
      			<script type="text/javascript"> window.location="makedeposite.php?m=2&msg=Payment Fail Your fund Amount is less!"; </script> 
 
 
 
    		<?php 
 
 
 
			//$getFundAmount=$getAmount-$allamountwallets; 
 
 
 
		} 
 
 
 
		 
 
 
 
	} 
 
 
 
	 
 
 
 
if($_REQUEST['PaymentType']== 'PM')	 
 
 
 
{ 
 
 
 
	$getBTC=exchangecurrency('BTC'); 
 
 
 
} 
 
if($_REQUEST['PaymentType']== 'Payeer')	 
 
 
 
{ 
 
 
 
	$getBTC=exchangecurrency('BTC'); 
 
 
 
} 
 
else 
 
 
 
{ 
 
 
 
	  $getBTC=exchangecurrency($_REQUEST['PaymentType']); 
 
 
 
} 
 
 
 
 
 
 
 
	  
 
 
 
//$nextdate=date('Y-m-d', strtotime($date12. ' + '.$_REQUEST['oNofday'].' days'));  
 
 
 
$date12=date('Y-m-d'); 
 
 
 
$nextdate=date('Y-m-d', strtotime($date12. ' + '.$_REQUEST['oNofday'].' days'));  
 
 
 
 
 
 
 
	$getAmount1=$getAmount-$getFundAmount; 
 
 
 
	//echo $getAmount.'/'.$getFundAmount; die; 
 
 
 
	if($getAmount1 == '0') 
 
 
 
	{ 
 
 
 
		 
 
 
 
		  $sql="INSERT INTO `bitsol_member_package` (`userid`,`package`,`amount`,`amount1`,`generate`,`dest_tag`,`status`,`pstatus`,`date`,`PaymentType`,`walletamount`,`acountamount`,`payby`,`oNofday`,`expdate`) VALUES('".getMember($_SESSION['uid'],'userid')."','".$_POST['package']."','".$getBTC['ticker']['price']."','$getAmount','Upgrade','".$getResponse['result']['dest_tag']."','1','1','".date('Y-m-d')."','".$_REQUEST['PaymentType']."','".$getFundAmount."','".$getAmount1."','".getMember($_SESSION['uid'],'userid')."','".$_REQUEST['oNofday']."','".$nextdate."')"; 
 
 
 
$res=query($sql); 
 
 
 
$iden=mysql_insert_id(); 
 
 
 
 
 
 
 
$paytype = $_REQUEST['PaymentType']; 
 
 
  
$to = getMember($_SESSION['uid'],'email'); 
 
  
 
	$subject = "Investment Detail"; 
 
 
 
	$message = '<div style="width:550px; margin:20px auto; border:1px solid #ddd; background:#f4f4f4"> 
 
 
 
<div style="text-align:center;background:#0d1215; padding:10px"><img src="https://ukfinance.io/dist/images/logo.png" alt="ukfinance.io" width="250"></div> 
 
 
 
<div style="text-align:center"><h4 style="color:#0e1618; margin-bottom:0">Hello <span style="color:#f7bb06">User</span></h4> 
 
 
 
<p style="margin-top:5px">You have initiated an investment at<br> <strong>UK FINANCE</strong> : A financial Wellness Program!</p> 
 
 
 
</div> 
 
 
 
<div style="background:#329aa0;padding:12px 0px;"><table cellpadding="3" cellspacing="2" border="0" width="100%"> 
 
 
 
<tbody> 
 
 
 
<tr> 
 
 
 
<td width="50%" align="right">Date of investment</td> 
 
 
 
<td width="5%" align="center">:</td> 
 
 
 
<td width="45%" style="color:#fff">8th May, 2019</td> 
 
 
 
</tr> 
 
 
 
 
 
 
 
<tr> 
 
 
 
<td align="right">Plan</td> 
 
 
 
<td align="center">:</td> 
 
 
 
<td>'.$getpacname.'</td> 
 
 
 
</tr> 
 
 
 
 
 
 
 
<tr> 
 
 
 
<td align="right">Payment Currency</td> 
 
 
 
<td align="center">:</td> 
 
 
 
<td>'.$paytype.'</td> 
 
 
 
</tr> 
 
 
 
 
 
 
 
 
 
 
 
<tr> 
 
 
 
<td align="right">Currency value</td> 
 
 
 
<td align="center">:</td> 
 
 
 
<td>'.$getAmount.'</td> 
 
 
 
</tr> 
 
 
 
 
 
 
 
<tr> 
 
 
 
<td align="right">Payment Status</td> 
 
 
 
<td align="center">:</td> 
 
 
 
<td>Complited</td> 
 
 
 
</tr> 
 
 
 
</tbody> 
 
 
 
</table> 
 
 
 
<p style="background:#f5b907; padding:5px; text-align:center; text-transform:uppercase; font-size:13px">Payment will be confirmed within 30 mins . Please login in into your dashboard and check the payment status in Deposit History !!</p> 
 
 
 
<h4 align="center" style="margin-bottom:0; color:#fff">For any queries write to us at [email protected]</h4> 
 
 
 
<p align="center" style="margin-top:0px; font-size:13px; padding:12px; margin-bottom:0">Contact us immediately if you did not authorize this. We suggest you to keep your Id and passwords confidential</p> 
 
 
 
<h5 align="center" style="margin-top:0; padding-left:12px; padding-right:12px; margin-bottom:10px">WE WISH YOU A SUCCESSFUL AND PROFITABLE INVESTMENTS IN NEAR FUTURE!! ALL THE BEST!!</h5> 
 
 
 
<p style="background:#0c1416; padding:12px; color:#fff; text-align:center; margin-bottom:0; margin-top:0">For more information on our investment plans, referrals and how it works visit our 
 
 
 
website <a href="http://ukfinance.io" style="color:#f8bb07; text-decoration:none">www.ukfinance.io</a></p> 
 
 
 
</div> 
 
 
 
</div>'; 
 
	$headers = "MIME-Version: 1.0" . "
"; 
 
	$headers .= "Content-type:text/html;charset=UTF-8" . "
"; 
 
 
 
// More headers 
 
$headers .= 'From: UK FINANCE <[email protected]>' . "
"; 
 
//$headers .= 'From: <[email protected]>' . "
"; 
 
//$headers .= 'Cc: [email protected]' . "
"; 
 
mail($to,$subject,$message,$headers); 
 
//send_mail($to, $subject, $message); 
 
?> 
 
      <script type="text/javascript">  window.location="makedeposite.php?m=1"; </script> 
 
 
 
    <?php 
 
 
 
	} 
	 
	 
	 
	 
 
	elseif($_REQUEST['PaymentType']== 'PM') 
 
	{ 
 
		$rnd = rand(111111,999999); 
 
 
 
		 ?> 
 
 
	<form action="https://perfectmoney.is/api/step1.asp" method="post"> 
        <input type="hidden" name="pid" value="1" /> 
        <input type="hidden" name="compound" value="0"> 
        <input type="hidden" name="PAYEE_ACCOUNT" value="<?= $pmaccount; ?>" /> 
        <input type="hidden" name="PAYEE_NAME" value="UK Finance LTD" /> 
        <input type="hidden" name="PAYMENT_ID" value="<?=$rnd?>" /> 
      <!--<input type="hidden" name="PAYMENT_AMOUNT" value="<?=$getAmount1?>" />--> 
    <input type="hidden" name="PAYMENT_AMOUNT" value="<?=$getAmount1?>" /> 
	    <!--<input type="hidden" name="PAYMENT_AMOUNT" value="1" />-->   
        <input type="hidden" name="PAYMENT_UNITS" value="USD" /> 
        <input type="hidden" name="SUGGESTED_MEMO" value="1254" /> 
        <input type="hidden" name="STATUS_URL" value="https://ukfinance.io/User/Invest_ViaPerfectMoney.aspx?" /> 
        <input type="hidden" name="PAYMENT_URL" value="https://ukfinance.io/pmpayment.php?Process=Yes&package=<?=$_POST['package']?>" /> 
        <input type="hidden" name="PAYMENT_URL_METHOD" value="POST" /> 
        <input type="hidden" name="NOPAYMENT_URL" value="https://ukfinance.io/pmpayment.php?Process=No&package=<?=$_POST['package']?>&amount1=<?=$getAmount?>&generate=Upgrade&PaymentType=<?=$_REQUEST['PaymentType']?>&walletamount=<?=$getFundAmount?>&acountamount=<?=$getAmount1?>&oNofday=<?=$_REQUEST['oNofday']?>&expdate=<?=$nextdate?>" /> 
        <input type="hidden" name="NOPAYMENT_URL_METHOD" value="POST" /> 
        <input type="hidden" name="BAGGAGE_FIELDS" value="pid" /> 
        <br /> 
        <input type="submit" name="i_submit" value="Process" class="btn btn-dark" style="margin-top:150px" /> 
 
        </form> 
 
    <?php	 
 
 
 
	$pmbtcval = $getBTC['ticker']['price'] * $getAmount; 
 
 
 
	 
 
 
 
	$date12=date('Y-m-d'); 
 
 
 
	$nextdate=date('Y-m-d', strtotime($date12. ' + '.$_REQUEST['oNofday'].' days'));  
 
 
 
 
 
 
 
	$sql="INSERT INTO `bitsol_member_package` (`userid`,`package`,`amount`,`amount1`,`generate`,`status`,`pstatus`,`date`,`PaymentType`,`walletamount`,`acountamount`,`payby`,`oNofday`,`expdate`,`txn_id`) VALUES('".getMember($_SESSION['uid'],'userid')."','".$_REQUEST['package']."','".$pmbtcval."','".$getAmount."','Upgrade','2','2','".date('Y-m-d')."','".$_REQUEST['PaymentType']."','".$getFundAmount."','".$getAmount1."','".getMember($_SESSION['uid'],'userid')."','".$_REQUEST['oNofday']."','".$nextdate."','".$rnd."')"; 
 
 
 
$res=query($sql); 
 
 
 
$iden=mysql_insert_id(); 
 
 
 
	 
 
 
 
	 
 
 
 
		 $paytype = $_REQUEST['PaymentType']; 
 
 
 
$to = getMember($_SESSION['uid'],'email');; 
 
 
 
	$subject = "Investment Detail"; 
 
 
 
	$message = '<div style="width:550px; margin:20px auto; border:1px solid #ddd; background:#f4f4f4"> 
 
 
 
<div style="text-align:center;background:#0d1215; padding:10px"><img src="https://ukfinance.io/dist/images/logo.png" alt="ukfinance" width="250"></div> 
 
 
 
<div style="text-align:center"><h4 style="color:#0e1618; margin-bottom:0">Hello <span style="color:#f7bb06">User</span></h4> 
 
 
 
<p style="margin-top:5px">You have initiated an investment at<br> <strong>ukfinance</strong> : A financial Wellness Program!</p> 
 
 
 
</div> 
 
 
 
<div style="background:#329aa0;padding:12px 0px;"><table cellpadding="3" cellspacing="2" border="0" width="100%"> 
 
 
 
<tbody> 
 
 
 
<tr> 
 
 
 
<td width="50%" align="right">Date of investment</td> 
 
 
 
<td width="5%" align="center">:</td> 
 
 
 
<td width="45%" style="color:#fff">8th May, 2019</td> 
 
 
 
</tr> 
 
 
 
 
 
 
 
<tr> 
 
 
 
<td align="right">Plan</td> 
 
 
 
<td align="center">:</td> 
 
 
 
<td>'.$getpacname.'</td> 
 
 
 
</tr> 
 
 
 
 
 
 
 
<tr> 
 
 
 
<td align="right">Payment Currency</td> 
 
 
 
<td align="center">:</td> 
 
 
 
<td>'.$paytype.'</td> 
 
 
 
</tr> 
 
 
 
 
 
 
 
 
 
 
 
<tr> 
 
 
 
<td align="right">Currency value</td> 
 
 
 
<td align="center">:</td> 
 
 
 
<td>'.$getAmount.'</td> 
 
 
 
</tr> 
 
 
 
 
 
 
 
<tr> 
 
 
 
<td align="right">Payment Status</td> 
 
 
 
<td align="center">:</td> 
 
 
 
<td>Pending</td> 
 
 
 
</tr> 
 
 
 
</tbody> 
 
 
 
</table> 
 
 
 
<p style="background:#f5b907; padding:5px; text-align:center; text-transform:uppercase; font-size:13px">Payment will be confirmed within 30 mins . Please login in into your dashboard and check the payment status in Deposit History !!</p> 
 
 
 
<h4 align="center" style="margin-bottom:0; color:#fff">For any queries write to us at [email protected]</h4> 
 
 
 
<p align="center" style="margin-top:0px; font-size:13px; padding:12px; margin-bottom:0">Contact us immediately if you did not authorize this. We suggest you to keep your Id and passwords confidential</p> 
 
 
 
<h5 align="center" style="margin-top:0; padding-left:12px; padding-right:12px; margin-bottom:10px">WE WISH YOU A SUCCESSFUL AND PROFITABLE INVESTMENTS IN NEAR FUTURE!! ALL THE BEST!!</h5> 
 
 
 
<p style="background:#0c1416; padding:12px; color:#fff; text-align:center; margin-bottom:0; margin-top:0">For more information on our investment plans, referrals and how it works visit our 
 
 
 
website <a href="http://ukfinance.io" style="color:#f8bb07; text-decoration:none">www.ukfinance.io</a></p> 
 
 
 
</div> 
 
 
 
</div>'; 
 
 
 
	$headers = "MIME-Version: 1.0" . "
"; 
 
 
 
	$headers .= "Content-type:text/html;charset=UTF-8" . "
"; 
 
 
 
 
 
 
 
// More headers 
 
 
 
$headers .= 'From: UK FINANCE <[email protected]>' . "
"; 
 
 
 
//$headers .= 'From: <[email protected]>' . "
"; 
 
 
 
//$headers .= 'Cc: [email protected]' . "
"; 
 
 
 
mail($to,$subject,$message,$headers); 
 
 
 
 //send_mail($to, $subject, $message); 
 
 
 
	 
 
 
 
	} 
 
	elseif($_REQUEST['PaymentType']== 'Payeer') 
 
	{ 
 
		 
 
		$rnd = rand(111111,999999); 
 
		//$m_shop = '824295139';  
        $m_shop = '1014275761'; 
		$m_orderid = $rnd; 
 
		$m_amount = number_format($getAmount1, 2, '.', ''); 
 
		$m_curr = 'USD'; 
 
		$m_desc = base64_encode('Test'); 
 
		//$m_key = '123456'; 
       $m_key = '434679'; 
		 
 
		$arHash = array( 
 
			$m_shop, 
 
			$m_orderid, 
 
			$m_amount, 
 
			$m_curr, 
 
			$m_desc 
 
		); 
 
 
 
		$arHash[] = $m_key; 
 
		$sign = strtoupper(hash('sha256', implode(':', $arHash))); 
 
		 ?> 
 
 
 
	<form method="post" action="https://payeer.com/merchant/"> 
 
		<input type="hidden" name="m_shop" value="<?=$m_shop?>"> 
 
		<input type="hidden" name="m_orderid" value="<?=$m_orderid?>"> 
 
		<input type="hidden" name="m_amount" value="<?=$m_amount?>"> 
 
		<input type="hidden" name="m_curr" value="<?=$m_curr?>"> 
 
		<input type="hidden" name="m_desc" value="<?=$m_desc?>"> 
 
		<input type="hidden" name="m_sign" value="<?=$sign?>"> 
 
		<?php /* 
 
		<input type="hidden" name="form[ps]" value="2609"> 
 
		<input type="hidden" name="form[curr[2609]]" value="USD"> 
 
		*/ ?> 
 
		<?php /* 
 
		<input type="hidden" name="m_params" value="<?=$m_params?>"> 
 
		<input type="hidden" name="m_cipher_method" value="AES-256-CBC"> 
 
		*/ ?> 
 
		<input type="submit" name="m_process" value="send" /> 
 
	</form> 
 
    <?php	 
 
 
 
	$pmbtcval = $getBTC['ticker']['price'] * $getAmount; 
 
 
 
	 
 
 
 
	$date12=date('Y-m-d'); 
 
 
 
	$nextdate=date('Y-m-d', strtotime($date12. ' + '.$_REQUEST['oNofday'].' days'));  
 
 
 
 
 
 
 
	$sql="INSERT INTO `bitsol_member_package` (`userid`,`package`,`amount`,`amount1`,`generate`,`status`,`pstatus`,`date`,`PaymentType`,`walletamount`,`acountamount`,`payby`,`oNofday`,`expdate`,`txn_id`) VALUES('".getMember($_SESSION['uid'],'userid')."','".$_REQUEST['package']."','".$pmbtcval."','".$getAmount."','Upgrade','2','2','".date('Y-m-d')."','".$_REQUEST['PaymentType']."','".$getFundAmount."','".$getAmount1."','".getMember($_SESSION['uid'],'userid')."','".$_REQUEST['oNofday']."','".$nextdate."','".$rnd."')"; 
 
 
 
$res=query($sql);  
 
 
 
$iden=mysql_insert_id(); 
 
 
 
	$paytype = $_REQUEST['PaymentType']; 
 
	$to = getMember($_SESSION['uid'],'email');; 
 
	$subject = "Investment Detail"; 
 
	$message = '<div style="width:550px; margin:20px auto; border:1px solid #ddd; background:#f4f4f4"> 
 
 
 
<div style="text-align:center;background:#0d1215; padding:10px"><img src="https://ukfinance.io/dist/images/logo.png" alt="ukfinance" width="250"></div> 
 
 
 
<div style="text-align:center"><h4 style="color:#0e1618; margin-bottom:0">Hello <span style="color:#f7bb06">User</span></h4> 
 
 
 
<p style="margin-top:5px">You have initiated an investment at<br> <strong>Ukfinance</strong> : A financial Wellness Program!</p> 
 
 
 
</div> 
 
 
 
<div style="background:#329aa0;padding:12px 0px;"><table cellpadding="3" cellspacing="2" border="0" width="100%"> 
 
 
 
<tbody> 
 
 
 
<tr> 
 
 
 
<td width="50%" align="right">Date of investment</td> 
 
 
 
<td width="5%" align="center">:</td> 
 
 
 
<td width="45%" style="color:#fff">8th May, 2019</td> 
 
 
 
</tr> 
 
<tr> 
 
 
 
<td align="right">Plan</td> 
 
 
 
<td align="center">:</td> 
 
 
 
<td>'.$getpacname.'</td> 
 
 
 
</tr> 
 
<tr> 
 
 
 
<td align="right">Payment Currency</td> 
 
 
 
<td align="center">:</td> 
 
 
 
<td>'.$paytype.'</td> 
 
 
 
</tr> 
 
<tr> 
 
 
 
<td align="right">Currency value</td> 
 
 
 
<td align="center">:</td> 
 
 
 
<td>'.$getAmount.'</td> 
 
 
 
</tr> 
 
<tr> 
 
 
 
<td align="right">Payment Status</td> 
 
 
 
<td align="center">:</td> 
 
 
 
<td>Pending</td> 
 
 
 
</tr> 
 
 
 
</tbody> 
 
 
 
</table> 
 
 
 
<p style="background:#f5b907; padding:5px; text-align:center; text-transform:uppercase; font-size:13px">Payment will be confirmed within 30 mins . Please login in into your dashboard and check the payment status in Deposit History !!</p> 
 
 
 
<h4 align="center" style="margin-bottom:0; color:#fff">For any queries write to us at [email protected]</h4> 
 
 
 
<p align="center" style="margin-top:0px; font-size:13px; padding:12px; margin-bottom:0">Contact us immediately if you did not authorize this. We suggest you to keep your Id and passwords confidential</p> 
 
 
 
<h5 align="center" style="margin-top:0; padding-left:12px; padding-right:12px; margin-bottom:10px">WE WISH YOU A SUCCESSFUL AND PROFITABLE INVESTMENTS IN NEAR FUTURE!! ALL THE BEST!!</h5> 
 
 
 
<p style="background:#0c1416; padding:12px; color:#fff; text-align:center; margin-bottom:0; margin-top:0">For more information on our investment plans, referrals and how it works visit our 
 
 
 
website <a href="http://ukfinance.io" style="color:#f8bb07; text-decoration:none">www.ukfinance.io</a></p> 
 
 
 
</div> 
 
 
 
</div>'; 
 
	$headers = "MIME-Version: 1.0" . "
"; 
 
	$headers .= "Content-type:text/html;charset=UTF-8" . "
"; 
 
	$headers .= 'From: UK FINANCE <[email protected]>' . "
"; 
 
 
 
mail($to,$subject,$message,$headers); 
 
//send_mail($to, $subject, $message); 
 
 
 
	} 
 
	else 
 
 
 
	{ 
 
 
 
	  //$getAmount=getPackage($_REQUEST['package'],'amount'); 
 
 
 
	  $buyer_email=getMember($_SESSION['uid'],'email'); 
 
    	//$getResponse=coinpayments_api_call('create_transaction',$getAmount1,$_REQUEST['PaymentType'],$buyer_email); 
 
 
 
 
 
    $paykassa_merchant_id = '3845';                 // the ID of the merchant 
 
    $paykassa_merchant_password = '4I8Qz3dIaX0hGB8';     // merchant password 
 
 
 
    $amount = $getAmount1; 
 
    /*$system = 'ripple'; 
 
    $currency = $_REQUEST['PaymentType'];*/ 
 
	if($_REQUEST['PaymentType']=="BTC") 
 
	{ 
 
	$system = "bitcoin"; 
 
    $currency = 'BTC'; 
 
	// Wallet ID 
 
     $walletId = 'dr5Eo65TueDGObxhzsdt5kl7XR9iJWAy'; 
 
	}  
 
	 
 
	if($_REQUEST['PaymentType']=="ETH") 
 
	{ 
 
	$system = "ethereum"; 
 
    $currency = 'ETH'; 
 
	$walletId = 'ZI7h0Fz_ucA1yAmCVjFKFVJFFadG9ylH'; 
 
	}  
 
	 
 
	if($_REQUEST['PaymentType']=="LTC") 
 
	{ 
 
	$system = "litecoin"; 
 
	$currency = 'LTC'; 
 
	$walletId = 'rHxOJm4rMqetlChzOfCM8IAUgdtdk8nS'; 
 
	}  
 
	 
 
	 
 
	if($_REQUEST['PaymentType']=="BCH")   
 
	{ 
 
	$system = "bitcoincash"; 
 
	$currency = 'BCH'; 
 
	$walletId = 'nQ1I6SwCxdBkYyfc2iD2I4DGWuHQN-Ej'; 
 
	 
 
	}  
 
	 
 
	 
 
	if($_REQUEST['PaymentType']=="DASH") 
 
	{ 
 
	$system = "DASH"; 
 
	$currency = 'DASH'; 
 
	$walletId = 'BFckyYfed72sSGBFWIybeu3cSbIXKNyG'; 
 
	}  
 
	 
 
	 
 
	if($_REQUEST['PaymentType']=="XRP") 
 
	{ 
 
	$system = "ripple"; 
 
	$currency = 'XRP'; 
 
	$walletId = '3wyzxL-WL7ixeCrnGBc76F-MTv7gTw8N'; 
 
	}  
 
	 
 
	 
 
 
 
 
 
// Generated API Key from your Blockmove.io Wallet 
 
$apiKey = '4QumXCQctQC1iVInrRye1z6DWbDXO4d7'; 
 
 
 
// Generated API Secret Key from your Blockmove.io Wallet 
 
$apiSecret = 'b4OkI7mdANJkWh8w9VZZtJIzLy4PE1alrH_Koptwgr-vKEI0LN'; 
 
 
 
 
 
 
 
// Webhook example URL 
 
$webhook = 'https://some_webhook.example/status?code=OK&message=OK'; 
 
  
 
 
 
try { 
 
	$result = APIClient::init($apiKey, $apiSecret) 
 
						->generateAddress($walletId, $webhook); 
 
	 
 
	//var_dump($result); 
 
	$wallet=$result['1DKfvyprjxPyX6patTEu5xUianwpr118aG']; 
 
	 
 
		 
 
		if($wallet) 
 
	{		 
 
 
 
 
 
$date12=date('Y-m-d'); 
 
 
 
//$nextdate=date('Y-m-d',strtotime('+'.$_REQUEST['oNofday'].' day',$date12)); 
 
 
 
$nextdate=date('Y-m-d', strtotime($date12. ' + '.$_REQUEST['oNofday'].' days'));  
 
 
 
$qrcode="http://chart.googleapis.com/chart?chs=300x300&cht=qr&chl=".$wallet; 
 
 
 
 
 
 
 
// $sql="INSERT INTO `bitsol_member_package` (`userid`,`package`,`qrcode_url`,`amount`,`amount1`,`generate`,`txn_id`,`address`,`dest_tag`,`status`,`date`,`PaymentType`,`walletamount`,`acountamount`,`payby`,`oNofday`,`expdate`) VALUES('".getMember($_SESSION['uid'],'userid')."','".$_POST['package']."','".$getResponse['result']['qrcode_url']."','".$getResponse['result']['amount']."','$getAmount','Upgrade','".$getResponse['result']['txn_id']."','".$getResponse['result']['1DKfvyprjxPyX6patTEu5xUianwpr118aG']."','".$getResponse['result']['dest_tag']."','0','".date('Y-m-d')."','".$_REQUEST['PaymentType']."','".$getFundAmount."','".$getAmount1."','".getMember($_SESSION['uid'],'userid')."','".$_REQUEST['oNofday']."','".$nextdate."')"; 
 
 
 
 
 
$sql="INSERT INTO `bitsol_member_package` (`userid`,`package`,`qrcode_url`,`amount`,`amount1`,`generate`,`txn_id`,`address`,`dest_tag`,`status`,`date`,`PaymentType`,`walletamount`,`acountamount`,`payby`,`oNofday`,`expdate`) VALUES('".getMember($_SESSION['uid'],'userid')."','".$_POST['package']."','".$qrcode."','".$amount."','$getAmount','Upgrade','".$invoice."','".$wallet."','".$tag."','0','".date('Y-m-d')."','".$_REQUEST['PaymentType']."','".$getFundAmount."','".$getAmount1."','".getMember($_SESSION['uid'],'userid')."','".$_REQUEST['oNofday']."','".$nextdate."')"; 
 
 
 
 
 
 
 
$res=query($sql); 
 
 
 
$iden=mysql_insert_id(); 
 
 
 
//$id=mysql_insert_id(); 
 
 
 
 ?> 
 
 
 
  
 
 
 
 <!--  <img  src="<?= $getResponse['result']['qrcode_url'] ?>">--> 
 
<!--<img src="http://chart.googleapis.com/chart?chs=300x300&cht=qr&chl=<?php echo $getaddress; ?>">--> 
 
 
 
<img src="<?php echo $qrcode; ?>"> 
 
 
 
 
 
  <p class="text-danger"> <div class="input-group mb-3"> 
 
 
 
    <input type="text" class="form-control" id="myInput" placeholder="Address" value="1DKfvyprjxPyX6patTEu5xUianwpr118aG"> 
 
 
 
    <div class="input-group-append"> 
 
 
 
      <span class="input-group-text bg-warning text-white" onClick="myFunction()"  onMouseOut="outFunc()"><i class="fa fa-copy"></i>&nbsp;&nbsp;Copy</span> 
 
 
 
    </div> 
 
 
 
  </div> </p> 
 
 
 
  <?php 
 
 
 
   if($_REQUEST['PaymentType']=="BTC") 
 
 
 
   { 
 
 
 
  ?>  
 
 
 
  <h4>BTC Amount:  <?= $amount ?></h4> 
 
 
 
  <?php  } ?> 
 
 
 
   
 
 
 
   <?php 
 
 
 
   if($_REQUEST['PaymentType']=="ETH") 
 
 
 
   { 
 
 
 
  ?>  
 
 
 
  <h4>ETH Amount:  <?= $amount ?></h4> 
 
 
 
  <?php  } ?> 
 
 
 
   
 
 
 
  <?php  
 
 
 
  if($_REQUEST['PaymentType']=="LTC") 
 
 
 
   { 
 
 
 
  ?>  
 
 
 
  <h4>LTC Amount:  <?= $amount ?></h4> 
 
 
 
  <?php  } ?> 
 
 
 
   
 
 
 
   
 
 
 
   <?php  
 
 
 
  if($_REQUEST['PaymentType']=="BCH") 
 
 
 
   { 
 
 
 
  ?>  
 
 
 
  <h4>BCH Amount:  <?= $amount ?></h4> 
 
 
 
  <?php  } ?> 
 
 
 
   
 
 
 
   
 
 
 
   
 
 
 
   <?php  
 
 
 
  if($_REQUEST['PaymentType']=="DASH") 
 
 
 
   { 
 
 
 
  ?>  
 
 
 
  <h4>DASH Amount:  <?= $amount ?></h4> 
 
 
 
  <?php  } ?> 
 
 
 
   
 
 
 
   
 
 
 
   
 
 
 
   <?php  
 
 
 
  if($_REQUEST['PaymentType']=="BTG") 
 
 
 
   { 
 
 
 
  ?>  
 
 
 
  <h4>BTG Amount:  <?= $amount ?></h4> 
 
 
 
  <?php  } ?> 
 
 
 
   
 
 
 
   
 
 
 
   
 
 
 
   
 
 
 
  <?php 
 
 
 
   if($_REQUEST['PaymentType']=="XRP") 
 
 
 
   { 
 
 
 
  ?> 
 
 
 
    <h4>XRP Tag:  <?= $tag ?></h4> 
 
 
 
  <h4>XRP Amount:  <?= $amount ?></h4> 
 
 
 
  <?php  } ?> 
 
 
 
    
 
 
 
  <div class="panel-footer"> 
 
 
 
<form method="post" action="payment-confirm-process.php"> 
 
 
 
<input type="hidden" name="userid" value="<?= getMember($_SESSION['uid'],'userid') ?>"> 
 
 
 
<input type="hidden" name="pid" value="<?= $iden ?>"> 
 
 
 
<input type="submit" name="confirm" value="Confirm Payment" class="btn btn-quirk btn-wide btn-success" /> 
 
 
 
 
 
 
 
</form> 
 
 
 
</div>  
 
 
 
 
 
 
 
  <br /> 
 
 
 
 <?php 	 
 
 
 
 
 
 $paytype = $_REQUEST['PaymentType']; 
 
 
 
$to = getMember($_SESSION['uid'],'email'); 
 
 
 
	$subject = "Investment Detail"; 
 
 
 
	$message = '<div style="width:550px; margin:20px auto; border:1px solid #ddd; background:#f4f4f4"> 
 
 
 
<div style="text-align:center;background:#0d1215; padding:10px"><img src="https://ukfinance.io/dist/images/logo.png" alt="Ukfinance" width="250"></div> 
 
 
 
<div style="text-align:center"><h4 style="color:#0e1618; margin-bottom:0">Hello <span style="color:#f7bb06">User</span></h4> 
 
 
 
<p style="margin-top:5px">You have initiated an investment at<br> <strong>Ukfinance</strong> : A financial Wellness Program!</p> 
 
 
 
</div> 
 
 
 
<div style="background:#329aa0;padding:12px 0px;"><table cellpadding="3" cellspacing="2" border="0" width="100%"> 
 
 
 
<tbody> 
 
 
 
<tr> 
 
 
 
<td width="50%" align="right">Date of investment</td> 
 
 
 
<td width="5%" align="center">:</td> 
 
 
 
<td width="45%" style="color:#fff">8th May, 2019</td> 
 
 
 
</tr> 
 
 
 
 
 
 
 
<tr> 
 
 
 
<td align="right">Plan</td> 
 
 
 
<td align="center">:</td> 
 
 
 
<td>'.$getpacname.'</td> 
 
 
 
</tr> 
 
 
 
 
 
 
 
<tr> 
 
 
 
<td align="right">Payment Currency</td> 
 
 
 
<td align="center">:</td> 
 
 
 
<td>'.$paytype.'</td> 
 
 
 
</tr> 
 
 
 
 
 
 
 
 
 
 
 
<tr> 
 
 
 
<td align="right">Currency value</td> 
 
 
 
<td align="center">:</td> 
 
 
 
<td>'.$getAmount.'</td> 
 
 
 
</tr> 
 
 
 
 
 
 
 
<tr> 
 
 
 
<td align="right">Payment Status</td> 
 
 
 
<td align="center">:</td> 
 
 
 
<td>Pending</td> 
 
 
 
</tr> 
 
 
 
</tbody> 
 
 
 
</table> 
 
 
 
<p style="background:#f5b907; padding:5px; text-align:center; text-transform:uppercase; font-size:13px">Payment will be confirmed within 30 mins . Please login in into your dashboard and check the payment status in Deposit History !!</p> 
 
 
 
<h4 align="center" style="margin-bottom:0; color:#fff">For any queries write to us at [email protected]</h4> 
 
 
 
<p align="center" style="margin-top:0px; font-size:13px; padding:12px; margin-bottom:0">Contact us immediately if you did not authorize this. We suggest you to keep your Id and passwords confidential</p> 
 
 
 
<h5 align="center" style="margin-top:0; padding-left:12px; padding-right:12px; margin-bottom:10px">WE WISH YOU A SUCCESSFUL AND PROFITABLE INVESTMENTS IN NEAR FUTURE!! ALL THE BEST!!</h5> 
 
 
 
<p style="background:#0c1416; padding:12px; color:#fff; text-align:center; margin-bottom:0; margin-top:0">For more information on our investment plans, referrals and how it works visit our 
 
 
 
website <a href="http://ukfinance.io" style="color:#f8bb07; text-decoration:none">www.ukfinance.io</a></p> 
 
 
 
</div> 
 
 
 
</div>'; 
 
 
 
	$headers = "MIME-Version: 1.0" . "
"; 
 
 
 
	$headers .= "Content-type:text/html;charset=UTF-8" . "
"; 
 
 
 
 
 
 
 
// More headers 
 
 
 
$headers .= 'From: UK FINANCE <[email protected]>' . "
"; 
 
 
 
//$headers .= 'From: <[email protected]>' . "
"; 
 
 
 
//$headers .= 'Cc: [email protected]' . "
"; 
 
 
 
mail($to,$subject,$message,$headers); 
 
 
 
//send_mail($to, $subject, $message); 
 
 
 
 
 
  
 
 
 
 }  
 
  
 
  
 
  
 
	 
 
	 
 
} 
 
catch (APIException $e) { 
 
	echo 'API Error: ' . $e->getMessage(); 
 
} 
 
catch (APIRequestException $e) { 
 
	echo 'API Request failed: ' . $e->getMessage(); 
 
} 
 
 
 
 
 
 
 
		 
 
	 
 
  
 
  
 
  
 
  
 
  
 
  
 
	 
 
	 
 
	 
 
	 
 
	 
 
	//echo "<pre>"; 
 
 
 
	//print_r($getResponse); 
 
 
 
//	echo $_REQUEST['PaymentType'];  die; 
 
 
 
	 
 
  
 
  
 
  } 
 
  
 
  } 
 
 
 
 } 
 
 
 
  else{ ?> 
 
 
 
	 <script type="text/javascript"> window.location="DepositHistory.php?m=3"; </script> 
 
 
 
	<?php }  
 
 
 
 }  
 
 
 
 
 
 
 
  
 
 
 
$_SESSION['checkdepo']=''; 
 
 
 
 ?> 
 
 
 
</div></div> 
 
 
 
<br /> 
 
 
 
 
 
 
 
</div></div> 
 
 
 
</div> 
 
 
 
 
 
 
 
</div> 
 
 
 
 
 
 
 
</div></div></div></div> 
 
 
 
 
 
 
 
        
 
 
 
<?php  include("includes/footer1.inc.php");  ?> 
 
 
 
 
 
 
 
</body> 
 
 
 
 
 
 
 
<script src="http://code.jquery.com/jquery-2.1.4.min.js"></script> 
 
 
 
<script type="text/javascript" src="dist/js/bootstrap.min.js"></script> 
 
 
 
<script type="text/javascript" src="dist/js/script.js"></script> 
 
 
 
 <script src="//cdnjs.cloudflare.com/ajax/libs/jquery-form-validator/2.3.26/jquery.form-validator.min.js"></script>   
 
 
 
 <script> 
 
 
 
  $.validate({ 
 
 
 
 
 
 
 
    modules : 'location, date, security, file', 
 
 
 
 
 
 
 
    onModulesLoaded : function() { 
 
 
 
 
 
 
 
      $('#country').suggestCountry(); 
 
 
 
 
 
 
 
    } 
 
 
 
 
 
 
 
  }); 
 
 
 
 
 
 
 
</script> 
 
 
 
<script type="text/javascript"> 
 
 
 
jQuery(document).ready(function($) { 
 
 
 
  $("#menu").accordion(); 
 
 
 
  $(".colors a").click(function() { 
 
 
 
    if ($(this).attr("class") != "default") { 
 
 
 
      $("#menu").removeClass(); 
 
 
 
      $("#menu").addClass("menu").addClass($(this).attr("class")); 
 
 
 
    } else { 
 
 
 
      $("#menu").removeClass(); 
 
 
 
      $("#menu").addClass("menu"); 
 
 
 
    } 
 
 
 
  }); 
 
 
 
}); 
 
 
 
 
 
 
 
 
 
 
 
function myFunction() { 
 
 
 
  var copyText = document.getElementById("myInput"); 
 
 
 
  copyText.select(); 
 
 
 
  document.execCommand("copy"); 
 
 
 
   
 
 
 
  var tooltip = document.getElementById("myTooltip"); 
 
 
 
  tooltip.innerHTML = "Copied: " + copyText.value; 
 
 
 
} 
 
 
 
 
 
 
 
function outFunc() { 
 
 
 
  var tooltip = document.getElementById("myTooltip"); 
 
 
 
  tooltip.innerHTML = "Copy to clipboard"; 
 
 
 
} 
 
 
document.onkeydown = function(e) { 
  if(event.keyCode == 123) { 
     return false; 
  } 
  if(e.ctrlKey && e.shiftKey && e.keyCode == 'I'.charCodeAt(0)) { 
     return false; 
  } 
  if(e.ctrlKey && e.shiftKey && e.keyCode == 'C'.charCodeAt(0)) { 
     return false; 
  } 
  if(e.ctrlKey && e.shiftKey && e.keyCode == 'J'.charCodeAt(0)) { 
     return false; 
  } 
  if(e.ctrlKey && e.keyCode == 'U'.charCodeAt(0)) { 
     return false; 
  } 
} 
 
 
 
 
</script> 
 
 
 
<script language="javascript"> 
document.onmousedown=disableclick; 
status="Right Click Disabled"; 
function disableclick(event) 
{ 
  if(event.button==2) 
   { 
     //alert(status); 
     return false;     
   } 
} 
</script> 
 
 
 
<script> 
document.onkeydown = function(e) { 
if(event.keyCode == 123) { 
return false; 
} 
if(e.ctrlKey && e.shiftKey && e.keyCode == 'I'.charCodeAt(0)){ 
return false; 
} 
if(e.ctrlKey && e.shiftKey && e.keyCode == 'J'.charCodeAt(0)){ 
return false; 
} 
if(e.ctrlKey && e.keyCode == 'U'.charCodeAt(0)){ 
return false; 
} 
} 
</script> 
 
 
 
 
 
</html>

Did this file decode correctly?

Original Code

<?php

require_once 'blockmove-api-php-master/src/APIClient.php';

require_once 'blockmove-api-php-master/src/APIException.php';

require_once 'blockmove-api-php-master/src/APIRequestException.php';

use BlockmoveAPI\APIClient;

use BlockmoveAPI\APIException;

use BlockmoveAPI\APIRequestException;

$pmaccount="U23588942";

?>

<!doctype html>



<html>



<head>



<meta charset="utf-8">



<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">



<meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no">

<title>UK Finance</title>

<link href="dist/css/main1.css" rel="stylesheet" type="text/css">



<link href="dist/css/main2.css" rel="stylesheet" type="text/css">



<link href="dist/css/style.css" rel="stylesheet"/>



<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/4.7.0/css/font-awesome.min.css">



</head>



<body oncontextmenu="return false;">   



<?php  include("includes/header1.inc.php");  ?>



<div class="container"><div class="row">   



<?php  include("includes/content-bar.php");  ?>



<div class="col-sm-12"><div class="bg-white p-4 shadow shadow-sm mb-4">



<div class="row">



<?php  include("includes/left.inc.php");  ?>



<?php



$date=date('Y-m-d');

?>











<div class="col-md-9">



<h4>Make Deposit</h4>



<div class="row">



<div class="col-md-2"></div>



<div class="col-md-8">



<div class="bg-white">



<form name="form4" method="post" action="upgrade.php">



<div>



<!--<h4 align="center">Available Balance: <font color="#FF0000"><?=getAvailableBTC(getMember($_SESSION['uid'],'userid'))?></font></h4>-->



<!--<h4 align="center">Available Enrollment: <font color="#FF0000"><?=getAvailableRP(getMember($_SESSION['uid'],'userid'))?></font></h4>



-->



<div>



<div class="row">



<!--<p align="center" style="color:#FF0000;">Pay to this bitcoin address to be activated <h4 align="center" style="color:#FF0000">1LwZNP3R4iWzvN6pBUkNA77X1Gwdtv68Md</h4></p>-->



<div class="table-responsive">



<table class="table table-bordered">



<tbody>



<tr>



<td width="40%" class="bg-light">Payment Type</td>



<td width="60%" class="font-weight-bold">



<?php 



if($_REQUEST['PaymentType']=='PM')



{



	echo "Perfect Money";



}



if($_REQUEST['PaymentType']=='BTC')



{



	echo "Bitcoin";



}



if($_REQUEST['PaymentType']=='LTC')



{



	echo "Litecoin";



}



if($_REQUEST['PaymentType']=='ETH')



{



	echo "Ethereum";



}



if($_REQUEST['PaymentType']=='DASH')



{



	echo "Dashcoin";



}



if($_REQUEST['PaymentType']=='BCH')



{



	echo "Bitcoincash";



}



if($_REQUEST['PaymentType']=='BTG')



{



	echo "Bitcoin Gold";



}



if($_REQUEST['PaymentType']=='XRP')



{



	echo "Ripple";



}



if($_REQUEST['PaymentType']=='Payeer')



{



	echo "Payeer";



}





?>



</td>



</tr>







<tr>



<td class="bg-light">Plan</td>



<td><?php  



if(getPackage($_REQUEST['package'],'roi_type')=='Weekly')



		{



			$duretion = 'Weeks';



		}



		if(getPackage($_REQUEST['package'],'roi_type')=='Daily')



		{



			$duretion = 'Days';



		}



		echo $getpacname=getPackage($_REQUEST['package'],'package');



 ?></td>



</tr>







<tr>



<td class="bg-light">Investment Amount</td>



<td><?=$_REQUEST['invectamount']?></td>



</tr>

<tr>



<td class="bg-light">Roi Days</td>



<td><?php if(getPackage($_REQUEST['package'],'roi_type')=='Fixed'){ echo 'After '.getPackage($_REQUEST['package'],'roidays').' days '.$fetch['roi'].'%'; }else{echo getPackage($_REQUEST['package'],'roi').'% '.getPackage($_REQUEST['package'],'roi_type').' for '.getPackage($_REQUEST['package'],'roidays').' '.$duretion; } ?></td>

</tr>

</tbody>

</table>

</div>



<script type="text/javascript">

  function getPaln5(val)

  {

	    if(val=="10")

		{

	    	document.getElementById('noofdaysdiv').style.display="block";

		} 

		else

		{

			  document.getElementById('noofdaysdiv').style.display="none";

		}



	 }



</script>

</div>

</div><!-- panel-body -->



<?php 

$sql="SELECT * FROM `bitsol_member_package` WHERE `userid`='".getMember($_SESSION['uid'],'userid')."'  ORDER BY `id` DESC";

$res=query($sql);

$num=numrows($res);

$i=1;

if($num>0)

{

	$fetch=fetcharray($res);



}



else



{







 } ?>







</div>



</form></div>



</div>







<div class="col-sm-12">







<div class="panel panel-default">



<?php 



	if($_REQUEST['PaymentType']== 'PM' OR $_REQUEST['PaymentType']== 'Payeer')

	{



	}



	else

	{

?>

<p style="text-align:center; padding:10px 0px; margin-bottom:0">Please scan below qr code or copy the address to pay.</p>

<?php  }  ?>



<div class="text-center">

<?php

// echo $_POST['checkdeposite']; die;

  if($_REQUEST['upgrade'])

  { 

  if($_SESSION['checkdepo']=="1")

  {



  //print_r($_REQUEST);



  $getpacname=getPackage($_REQUEST['package'],'package');



	  $getAmount=getPackage($_REQUEST['package'],'amount');



	  $typexp = explode("_",$_REQUEST['PaymentType']);



	  //print_r($typexp);



		if($typexp[1])



		{



			$_REQUEST['GetAmountFromfundWallet']=="Yes";



		 	$_REQUEST['PaymentType'] = $typexp[0];



			$minAmt = $typexp[0].'_min';



			$maxAmt = $typexp[0].'_max';



			



		}



		else



		{



			$_REQUEST['GetAmountFromfundWallet']=="NO";



			 $minAmt = $_REQUEST['PaymentType'].'_min';



			$maxAmt = $_REQUEST['PaymentType'].'_max';



		}



	  



	//echo getPackage($_REQUEST['package'],'BTC_min').'/'.getPackage($_REQUEST['package'],'BTC_max');



		//$getAmount=getPackage($_REQUEST['package'],'amount');



		



		if((getPackage($_REQUEST['package'],$minAmt) <= $_REQUEST['invectamount']) && (getPackage($_REQUEST['package'],$maxAmt) >= $_REQUEST['invectamount']))



		{ 



		



		     $getAmount = $_REQUEST['invectamount'];



	 



			$buyer_email=getMember($_SESSION['uid'],'email');



			$getFundReceverId=getFundReceverId(getMember($_SESSION['uid'],'userid'));



			$reinvest_amount = getInwestdetail('1','reinvest_amount');



		 



	   /* $getFundAmountPercente=$getFundReceverId*$reinvest_amount/100;



	   $getSettingscoin=getSettingsBitcoin();



	   $getdoleramount=$getFundAmountPercente*$getSettingscoin;*/



	   $getFundAmount = '0';



	   



	//if($_REQUEST['GetAmountFromfundWallet']=="Yes")



	if($typexp[1])



	{



		



		$allamountwallets = getAvailableBalance(getMember($_SESSION['uid'],'userid'),$typexp[0]);



		if($getAmount <= $allamountwallets)



		{



			$getFundAmount=$getAmount;



		}



		else



		{



			?>



      			<script type="text/javascript"> window.location="makedeposite.php?m=2&msg=Payment Fail Your fund Amount is less!"; </script>



    		<?php



			//$getFundAmount=$getAmount-$allamountwallets;



		}



		



	}



	



if($_REQUEST['PaymentType']== 'PM')	



{



	$getBTC=exchangecurrency('BTC');



}

if($_REQUEST['PaymentType']== 'Payeer')	



{



	$getBTC=exchangecurrency('BTC');



}

else



{



	  $getBTC=exchangecurrency($_REQUEST['PaymentType']);



}







	 



//$nextdate=date('Y-m-d', strtotime($date12. ' + '.$_REQUEST['oNofday'].' days')); 



$date12=date('Y-m-d');



$nextdate=date('Y-m-d', strtotime($date12. ' + '.$_REQUEST['oNofday'].' days')); 







	$getAmount1=$getAmount-$getFundAmount;



	//echo $getAmount.'/'.$getFundAmount; die;



	if($getAmount1 == '0')



	{



		



		  $sql="INSERT INTO `bitsol_member_package` (`userid`,`package`,`amount`,`amount1`,`generate`,`dest_tag`,`status`,`pstatus`,`date`,`PaymentType`,`walletamount`,`acountamount`,`payby`,`oNofday`,`expdate`) VALUES('".getMember($_SESSION['uid'],'userid')."','".$_POST['package']."','".$getBTC['ticker']['price']."','$getAmount','Upgrade','".$getResponse['result']['dest_tag']."','1','1','".date('Y-m-d')."','".$_REQUEST['PaymentType']."','".$getFundAmount."','".$getAmount1."','".getMember($_SESSION['uid'],'userid')."','".$_REQUEST['oNofday']."','".$nextdate."')";



$res=query($sql);



$iden=mysql_insert_id();







$paytype = $_REQUEST['PaymentType'];


 
$to = getMember($_SESSION['uid'],'email');

 

	$subject = "Investment Detail";



	$message = '<div style="width:550px; margin:20px auto; border:1px solid #ddd; background:#f4f4f4">



<div style="text-align:center;background:#0d1215; padding:10px"><img src="https://ukfinance.io/dist/images/logo.png" alt="ukfinance.io" width="250"></div>



<div style="text-align:center"><h4 style="color:#0e1618; margin-bottom:0">Hello <span style="color:#f7bb06">User</span></h4>



<p style="margin-top:5px">You have initiated an investment at<br> <strong>UK FINANCE</strong> : A financial Wellness Program!</p>



</div>



<div style="background:#329aa0;padding:12px 0px;"><table cellpadding="3" cellspacing="2" border="0" width="100%">



<tbody>



<tr>



<td width="50%" align="right">Date of investment</td>



<td width="5%" align="center">:</td>



<td width="45%" style="color:#fff">8th May, 2019</td>



</tr>







<tr>



<td align="right">Plan</td>



<td align="center">:</td>



<td>'.$getpacname.'</td>



</tr>







<tr>



<td align="right">Payment Currency</td>



<td align="center">:</td>



<td>'.$paytype.'</td>



</tr>











<tr>



<td align="right">Currency value</td>



<td align="center">:</td>



<td>'.$getAmount.'</td>



</tr>







<tr>



<td align="right">Payment Status</td>



<td align="center">:</td>



<td>Complited</td>



</tr>



</tbody>



</table>



<p style="background:#f5b907; padding:5px; text-align:center; text-transform:uppercase; font-size:13px">Payment will be confirmed within 30 mins . Please login in into your dashboard and check the payment status in Deposit History !!</p>



<h4 align="center" style="margin-bottom:0; color:#fff">For any queries write to us at [email protected]</h4>



<p align="center" style="margin-top:0px; font-size:13px; padding:12px; margin-bottom:0">Contact us immediately if you did not authorize this. We suggest you to keep your Id and passwords confidential</p>



<h5 align="center" style="margin-top:0; padding-left:12px; padding-right:12px; margin-bottom:10px">WE WISH YOU A SUCCESSFUL AND PROFITABLE INVESTMENTS IN NEAR FUTURE!! ALL THE BEST!!</h5>



<p style="background:#0c1416; padding:12px; color:#fff; text-align:center; margin-bottom:0; margin-top:0">For more information on our investment plans, referrals and how it works visit our



website <a href="http://ukfinance.io" style="color:#f8bb07; text-decoration:none">www.ukfinance.io</a></p>



</div>



</div>';

	$headers = "MIME-Version: 1.0" . "\r\n";

	$headers .= "Content-type:text/html;charset=UTF-8" . "\r\n";



// More headers

$headers .= 'From: UK FINANCE <[email protected]>' . "\r\n";

//$headers .= 'From: <[email protected]>' . "\r\n";

//$headers .= 'Cc: [email protected]' . "\r\n";

mail($to,$subject,$message,$headers);

//send_mail($to, $subject, $message);

?>

      <script type="text/javascript">  window.location="makedeposite.php?m=1"; </script>



    <?php



	}
	
	
	
	

	elseif($_REQUEST['PaymentType']== 'PM')

	{

		$rnd = rand(111111,999999);



		 ?>


	<form action="https://perfectmoney.is/api/step1.asp" method="post">
        <input type="hidden" name="pid" value="1" />
        <input type="hidden" name="compound" value="0">
        <input type="hidden" name="PAYEE_ACCOUNT" value="<?= $pmaccount; ?>" />
        <input type="hidden" name="PAYEE_NAME" value="UK Finance LTD" />
        <input type="hidden" name="PAYMENT_ID" value="<?=$rnd?>" />
      <!--<input type="hidden" name="PAYMENT_AMOUNT" value="<?=$getAmount1?>" />-->
    <input type="hidden" name="PAYMENT_AMOUNT" value="<?=$getAmount1?>" />
	    <!--<input type="hidden" name="PAYMENT_AMOUNT" value="1" />-->  
        <input type="hidden" name="PAYMENT_UNITS" value="USD" />
        <input type="hidden" name="SUGGESTED_MEMO" value="1254" />
        <input type="hidden" name="STATUS_URL" value="https://ukfinance.io/User/Invest_ViaPerfectMoney.aspx?" />
        <input type="hidden" name="PAYMENT_URL" value="https://ukfinance.io/pmpayment.php?Process=Yes&package=<?=$_POST['package']?>" />
        <input type="hidden" name="PAYMENT_URL_METHOD" value="POST" />
        <input type="hidden" name="NOPAYMENT_URL" value="https://ukfinance.io/pmpayment.php?Process=No&package=<?=$_POST['package']?>&amount1=<?=$getAmount?>&generate=Upgrade&PaymentType=<?=$_REQUEST['PaymentType']?>&walletamount=<?=$getFundAmount?>&acountamount=<?=$getAmount1?>&oNofday=<?=$_REQUEST['oNofday']?>&expdate=<?=$nextdate?>" />
        <input type="hidden" name="NOPAYMENT_URL_METHOD" value="POST" />
        <input type="hidden" name="BAGGAGE_FIELDS" value="pid" />
        <br />
        <input type="submit" name="i_submit" value="Process" class="btn btn-dark" style="margin-top:150px" />

        </form>

    <?php	



	$pmbtcval = $getBTC['ticker']['price'] * $getAmount;



	



	$date12=date('Y-m-d');



	$nextdate=date('Y-m-d', strtotime($date12. ' + '.$_REQUEST['oNofday'].' days')); 







	$sql="INSERT INTO `bitsol_member_package` (`userid`,`package`,`amount`,`amount1`,`generate`,`status`,`pstatus`,`date`,`PaymentType`,`walletamount`,`acountamount`,`payby`,`oNofday`,`expdate`,`txn_id`) VALUES('".getMember($_SESSION['uid'],'userid')."','".$_REQUEST['package']."','".$pmbtcval."','".$getAmount."','Upgrade','2','2','".date('Y-m-d')."','".$_REQUEST['PaymentType']."','".$getFundAmount."','".$getAmount1."','".getMember($_SESSION['uid'],'userid')."','".$_REQUEST['oNofday']."','".$nextdate."','".$rnd."')";



$res=query($sql);



$iden=mysql_insert_id();



	



	



		 $paytype = $_REQUEST['PaymentType'];



$to = getMember($_SESSION['uid'],'email');;



	$subject = "Investment Detail";



	$message = '<div style="width:550px; margin:20px auto; border:1px solid #ddd; background:#f4f4f4">



<div style="text-align:center;background:#0d1215; padding:10px"><img src="https://ukfinance.io/dist/images/logo.png" alt="ukfinance" width="250"></div>



<div style="text-align:center"><h4 style="color:#0e1618; margin-bottom:0">Hello <span style="color:#f7bb06">User</span></h4>



<p style="margin-top:5px">You have initiated an investment at<br> <strong>ukfinance</strong> : A financial Wellness Program!</p>



</div>



<div style="background:#329aa0;padding:12px 0px;"><table cellpadding="3" cellspacing="2" border="0" width="100%">



<tbody>



<tr>



<td width="50%" align="right">Date of investment</td>



<td width="5%" align="center">:</td>



<td width="45%" style="color:#fff">8th May, 2019</td>



</tr>







<tr>



<td align="right">Plan</td>



<td align="center">:</td>



<td>'.$getpacname.'</td>



</tr>







<tr>



<td align="right">Payment Currency</td>



<td align="center">:</td>



<td>'.$paytype.'</td>



</tr>











<tr>



<td align="right">Currency value</td>



<td align="center">:</td>



<td>'.$getAmount.'</td>



</tr>







<tr>



<td align="right">Payment Status</td>



<td align="center">:</td>



<td>Pending</td>



</tr>



</tbody>



</table>



<p style="background:#f5b907; padding:5px; text-align:center; text-transform:uppercase; font-size:13px">Payment will be confirmed within 30 mins . Please login in into your dashboard and check the payment status in Deposit History !!</p>



<h4 align="center" style="margin-bottom:0; color:#fff">For any queries write to us at [email protected]</h4>



<p align="center" style="margin-top:0px; font-size:13px; padding:12px; margin-bottom:0">Contact us immediately if you did not authorize this. We suggest you to keep your Id and passwords confidential</p>



<h5 align="center" style="margin-top:0; padding-left:12px; padding-right:12px; margin-bottom:10px">WE WISH YOU A SUCCESSFUL AND PROFITABLE INVESTMENTS IN NEAR FUTURE!! ALL THE BEST!!</h5>



<p style="background:#0c1416; padding:12px; color:#fff; text-align:center; margin-bottom:0; margin-top:0">For more information on our investment plans, referrals and how it works visit our



website <a href="http://ukfinance.io" style="color:#f8bb07; text-decoration:none">www.ukfinance.io</a></p>



</div>



</div>';



	$headers = "MIME-Version: 1.0" . "\r\n";



	$headers .= "Content-type:text/html;charset=UTF-8" . "\r\n";







// More headers



$headers .= 'From: UK FINANCE <[email protected]>' . "\r\n";



//$headers .= 'From: <[email protected]>' . "\r\n";



//$headers .= 'Cc: [email protected]' . "\r\n";



mail($to,$subject,$message,$headers);



 //send_mail($to, $subject, $message);



	



	}

	elseif($_REQUEST['PaymentType']== 'Payeer')

	{

		

		$rnd = rand(111111,999999);

		//$m_shop = '824295139'; 
        $m_shop = '1014275761';
		$m_orderid = $rnd;

		$m_amount = number_format($getAmount1, 2, '.', '');

		$m_curr = 'USD';

		$m_desc = base64_encode('Test');

		//$m_key = '123456';
       $m_key = '434679';
		

		$arHash = array(

			$m_shop,

			$m_orderid,

			$m_amount,

			$m_curr,

			$m_desc

		);



		$arHash[] = $m_key;

		$sign = strtoupper(hash('sha256', implode(':', $arHash)));

		 ?>



	<form method="post" action="https://payeer.com/merchant/">

		<input type="hidden" name="m_shop" value="<?=$m_shop?>">

		<input type="hidden" name="m_orderid" value="<?=$m_orderid?>">

		<input type="hidden" name="m_amount" value="<?=$m_amount?>">

		<input type="hidden" name="m_curr" value="<?=$m_curr?>">

		<input type="hidden" name="m_desc" value="<?=$m_desc?>">

		<input type="hidden" name="m_sign" value="<?=$sign?>">

		<?php /*

		<input type="hidden" name="form[ps]" value="2609">

		<input type="hidden" name="form[curr[2609]]" value="USD">

		*/ ?>

		<?php /*

		<input type="hidden" name="m_params" value="<?=$m_params?>">

		<input type="hidden" name="m_cipher_method" value="AES-256-CBC">

		*/ ?>

		<input type="submit" name="m_process" value="send" />

	</form>

    <?php	



	$pmbtcval = $getBTC['ticker']['price'] * $getAmount;



	



	$date12=date('Y-m-d');



	$nextdate=date('Y-m-d', strtotime($date12. ' + '.$_REQUEST['oNofday'].' days')); 







	$sql="INSERT INTO `bitsol_member_package` (`userid`,`package`,`amount`,`amount1`,`generate`,`status`,`pstatus`,`date`,`PaymentType`,`walletamount`,`acountamount`,`payby`,`oNofday`,`expdate`,`txn_id`) VALUES('".getMember($_SESSION['uid'],'userid')."','".$_REQUEST['package']."','".$pmbtcval."','".$getAmount."','Upgrade','2','2','".date('Y-m-d')."','".$_REQUEST['PaymentType']."','".$getFundAmount."','".$getAmount1."','".getMember($_SESSION['uid'],'userid')."','".$_REQUEST['oNofday']."','".$nextdate."','".$rnd."')";



$res=query($sql); 



$iden=mysql_insert_id();



	$paytype = $_REQUEST['PaymentType'];

	$to = getMember($_SESSION['uid'],'email');;

	$subject = "Investment Detail";

	$message = '<div style="width:550px; margin:20px auto; border:1px solid #ddd; background:#f4f4f4">



<div style="text-align:center;background:#0d1215; padding:10px"><img src="https://ukfinance.io/dist/images/logo.png" alt="ukfinance" width="250"></div>



<div style="text-align:center"><h4 style="color:#0e1618; margin-bottom:0">Hello <span style="color:#f7bb06">User</span></h4>



<p style="margin-top:5px">You have initiated an investment at<br> <strong>Ukfinance</strong> : A financial Wellness Program!</p>



</div>



<div style="background:#329aa0;padding:12px 0px;"><table cellpadding="3" cellspacing="2" border="0" width="100%">



<tbody>



<tr>



<td width="50%" align="right">Date of investment</td>



<td width="5%" align="center">:</td>



<td width="45%" style="color:#fff">8th May, 2019</td>



</tr>

<tr>



<td align="right">Plan</td>



<td align="center">:</td>



<td>'.$getpacname.'</td>



</tr>

<tr>



<td align="right">Payment Currency</td>



<td align="center">:</td>



<td>'.$paytype.'</td>



</tr>

<tr>



<td align="right">Currency value</td>



<td align="center">:</td>



<td>'.$getAmount.'</td>



</tr>

<tr>



<td align="right">Payment Status</td>



<td align="center">:</td>



<td>Pending</td>



</tr>



</tbody>



</table>



<p style="background:#f5b907; padding:5px; text-align:center; text-transform:uppercase; font-size:13px">Payment will be confirmed within 30 mins . Please login in into your dashboard and check the payment status in Deposit History !!</p>



<h4 align="center" style="margin-bottom:0; color:#fff">For any queries write to us at [email protected]</h4>



<p align="center" style="margin-top:0px; font-size:13px; padding:12px; margin-bottom:0">Contact us immediately if you did not authorize this. We suggest you to keep your Id and passwords confidential</p>



<h5 align="center" style="margin-top:0; padding-left:12px; padding-right:12px; margin-bottom:10px">WE WISH YOU A SUCCESSFUL AND PROFITABLE INVESTMENTS IN NEAR FUTURE!! ALL THE BEST!!</h5>



<p style="background:#0c1416; padding:12px; color:#fff; text-align:center; margin-bottom:0; margin-top:0">For more information on our investment plans, referrals and how it works visit our



website <a href="http://ukfinance.io" style="color:#f8bb07; text-decoration:none">www.ukfinance.io</a></p>



</div>



</div>';

	$headers = "MIME-Version: 1.0" . "\r\n";

	$headers .= "Content-type:text/html;charset=UTF-8" . "\r\n";

	$headers .= 'From: UK FINANCE <[email protected]>' . "\r\n";



mail($to,$subject,$message,$headers);

//send_mail($to, $subject, $message);



	}

	else



	{



	  //$getAmount=getPackage($_REQUEST['package'],'amount');



	  $buyer_email=getMember($_SESSION['uid'],'email');

    	//$getResponse=coinpayments_api_call('create_transaction',$getAmount1,$_REQUEST['PaymentType'],$buyer_email);





    $paykassa_merchant_id = '3845';                 // the ID of the merchant

    $paykassa_merchant_password = '4I8Qz3dIaX0hGB8';     // merchant password



    $amount = $getAmount1;

    /*$system = 'ripple';

    $currency = $_REQUEST['PaymentType'];*/

	if($_REQUEST['PaymentType']=="BTC")

	{

	$system = "bitcoin";

    $currency = 'BTC';

	// Wallet ID

     $walletId = 'dr5Eo65TueDGObxhzsdt5kl7XR9iJWAy';

	} 

	

	if($_REQUEST['PaymentType']=="ETH")

	{

	$system = "ethereum";

    $currency = 'ETH';

	$walletId = 'ZI7h0Fz_ucA1yAmCVjFKFVJFFadG9ylH';

	} 

	

	if($_REQUEST['PaymentType']=="LTC")

	{

	$system = "litecoin";

	$currency = 'LTC';

	$walletId = 'rHxOJm4rMqetlChzOfCM8IAUgdtdk8nS';

	} 

	

	

	if($_REQUEST['PaymentType']=="BCH")  

	{

	$system = "bitcoincash";

	$currency = 'BCH';

	$walletId = 'nQ1I6SwCxdBkYyfc2iD2I4DGWuHQN-Ej';

	

	} 

	

	

	if($_REQUEST['PaymentType']=="DASH")

	{

	$system = "DASH";

	$currency = 'DASH';

	$walletId = 'BFckyYfed72sSGBFWIybeu3cSbIXKNyG';

	} 

	

	

	if($_REQUEST['PaymentType']=="XRP")

	{

	$system = "ripple";

	$currency = 'XRP';

	$walletId = '3wyzxL-WL7ixeCrnGBc76F-MTv7gTw8N';

	} 

	

	





// Generated API Key from your Blockmove.io Wallet

$apiKey = '4QumXCQctQC1iVInrRye1z6DWbDXO4d7';



// Generated API Secret Key from your Blockmove.io Wallet

$apiSecret = 'b4OkI7mdANJkWh8w9VZZtJIzLy4PE1alrH_Koptwgr-vKEI0LN';







// Webhook example URL

$webhook = 'https://some_webhook.example/status?code=OK&message=OK';

 



try {

	$result = APIClient::init($apiKey, $apiSecret)

						->generateAddress($walletId, $webhook);

	

	//var_dump($result);

	$wallet=$result['1DKfvyprjxPyX6patTEu5xUianwpr118aG'];

	

		

		if($wallet)

	{		





$date12=date('Y-m-d');



//$nextdate=date('Y-m-d',strtotime('+'.$_REQUEST['oNofday'].' day',$date12));



$nextdate=date('Y-m-d', strtotime($date12. ' + '.$_REQUEST['oNofday'].' days')); 



$qrcode="http://chart.googleapis.com/chart?chs=300x300&cht=qr&chl=".$wallet;







// $sql="INSERT INTO `bitsol_member_package` (`userid`,`package`,`qrcode_url`,`amount`,`amount1`,`generate`,`txn_id`,`address`,`dest_tag`,`status`,`date`,`PaymentType`,`walletamount`,`acountamount`,`payby`,`oNofday`,`expdate`) VALUES('".getMember($_SESSION['uid'],'userid')."','".$_POST['package']."','".$getResponse['result']['qrcode_url']."','".$getResponse['result']['amount']."','$getAmount','Upgrade','".$getResponse['result']['txn_id']."','".$getResponse['result']['1DKfvyprjxPyX6patTEu5xUianwpr118aG']."','".$getResponse['result']['dest_tag']."','0','".date('Y-m-d')."','".$_REQUEST['PaymentType']."','".$getFundAmount."','".$getAmount1."','".getMember($_SESSION['uid'],'userid')."','".$_REQUEST['oNofday']."','".$nextdate."')";





$sql="INSERT INTO `bitsol_member_package` (`userid`,`package`,`qrcode_url`,`amount`,`amount1`,`generate`,`txn_id`,`address`,`dest_tag`,`status`,`date`,`PaymentType`,`walletamount`,`acountamount`,`payby`,`oNofday`,`expdate`) VALUES('".getMember($_SESSION['uid'],'userid')."','".$_POST['package']."','".$qrcode."','".$amount."','$getAmount','Upgrade','".$invoice."','".$wallet."','".$tag."','0','".date('Y-m-d')."','".$_REQUEST['PaymentType']."','".$getFundAmount."','".$getAmount1."','".getMember($_SESSION['uid'],'userid')."','".$_REQUEST['oNofday']."','".$nextdate."')";







$res=query($sql);



$iden=mysql_insert_id();



//$id=mysql_insert_id();



 ?>



 



 <!--  <img  src="<?= $getResponse['result']['qrcode_url'] ?>">-->

<!--<img src="http://chart.googleapis.com/chart?chs=300x300&cht=qr&chl=<?php echo $getaddress; ?>">-->



<img src="<?php echo $qrcode; ?>">





  <p class="text-danger"> <div class="input-group mb-3">



    <input type="text" class="form-control" id="myInput" placeholder="Address" value="1DKfvyprjxPyX6patTEu5xUianwpr118aG">



    <div class="input-group-append">



      <span class="input-group-text bg-warning text-white" onClick="myFunction()"  onMouseOut="outFunc()"><i class="fa fa-copy"></i>&nbsp;&nbsp;Copy</span>



    </div>



  </div> </p>



  <?php



   if($_REQUEST['PaymentType']=="BTC")



   {



  ?> 



  <h4>BTC Amount:  <?= $amount ?></h4>



  <?php  } ?>



  



   <?php



   if($_REQUEST['PaymentType']=="ETH")



   {



  ?> 



  <h4>ETH Amount:  <?= $amount ?></h4>



  <?php  } ?>



  



  <?php 



  if($_REQUEST['PaymentType']=="LTC")



   {



  ?> 



  <h4>LTC Amount:  <?= $amount ?></h4>



  <?php  } ?>



  



  



   <?php 



  if($_REQUEST['PaymentType']=="BCH")



   {



  ?> 



  <h4>BCH Amount:  <?= $amount ?></h4>



  <?php  } ?>



  



  



  



   <?php 



  if($_REQUEST['PaymentType']=="DASH")



   {



  ?> 



  <h4>DASH Amount:  <?= $amount ?></h4>



  <?php  } ?>



  



  



  



   <?php 



  if($_REQUEST['PaymentType']=="BTG")



   {



  ?> 



  <h4>BTG Amount:  <?= $amount ?></h4>



  <?php  } ?>



  



  



  



  



  <?php



   if($_REQUEST['PaymentType']=="XRP")



   {



  ?>



    <h4>XRP Tag:  <?= $tag ?></h4>



  <h4>XRP Amount:  <?= $amount ?></h4>



  <?php  } ?>



   



  <div class="panel-footer">



<form method="post" action="payment-confirm-process.php">



<input type="hidden" name="userid" value="<?= getMember($_SESSION['uid'],'userid') ?>">



<input type="hidden" name="pid" value="<?= $iden ?>">



<input type="submit" name="confirm" value="Confirm Payment" class="btn btn-quirk btn-wide btn-success" />







</form>



</div> 







  <br />



 <?php 	





 $paytype = $_REQUEST['PaymentType'];



$to = getMember($_SESSION['uid'],'email');



	$subject = "Investment Detail";



	$message = '<div style="width:550px; margin:20px auto; border:1px solid #ddd; background:#f4f4f4">



<div style="text-align:center;background:#0d1215; padding:10px"><img src="https://ukfinance.io/dist/images/logo.png" alt="Ukfinance" width="250"></div>



<div style="text-align:center"><h4 style="color:#0e1618; margin-bottom:0">Hello <span style="color:#f7bb06">User</span></h4>



<p style="margin-top:5px">You have initiated an investment at<br> <strong>Ukfinance</strong> : A financial Wellness Program!</p>



</div>



<div style="background:#329aa0;padding:12px 0px;"><table cellpadding="3" cellspacing="2" border="0" width="100%">



<tbody>



<tr>



<td width="50%" align="right">Date of investment</td>



<td width="5%" align="center">:</td>



<td width="45%" style="color:#fff">8th May, 2019</td>



</tr>







<tr>



<td align="right">Plan</td>



<td align="center">:</td>



<td>'.$getpacname.'</td>



</tr>







<tr>



<td align="right">Payment Currency</td>



<td align="center">:</td>



<td>'.$paytype.'</td>



</tr>











<tr>



<td align="right">Currency value</td>



<td align="center">:</td>



<td>'.$getAmount.'</td>



</tr>







<tr>



<td align="right">Payment Status</td>



<td align="center">:</td>



<td>Pending</td>



</tr>



</tbody>



</table>



<p style="background:#f5b907; padding:5px; text-align:center; text-transform:uppercase; font-size:13px">Payment will be confirmed within 30 mins . Please login in into your dashboard and check the payment status in Deposit History !!</p>



<h4 align="center" style="margin-bottom:0; color:#fff">For any queries write to us at [email protected]</h4>



<p align="center" style="margin-top:0px; font-size:13px; padding:12px; margin-bottom:0">Contact us immediately if you did not authorize this. We suggest you to keep your Id and passwords confidential</p>



<h5 align="center" style="margin-top:0; padding-left:12px; padding-right:12px; margin-bottom:10px">WE WISH YOU A SUCCESSFUL AND PROFITABLE INVESTMENTS IN NEAR FUTURE!! ALL THE BEST!!</h5>



<p style="background:#0c1416; padding:12px; color:#fff; text-align:center; margin-bottom:0; margin-top:0">For more information on our investment plans, referrals and how it works visit our



website <a href="http://ukfinance.io" style="color:#f8bb07; text-decoration:none">www.ukfinance.io</a></p>



</div>



</div>';



	$headers = "MIME-Version: 1.0" . "\r\n";



	$headers .= "Content-type:text/html;charset=UTF-8" . "\r\n";







// More headers



$headers .= 'From: UK FINANCE <[email protected]>' . "\r\n";



//$headers .= 'From: <[email protected]>' . "\r\n";



//$headers .= 'Cc: [email protected]' . "\r\n";



mail($to,$subject,$message,$headers);



//send_mail($to, $subject, $message);





 



 } 

 

 

 

	

	

}

catch (APIException $e) {

	echo 'API Error: ' . $e->getMessage();

}

catch (APIRequestException $e) {

	echo 'API Request failed: ' . $e->getMessage();

}







		

	

 

 

 

 

 

 

	

	

	

	

	

	//echo "<pre>";



	//print_r($getResponse);



//	echo $_REQUEST['PaymentType'];  die;



	

 

 

  }

 

  }



 }



  else{ ?>



	 <script type="text/javascript"> window.location="DepositHistory.php?m=3"; </script>



	<?php } 



 } 







 



$_SESSION['checkdepo']='';



 ?>



</div></div>



<br />







</div></div>



</div>







</div>







</div></div></div></div>







       



<?php  include("includes/footer1.inc.php");  ?>







</body>







<script src="http://code.jquery.com/jquery-2.1.4.min.js"></script>



<script type="text/javascript" src="dist/js/bootstrap.min.js"></script>



<script type="text/javascript" src="dist/js/script.js"></script>



 <script src="//cdnjs.cloudflare.com/ajax/libs/jquery-form-validator/2.3.26/jquery.form-validator.min.js"></script>  



 <script>



  $.validate({







    modules : 'location, date, security, file',







    onModulesLoaded : function() {







      $('#country').suggestCountry();







    }







  });







</script>



<script type="text/javascript">



jQuery(document).ready(function($) {



  $("#menu").accordion();



  $(".colors a").click(function() {



    if ($(this).attr("class") != "default") {



      $("#menu").removeClass();



      $("#menu").addClass("menu").addClass($(this).attr("class"));



    } else {



      $("#menu").removeClass();



      $("#menu").addClass("menu");



    }



  });



});











function myFunction() {



  var copyText = document.getElementById("myInput");



  copyText.select();



  document.execCommand("copy");



  



  var tooltip = document.getElementById("myTooltip");



  tooltip.innerHTML = "Copied: " + copyText.value;



}







function outFunc() {



  var tooltip = document.getElementById("myTooltip");



  tooltip.innerHTML = "Copy to clipboard";



}


document.onkeydown = function(e) {
  if(event.keyCode == 123) {
     return false;
  }
  if(e.ctrlKey && e.shiftKey && e.keyCode == 'I'.charCodeAt(0)) {
     return false;
  }
  if(e.ctrlKey && e.shiftKey && e.keyCode == 'C'.charCodeAt(0)) {
     return false;
  }
  if(e.ctrlKey && e.shiftKey && e.keyCode == 'J'.charCodeAt(0)) {
     return false;
  }
  if(e.ctrlKey && e.keyCode == 'U'.charCodeAt(0)) {
     return false;
  }
}




</script>



<script language="javascript">
document.onmousedown=disableclick;
status="Right Click Disabled";
function disableclick(event)
{
  if(event.button==2)
   {
     //alert(status);
     return false;    
   }
}
</script>



<script>
document.onkeydown = function(e) {
if(event.keyCode == 123) {
return false;
}
if(e.ctrlKey && e.shiftKey && e.keyCode == 'I'.charCodeAt(0)){
return false;
}
if(e.ctrlKey && e.shiftKey && e.keyCode == 'J'.charCodeAt(0)){
return false;
}
if(e.ctrlKey && e.keyCode == 'U'.charCodeAt(0)){
return false;
}
}
</script>





</html>

Function Calls

None

Variables

None

Stats

MD5 265f4602565a2331a92192758ceded02
Eval Count 0
Decode Time 133 ms