Your IP : 3.138.34.93


Current Path : /home/lentoinv/finationglobal.com/account/
Upload File :
Current File : //home/lentoinv/finationglobal.com/account/control.php

<?php
session_start(); ob_start();  
include('lib/connection.php');
//if(!isset($_SESSION['user_id'])){header('location: login.php');}
extract($_GET);

if(isset($_GET['confirm'])){
	$user = $_GET['confirm'];
if(sqL1('user','user',$user)==1){ 
if(sqLx('user','user',$user,'stage')>0){
echo 'Verified ID: '.userName2($user);
} else{echo 'Invalid ID';}
}else{
	echo 'Invalid ID';
}

}


if(isset($_GET['plan'])){
	    $map = ['a'=>1,'b'=>3,'c'=>6,'d'=>12,'e'=>18,'f'=>24,'fl'=>1];
$cur = sqLx('ginvest','ref',$ref,'type')==5 ? '<strike>N</strike>' : '$';
if($stage==0){
// 	$a = sqLx('ginvest','ref',$ref,$plan.'1')*1.1;
// 	$b = sqLx('ginvest','ref',$ref,$plan.'2')*1.1;
// 	$m = sqLx('ginvest','ref',$ref,$plan.'3')*1.1;
// 	$c = $a+$b*$map[$plan];
// echo '<big><table class="table-bordered table">
// <tr><td>Initial Deposit </td><td>'.$cur.number_format($a,2).'</td></tr><tr><td>Monthly Payment</td><td>'.$cur.number_format($b,2).'</td></tr><tr><td>Total Payment</td><td>'.$cur.number_format($c,2).'</td></tr></table></big>';
	$a = sqLx('ginvest','ref',$ref,$plan.'1');
	$b = sqLx('ginvest','ref',$ref,$plan.'2');
	$m = $plan=='fl' ? sqLx('ginvest','ref',$ref,$plan.'3') : '';
	$c = $a+$b*$map[$plan];
echo $plan=='fl' ? '<big><table class="table-bordered table">
<tr><td>Initial Deposit </td><td>'.$cur.number_format($a,2).'</td></tr><tr><td>Max Tenure (Month)</td><td>'.$m.'</td></tr><tr><td>Total Payment</td><td>'.$cur.number_format($c,2).'</td></tr></table></big>' : '<big><table class="table-bordered table">
<tr><td>Initial Deposit </td><td>'.$cur.number_format($a,2).'</td></tr><tr><td>Monthly Payment</td><td>'.$cur.number_format($b,2).'</td></tr><tr><td>Total Payment</td><td>'.$cur.number_format($c,2).'</td></tr></table></big>' ;
}else{
	$a = sqLx('ginvest','ref',$ref,$plan.'1');
	$b = sqLx('ginvest','ref',$ref,$plan.'2');
	$m = $plan=='fl' ? sqLx('ginvest','ref',$ref,$plan.'3') : '';
	$c = $a+$b*$map[$plan];
echo $plan=='fl' ? '<big><table class="table-bordered table">
<tr><td>Initial Deposit </td><td>'.$cur.number_format($a,2).'</td></tr><tr><td>Max Tenure (Month)</td><td>'.$m.'</td></tr><tr><td>Total Payment</td><td>'.$cur.number_format($c,2).'</td></tr></table></big>' : '<big><table class="table-bordered table">
<tr><td>Initial Deposit </td><td>'.$cur.number_format($a,2).'</td></tr><tr><td>Monthly Payment</td><td>'.$cur.number_format($b,2).'</td></tr><tr><td>Total Payment</td><td>'.$cur.number_format($c,2).'</td></tr></table></big>' ;	
}
}



if(isset($_GET['verify'])){
	$user = $_GET['verify'];
if(sqL1('user','user',$user)==1){  
echo '<label>Verified Recipent</label>
<input type="text" class="form-control" value="'.userName2($user).' ['.userName2($user,'user').']" disabled>
<br>
<label>Amount (USD)</label>
<input type="hidden" name="user" id="vuser" value="'.$user.'">
<input type="number" id="amt" class="form-control" name="amount" min="1" max="500" required >';

}else{
	echo 0;
}

}

if(isset($_GET['verifyx'])){
	$user = $_GET['verifyx'];
if(sqL1('user','user',$user)==1){  
	$_SESSION['verify_user'] = sqLx('user','user',$user,'id');
echo '<label>Verified Recipent</label>
<input type="text" class="form-control" value="'.userName2($user).' ['.userName2($user,'user').']" disabled >';
}else{
	echo 0;
}

}


if(isset($_GET['verify2'])){
	$user = $_GET['verify2'];
if(sqL1('user','user',$user)==1){  
	$id = userName2($user,'id');
echo '<label>Verified Recipent</label>
<input type="text" class="form-control" value="'.userName2($user).' ['.userName2($user,'user').']" disabled >
<br>
<h4>Account Balance: $'.number_format($pro->wallet($id),2).'</h4><hr>
<label>Amount (USD)</label>
<input type="hidden" name="user" id="vuser" value="'.$user.'">
<input type="number" id="amt" class="form-control" name="amount" min="1" max="5000" required >';

}else{
	echo 0;
}

}


if(isset($_GET['verify3'])){
	$user = $_GET['verify3'];
if(sqL1('user','user',$user)==1){  
	$id = userName2($user,'id');
echo '<label>Verified Recipent</label>
<input type="text" class="form-control" value="'.userName2($user).' ['.userName2($user,'user').']" disabled >
<br>
<h4>Account Balance: <strike>N</strike>'.number_format($pro->walletnaira($id),2).'</h4><hr>
<label>Amount (NGN)</label>
<input type="hidden" name="user" id="vuser" value="'.$user.'">

<input type="number" id="amt" class="form-control" name="amount" min="1" max="100000" required >
<br>
<label>Payment Description</label>
<input type="text" id="des" class="form-control" name="des" required >';

}else{
	echo 0;
}

}


if(isset($_GET['sendcode'])){
	$user = $_GET['sendcode'];	$amt = $_GET['amt'];
	$_SESSION['t_user']=$user;
	$_SESSION['t_amt']=$amt;
	$t_code=$_SESSION['t_code']=$pro->win_hash(6);

//	echo $_SESSION['t_code'];

$pro->sendAuthCode($_SESSION['t_code']);

echo '<label>RECIPIENT: </label> '.userName2($user).'<hr>
<label>AMOUNT: </label> $'.number_format($amt,2).'<hr>

<input type="hidden" name="user" value="'.$user.'">
<input type="hidden" name="amt" value="'.$amt.'">
<em>Enter the OTP sent to your E-mail</em>
<input type="text" id="code" name="code" class="form-control" placeholder="Authorization Code" required>';

}



?>

?>