File size: 1.99Kb
<html>
<title>Request Payout</title>
<?php include "inc/def.php"; ?>
<?php include "inc/usrchk.php";
if($guest==1) {
header("location:index.php");
} ?>
<?php include "inc/header.php";
PRINT "<div class='line'>Payout Request</div>";
$getu = mysql_query("SELECT * FROM users WHERE user='$user'");
$getu1 = mysql_fetch_array($getu);
$id = $getu1['id'];
$bal = $getu1['bal'];
$pay=$getu1['pay'];
if($pay>0)
{
print "<center><div class='prob'>Already Your Payment is Under Process.Set Your Mobile Number In Edit Account Option.<br><br>It May Take 5 Days.Contact AdHubz Team.</div></center>";
include "inc/footer.php";
die();
}
if($bal<0.2) {
print "<center><div class='prob'>You shoud have atleast 0.2$ to get payout.<br><br>You do not have enought balance.Contact AdHubz Team.</div></center>";
}
if((isset($_POST['mail']))&&(isset($_POST['pp']))&&(isset($_POST['laston'])) && $bal>0.2)
{
$mail = secure('mail');
$pp = secure('pp');
$laston= secure('laston');
$do=mysql_query("UPDATE users SET mail='$mail',paypal='$pp',laston='$laston' WHERE id='$id'");
$doit = mysql_query("UPDATE users SET pay=1 WHERE id='$id'");
if($doit)
{
print "<div class='done'> Thank You For The Payout Request !We Will Mail You Soon. You Will Get Payment Within 5Days.</div>";
}
}
if((!isset($_POST['mail']))&&(!isset($_POST['pp']))&&(!isset($_POST['laston'])) && $bal>0.2 && $pay==0)
{
?>
<form action="po.php" method="post">
<div class="lwt">
<div class="lwt">
<label for="user">Email Address :<br/>(Enter A Valid Email To Contact You)</label><br />
<input size="30" maxlength="40" type="text" name="mail" value=" " />
</div>
<div class="lwt">
<label for="user">Mobile Number :</label><br />
<input size="30" maxlength="40" type="text" name="laston" value=" " />
</div>
<div class="lgn">
<label for="user"> Network Name:</label><br />
<input size="30" maxlength="80" type="text" name="pp" value=" " /><br/>
</div>
<div class="lwt">
<input type="submit" value="Ask Payment" />
</div>
</form>
<?php
}
?>
<?php include "inc/footer.php"; ?>
</html>