Linux spg1.cloudpowerdns.com 5.14.0-611.34.1.el9_7.x86_64 #1 SMP PREEMPT_DYNAMIC Wed Feb 18 05:51:10 EST 2026 x86_64
LiteSpeed
Server IP : 176.9.63.151 & Your IP : 216.73.217.60
Domains :
Cant Read [ /etc/named.conf ]
User : fastear1
Terminal
Auto Root
Create File
Create Folder
Localroot Suggester
Backdoor Destroyer
Readme
/
home /
fastear1 /
.trash /
deployment_package /
admin /
Delete
Unzip
Name
Size
Permission
Date
Action
ads.php
13.96
KB
-rw-r--r--
2025-10-17 23:08
auth.php
343
B
-rw-r--r--
2025-10-17 23:20
dashboard.php
8.71
KB
-rw-r--r--
2025-10-18 00:40
deposit_methods.php
12.36
KB
-rw-r--r--
2025-10-17 23:06
deposits.php
13.24
KB
-rw-r--r--
2025-10-18 00:56
dpin.php
6.16
KB
-rw-r--r--
2025-10-17 23:06
footer.php
565
B
-rw-r--r--
2025-10-17 23:05
header.php
13.06
KB
-rw-r--r--
2025-10-18 02:06
login.php
3.37
KB
-rw-r--r--
2025-10-17 23:09
login_as_user.php
1020
B
-rw-r--r--
2025-10-17 23:05
logout.php
88
B
-rw-r--r--
2025-10-17 23:08
plans.php
13.65
KB
-rw-r--r--
2025-10-17 23:06
referral_commissions.php
11.93
KB
-rw-r--r--
2025-10-18 00:13
team_commissions.php
6.66
KB
-rw-r--r--
2025-10-17 23:45
test_modals.php
4.44
KB
-rw-r--r--
2025-10-18 00:49
test_referral_commissions.php
2.87
KB
-rw-r--r--
2025-10-18 00:13
test_user_edit.php
4.96
KB
-rw-r--r--
2025-10-18 00:44
transactions.php
6.36
KB
-rw-r--r--
2025-10-17 23:08
users.php
13.55
KB
-rw-r--r--
2025-10-18 00:49
withdraw_methods.php
12.49
KB
-rw-r--r--
2025-10-17 23:08
withdraws.php
9.16
KB
-rw-r--r--
2025-10-17 23:39
Save
Rename
<?php $title = 'Manage Withdrawals'; include 'header.php'; $error = ''; $success = ''; // Handle withdrawal approval/rejection if ($_SERVER['REQUEST_METHOD'] === 'POST' && isset($_POST['action'])) { $withdraw_id = intval($_POST['withdraw_id']); $action = $_POST['action']; try { if ($action === 'approve') { // Approve withdrawal $stmt = $pdo->prepare("UPDATE withdraws SET status = 'approved' WHERE id = ?"); $stmt->execute([$withdraw_id]); // Get withdrawal details $stmt = $pdo->prepare("SELECT * FROM withdraws WHERE id = ?"); $stmt->execute([$withdraw_id]); $withdraw = $stmt->fetch(); if ($withdraw) { // Deduct amount from user balance (if not already deducted) $stmt = $pdo->prepare("UPDATE users SET balance = balance - ? WHERE id = ?"); $stmt->execute([$withdraw['amount'], $withdraw['user_id']]); // Add transaction record $stmt = $pdo->prepare("INSERT INTO transactions (user_id, type, amount, note) VALUES (?, 'withdraw', ?, 'Withdrawal approved')"); $stmt->execute([$withdraw['user_id'], $withdraw['amount']]); $success = 'Withdrawal approved successfully.'; } } elseif ($action === 'reject') { // Reject withdrawal $stmt = $pdo->prepare("UPDATE withdraws SET status = 'rejected' WHERE id = ?"); $stmt->execute([$withdraw_id]); // Get withdrawal details to refund balance $stmt = $pdo->prepare("SELECT * FROM withdraws WHERE id = ?"); $stmt->execute([$withdraw_id]); $withdraw = $stmt->fetch(); if ($withdraw) { // Refund amount to user balance $stmt = $pdo->prepare("UPDATE users SET balance = balance + ? WHERE id = ?"); $stmt->execute([$withdraw['amount'], $withdraw['user_id']]); // Add transaction record $stmt = $pdo->prepare("INSERT INTO transactions (user_id, type, amount, note) VALUES (?, 'withdraw', ?, 'Withdrawal rejected - amount refunded')"); $stmt->execute([$withdraw['user_id'], $withdraw['amount']]); $success = 'Withdrawal rejected and amount refunded successfully.'; } } } catch (PDOException $e) { $error = 'Failed to update withdrawal status. Please try again.'; } } // Get all pending withdrawals try { $stmt = $pdo->prepare("SELECT w.*, u.fullname, u.email, u.balance FROM withdraws w JOIN users u ON w.user_id = u.id WHERE w.status = 'pending' ORDER BY w.created_at DESC"); $stmt->execute(); $pending_withdraws = $stmt->fetchAll(); } catch (PDOException $e) { $pending_withdraws = []; $error = 'Failed to fetch pending withdrawals.'; } // Get recent withdrawals (approved/rejected) try { $stmt = $pdo->prepare("SELECT w.*, u.fullname, u.email FROM withdraws w JOIN users u ON w.user_id = u.id WHERE w.status IN ('approved', 'rejected') ORDER BY w.created_at DESC LIMIT 20"); $stmt->execute(); $recent_withdraws = $stmt->fetchAll(); } catch (PDOException $e) { $recent_withdraws = []; } ?> <div class="d-flex justify-content-between flex-wrap flex-md-nowrap align-items-center pt-3 pb-2 mb-3 border-bottom"> <h1 class="h2">Manage Withdrawals</h1> </div> <?php if ($error): ?> <div class="alert alert-danger"><?php echo htmlspecialchars($error); ?></div> <?php endif; ?> <?php if ($success): ?> <div class="alert alert-success"><?php echo htmlspecialchars($success); ?></div> <?php endif; ?> <!-- Pending Withdrawals --> <div class="row"> <div class="col-12"> <div class="card"> <div class="card-body"> <h5 class="card-title">Pending Withdrawals</h5> <?php if (count($pending_withdraws) > 0): ?> <div class="table-responsive"> <table class="table table-striped"> <thead> <tr> <th>ID</th> <th>User</th> <th>Amount</th> <th>Method</th> <th>Date</th> <th>User Balance</th> <th>Actions</th> </tr> </thead> <tbody> <?php foreach ($pending_withdraws as $withdraw): ?> <tr> <td><?php echo $withdraw['id']; ?></td> <td><?php echo htmlspecialchars($withdraw['fullname'] . ' (' . $withdraw['email'] . ')'); ?></td> <td>₨<?php echo number_format($withdraw['amount'], 2); ?></td> <td><?php echo htmlspecialchars($withdraw['method']); ?></td> <td><?php echo date('M d, Y H:i', strtotime($withdraw['created_at'])); ?></td> <td>₨<?php echo number_format($withdraw['balance'], 2); ?></td> <td> <form method="POST" class="d-inline"> <input type="hidden" name="withdraw_id" value="<?php echo $withdraw['id']; ?>"> <button type="submit" name="action" value="approve" class="btn btn-sm btn-success">Approve</button> </form> <form method="POST" class="d-inline"> <input type="hidden" name="withdraw_id" value="<?php echo $withdraw['id']; ?>"> <button type="submit" name="action" value="reject" class="btn btn-sm btn-danger">Reject</button> </form> </td> </tr> <?php endforeach; ?> </tbody> </table> </div> <?php else: ?> <p>No pending withdrawals found.</p> <?php endif; ?> </div> </div> </div> </div> <!-- Recent Withdrawals --> <div class="row mt-4"> <div class="col-12"> <div class="card"> <div class="card-body"> <h5 class="card-title">Recent Withdrawals</h5> <?php if (count($recent_withdraws) > 0): ?> <div class="table-responsive"> <table class="table table-striped"> <thead> <tr> <th>ID</th> <th>User</th> <th>Amount</th> <th>Method</th> <th>Date</th> <th>Status</th> </tr> </thead> <tbody> <?php foreach ($recent_withdraws as $withdraw): ?> <tr> <td><?php echo $withdraw['id']; ?></td> <td><?php echo htmlspecialchars($withdraw['fullname'] . ' (' . $withdraw['email'] . ')'); ?></td> <td>₨<?php echo number_format($withdraw['amount'], 2); ?></td> <td><?php echo htmlspecialchars($withdraw['method']); ?></td> <td><?php echo date('M d, Y H:i', strtotime($withdraw['created_at'])); ?></td> <td> <?php if ($withdraw['status'] === 'approved'): ?> <span class="badge bg-success">Approved</span> <?php else: ?> <span class="badge bg-danger">Rejected</span> <?php endif; ?> </td> </tr> <?php endforeach; ?> </tbody> </table> </div> <?php else: ?> <p>No recent withdrawals found.</p> <?php endif; ?> </div> </div> </div> </div> <?php include 'footer.php'; ?>