|
Server IP : 2a02:4780:11:1359:0:1d43:a566:2 / Your IP : 216.73.216.60 Web Server : LiteSpeed System : Linux in-mum-web1259.main-hosting.eu 4.18.0-553.37.1.lve.el8.x86_64 #1 SMP Mon Feb 10 22:45:17 UTC 2025 x86_64 User : u490972518 ( 490972518) PHP Version : 5.6.40 Disable Function : system, exec, shell_exec, passthru, mysql_list_dbs, ini_alter, dl, symlink, link, chgrp, leak, popen, apache_child_terminate, virtual, mb_send_mail MySQL : ON | cURL : ON | WGET : ON | Perl : OFF | Python : OFF Directory (0755) : /home/u490972518/domains/ppschool.org.in/public_html/css/../sale_new/ |
| [ Home ] | [ C0mmand ] | [ Upload File ] |
|---|
<?PHP
include("php-includes/connect.php");
$userid=$_POST['userid'];
$remain=$_POST['remain'];
$receive=$_POST['paid'];
$plan=$_POST['plan'];
$date=date('Y-m-d');
//$edate=date("d-m-Y",strtotime($date1));
//echo $edate;
$sels="select * from user where email='$userid' order by id desc ";
$ress=mysqli_query($con,$sels);
$rows=mysqli_fetch_array($ress,MYSQLI_BOTH);
$amounts=$rows['amount'];
date_default_timezone_set("asia/kolkata");
$sel="select * from recieve where dis='$userid' order by id desc ";
$res=mysqli_query($con,$sel);
$row=mysqli_fetch_array($res,MYSQLI_BOTH);
$status=$row['status'];
if($remain<$receive)
{
// echo "Your Receive Amount Greater Than Of Available Amount , ";
echo"<script>alert('Your Receive Amount Greater Than Of Available Amount');window.location.href='withdraw_pair.php';</script> ";
}
if($amounts=='0')
{
// echo "Your Receive Amount Greater Than Of Available Amount , ";
echo"<script>alert('Your ID is not Green Please Approved Id With Admin');window.location.href='withdraw_pair.php';</script> ";
}
else
{
if($status!='NO' or $status=='')
{
$ins1="insert into recieve(dis,amount,plan,date,status) values('$userid','$receive','$plan','$date','NO')";
if(mysqli_query($con,$ins1))
{
echo"<script>alert('Request Send');window.location.href='withdraw_pair.php';</script> ";
}
else
{
echo"not ok";
}
}
else
{
// echo'Your Reuest Already Send Please Wait For Success ';
echo"<script>alert('Your Reuest Already Send Please Wait For Success');window.location.href='withdraw_pair.php';</script> ";
}
}
?>