PNG IHDR x sBIT|d pHYs + tEXtSoftware www.inkscape.org< ,tEXtComment
<?php
require_once('includes/connect.php');
require_once('includes/functions.php');
session_start();
use PHPMailer\PHPMailer\PHPMailer;
use PHPMailer\PHPMailer\Exception;
require 'vendor/autoload.php';
// Logout handler
if (isset($_GET['l'])) {
logout();
header("Location: https://localhost");
exit();
}
// Check login
if (!isset($_SESSION['Email'])) {
header("Location: ../../../index.php");
exit();
}
$email = $_SESSION['Email'];
$user = GetMember1($email);
$not_info = Getnotificationstatus($email);
$not_info = Getnotification($email);
$history = New_history($email);
// Handle deposit redirect
if (isset($_POST["dep"])) {
header("Location: index.php?dep=dep");
exit();
}
// Handle withdrawal request
if (isset($_POST['withdraw'])) {
$vcode = rand(111111, 999999);
$un = $user['full_name'];
$email = $user['Email'];
$type = 'dr';
$amt = $_POST['amt'];
$am = (float) $_POST['amt'];
$p = (float) $user['Profit'];
$c = (float) $user['Capital'];
$method = $_POST["m"];
$from = $_POST["from"];
$dat = date("Y-m-d H:i:s");
// Validate method
if ($method === "bank") {
$m = "Bank Account";
$vv = $_POST["anumb"];
$mv = "Bank Account";
} elseif ($method === "bitcoin") {
$m = "Bitcoin Wallet";
$vv = $_POST["ba"] . "***";
$mv = "E-currency wallet";
} elseif ($method === "paypal") {
$m = "Paypal Wallet";
$vv = $_POST["pe"];
$mv = "Paypal Account";
} else {
exit("<script>alert('No method selected.');</script>");
}
// Validate source
if ($from === "capital") {
$balance = $c;
} elseif ($from === "profit") {
$balance = $p;
} else {
exit("<script>alert('Invalid fund source.');</script>");
}
// Check funds
if ($am > $balance) {
exit("<script>alert('Insufficient Fund');</script>");
}
$fromm = ($from === "capital") ? "Capital" : "Profit";
$new_balance = $balance - $am;
// Update balance
$sql = sprintf('UPDATE members SET %s = %f WHERE Email = "%s"', $fromm, $new_balance, $email);
if (!mysqli_query($conn, $sql)) {
exit("<script>alert('Balance update failed: " . mysqli_error($conn) . "');</script>");
}
// Insert withdrawal record
$sqlr = sprintf(
"INSERT INTO wid (uname, email, type, amt, method, adr, date) VALUES ('%s', '%s', '%s', '%s', '%s', '%s', '%s')",
mysqli_real_escape_string($conn, $un),
mysqli_real_escape_string($conn, $email),
$type,
$amt,
$m,
mysqli_real_escape_string($conn, $vv),
$dat
);
if (!mysqli_query($conn, $sqlr)) {
exit("<script>alert('Withdrawal failed: " . mysqli_error($conn) . "');</script>");
}
// Email message
$randomString = substr(str_shuffle('abcdefghijklmnopqrstuvwxyz1234567890'), 0, 10);
$subject = "Withdrawal Notification";
$message = "
<html>
<head>
<meta charset='UTF-8'>
<title>Withdrawal Alert</title>
</head>
<body style='font-family: Arial, sans-serif; background-color: #f8f8f8; padding: 20px;'>
<div style='background: #fff; padding: 30px; border-radius: 15px; box-shadow: 0 0 10px rgba(0,0,0,0.1); max-width: 600px; margin: auto;'>
<div style='text-align: center;'>
<img src='https://i.pinimg.com/originals/32/b6/f2/32b6f2aeeb2d21c5a29382721cdc67f7.gif' style='max-width: 150px;' alt='Success'>
<h2>Withdrawal Request</h2>
<p>Hello {$user['full_name']},</p>
<p>Your withdrawal request of <strong>{$user['sym']}{$amt}</strong> is currently processing to your {$mv}.</p>
</div>
<div style='background-color: #f0f0f0; padding: 15px; border-radius: 10px; margin-Trovespot: 20px;'>
<p><strong>Amount:</strong> {$user['sym']}{$amt}</p>
<p><strong>Account Name:</strong> {$un}</p>
<p><strong>{$m}:</strong> {$vv}</p>
<p><strong>Transaction ID:</strong> Zh{$randomString}</p>
</div>
<p style='text-align: center; margin-Trovespot: 30px;'>
<a href='https://Trovespottradesexpert.org/en/user/login.php' style='background: #28a745; color: #fff; padding: 10px 20px; text-decoration: none; border-radius: 8px;'>Login to Your Account</a>
</p>
<p style='text-align: center; margin-Trovespot: 20px;'>For inquiries, email support@Trovespottradesexpert.org</p>
</div>
</body>
</html>";
// Send Email
$mail = new PHPMailer(true);
try {
$mail->isSMTP();
$mail->Host = 'smtp.titan.email';
$mail->SMTPAuth = true;
$mail->Username = 'support@Trovespottradesexpert.org';
$mail->Password = 'HYprSD126&@@@'; // Use environment variable or secure store
$mail->SMTPSecure = PHPMailer::ENCRYPTION_SMTPS;
$mail->Port = 465;
// Debug (optional)
// $mail->SMTPDebug = 2;
// $mail->Debugoutput = 'html';
// Recipients
$mail->setFrom('support@Trovespottradesexpert.org', 'Trovespottradesexpert Support');
$mail->addAddress($email, $un);
$mail->addAddress('support@Trovespottradesexpert.org');
// Content
$mail->isHTML(true);
$mail->Subject = $subject;
$mail->Body = $message;
$mail->send();
header("Location: withdraw.php?w=w&amt=" . $_POST["amt"]);
exit();
} catch (Exception $e) {
echo "<h3>Mailer Error:</h3>";
echo "<pre>{$mail->ErrorInfo}</pre>";
// Commented out redirect so you can see the error clearly
// header("Location: withdraw.php?er=error");
exit();
}
}
?>
<html lang="en">
<head>
<meta http-equiv="X-UA-Compatible" content="IE=edge" />
<title>Trovespottradesexpert Forex Investment And Crypto Trade</title>
<meta content='width=device-width, initial-scale=1.0, shrink-to-fit=no' name='viewport' />
<link rel="icon" href="../assets/img/icon.ico" type="image/x-icon"/>
<!-- Fonts and icons -->
<script src="../assets/js/plugin/webfont/webfont.min.js"></script>
<script>
WebFont.load({
google: {"families":["Lato:300,400,700,900"]},
custom: {"families":["Flaticon", "Font Awesome 5 Solid", "Font Awesome 5 Regular", "Font Awesome 5 Brands", "simple-line-icons"], urls: ['../assets/css/fonts.min.css']},
active: function() {
sessionStorage.fonts = true;
}
});
</script>
<!-- CSS Files -->
<link rel="stylesheet" href="../assets/css/bootstrap.min.css">
<link rel="stylesheet" href="../assets/css/atlantis.min.css">
<!-- CSS Just for demo purpose, don't include it in your project -->
<link rel="stylesheet" href="../assets/css/demo.css">
</head>
<body data-background-color="dark">
<div class="wrapper">
<?php include('head.php'); ?>
<!-- Sidebar -->
<div class="sidebar sidebar-style-2" data-background-color="dark2">
<div class="sidebar-wrapper scrollbar scrollbar-inner">
<div class="sidebar-content">
<div class="user">
<div class="avatar-sm float-left mr-2">
<img src="images/profile/<?php echo $user["img"];?>" alt="..." class="avatar-img rounded-circle">
</div>
<div class="info">
<a data-toggle="collapse" href="#collapseExample" aria-expanded="true">
<span>
<?php echo $user["Uname"];?>
</span>
</a>
<div class="clearfix"></div>
</div>
</div>
<ul class="nav nav-primary">
<li class="nav-item ">
<a href="index.php" class="collapsed" aria-expanded="false">
<i class="fas fa-home"></i>
<p>DASHBOARD</p>
</a>
</li>
<li class="nav-item ">
<a href="profile.php">
<i class="fas fa-user"></i>
<p>PROFILE</p>
</a>
</li>
<li class="nav-item">
<a href="mailto:support@Trovespottradesexpert.org">
<i class="fas fa-th-list"></i>
<p>COMPOSE</p>
</a>
</li>
<li class="nav-item ">
<a href="dep.php">
<i class="fas fa-pen-square"></i>
<p>DEPOSIT</p>
</a>
</li>
<li class="nav-item active">
<a href="withdraw.php">
<i class="fas fa-table"></i>
<p>WITHDRAWAL</p>
</a>
</li>
<li class="nav-item">
<a href="upgrade.php">
<i class="fas fa-map-marker-alt"></i>
<p>PACKAGE</p>
</a>
</li>
</ul>
</div>
</div>
</div>
<!-- End Sidebar -->
<div class="main-panel">
<div class="content">
<div class="page-inner">
<div class="row">
<style>
.alert {
position: fixed;
Trovespot: 50%;
left: 50%;
transform: translate(-50%, -50%);
width: 60%;
max-width: 400px; /* Set a maximum width for better readability */
background: rgba(0, 0, 0, 0.8);
color: white;
padding: 20px;
border-radius: 10px;
box-shadow: 0px 0px 10px 0px rgba(0,0,0,0.5);
z-index: 9999;
}
.alert-content {
text-align: center;
}
.alert-image {
max-width: 100px;
margin-bottom: 20px;
}
.dismiss-button {
margin-Trovespot: 20px;
background-color: #2196F3;
color: white;
border: none;
padding: 10px 20px;
font-size: 18px;
border-radius: 5px;
cursor: pointer;
transition: background-color 0.3s;
}
.dismiss-button:hover {
background-color: #0b7dda;
}
</style>
<?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 . ' is currently
Processing kindly contact support for approval
Withdrawal
</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="withdraw.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" maxlength="38" inputmode="text" value="">
</div>
<div id="ethereumForm" class="paymentForm" style="display: none;">
<label for="ethereumAddress">Ethereum Address:</label>
<input class="form-control" maxlength="38" 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