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 /
admin.2 /
Delete
Unzip
Name
Size
Permission
Date
Action
ads.php
15.26
KB
-rw-r--r--
2025-10-18 22:42
dashboard.php
22.01
KB
-rw-r--r--
2025-10-18 22:49
deposit_history.php
4.14
KB
-rw-r--r--
2025-10-18 21:52
deposit_methods.php
11.74
KB
-rw-r--r--
2025-10-18 21:52
deposits.php
12.91
KB
-rw-r--r--
2025-10-18 21:52
dpin_details.php
4.52
KB
-rw-r--r--
2025-10-18 22:26
dpin_management.php
10.04
KB
-rw-r--r--
2025-10-18 21:52
dpin_send.php
6
KB
-rw-r--r--
2025-10-18 22:26
footer.php
148
B
-rw-r--r--
2025-10-18 21:50
header.php
8.2
KB
-rw-r--r--
2025-10-18 22:54
login.php
6.11
KB
-rw-r--r--
2025-10-18 21:41
logout.php
88
B
-rw-r--r--
2025-10-18 21:42
notifications.php
9.34
KB
-rw-r--r--
2025-10-18 21:54
plans.php
15.64
KB
-rw-r--r--
2025-10-18 22:42
referral.php
9.89
KB
-rw-r--r--
2025-10-18 21:52
sidebar.php
5.11
KB
-rw-r--r--
2025-10-18 21:50
transactions.php
4.47
KB
-rw-r--r--
2025-10-18 21:53
users.php
12.66
KB
-rw-r--r--
2025-10-18 22:42
withdraw_history.php
4.2
KB
-rw-r--r--
2025-10-18 21:53
withdraw_methods.php
11.89
KB
-rw-r--r--
2025-10-18 21:53
withdrawals.php
13.4
KB
-rw-r--r--
2025-10-18 21:53
Save
Rename
<?php require_once '../config.php'; // Check if admin is logged in if (!isset($_SESSION['admin_id'])) { header("Location: login.php"); exit(); } // Get pending deposits $stmt = $conn->prepare("SELECT d.*, u.name as user_name FROM deposits d JOIN users u ON d.user_id = u.id WHERE d.status = 'pending' ORDER BY d.created_at DESC"); $stmt->execute(); $deposits_result = $stmt->get_result(); $deposits = []; while ($row = $deposits_result->fetch_assoc()) { $deposits[] = $row; } // Handle deposit approval/rejection if (isset($_POST['process_deposit'])) { $deposit_id = intval($_POST['deposit_id']); $action = sanitize_input($_POST['action']); // approve or reject $amount = floatval($_POST['amount']); $user_id = intval($_POST['user_id']); if ($action == 'approve') { // Start transaction $conn->begin_transaction(); try { // Update deposit status $stmt = $conn->prepare("UPDATE deposits SET status = 'approved' WHERE id = ?"); $stmt->bind_param("i", $deposit_id); $stmt->execute(); // Update user balance $stmt = $conn->prepare("UPDATE users SET balance = balance + ? WHERE id = ?"); $stmt->bind_param("di", $amount, $user_id); $stmt->execute(); // Add transaction record $stmt = $conn->prepare("INSERT INTO transactions (user_id, type, amount, status, description) VALUES (?, 'deposit', ?, 'completed', 'Deposit approved by admin')"); $stmt->bind_param("id", $user_id, $amount); $stmt->execute(); // Add notification $message = "Your deposit of " . format_currency($amount) . " has been approved."; $stmt = $conn->prepare("INSERT INTO notifications (user_id, message, type) VALUES (?, ?, 'success')"); $stmt->bind_param("is", $user_id, $message); $stmt->execute(); // Commit transaction $conn->commit(); header("Location: deposits.php?success=approved"); exit(); } catch (Exception $e) { // Rollback transaction $conn->rollback(); header("Location: deposits.php?error=approval_failed"); exit(); } } elseif ($action == 'reject') { $stmt = $conn->prepare("UPDATE deposits SET status = 'rejected' WHERE id = ?"); $stmt->bind_param("i", $deposit_id); if ($stmt->execute()) { // Add notification $message = "Your deposit of " . format_currency($amount) . " has been rejected."; $stmt = $conn->prepare("INSERT INTO notifications (user_id, message, type) VALUES (?, ?, 'error')"); $stmt->bind_param("is", $user_id, $message); $stmt->execute(); header("Location: deposits.php?success=rejected"); exit(); } else { header("Location: deposits.php?error=rejection_failed"); exit(); } } } ?> <!DOCTYPE html> <html lang="en"> <head> <meta charset="UTF-8"> <meta name="viewport" content="width=device-width, initial-scale=1.0"> <title>Deposit Management - Admin Panel</title> <?php include 'header.php'; ?> </head> <body> <div class="container-fluid"> <div class="row"> <?php include 'sidebar.php'; ?> <main class="col-md-9 ms-sm-auto col-lg-10 main-content"> <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">Deposit Management</h1> </div> <?php if (isset($_GET['success']) && $_GET['success'] == 'approved'): ?> <div class="alert alert-success">Deposit approved successfully.</div> <?php endif; ?> <?php if (isset($_GET['success']) && $_GET['success'] == 'rejected'): ?> <div class="alert alert-success">Deposit rejected successfully.</div> <?php endif; ?> <?php if (isset($_GET['error']) && $_GET['error'] == 'approval_failed'): ?> <div class="alert alert-danger">Failed to approve deposit.</div> <?php endif; ?> <?php if (isset($_GET['error']) && $_GET['error'] == 'rejection_failed'): ?> <div class="alert alert-danger">Failed to reject deposit.</div> <?php endif; ?> <div class="card"> <div class="card-header"> <h5 class="mb-0">Pending Deposits</h5> </div> <div class="card-body"> <?php if (empty($deposits)): ?> <div class="text-center py-5"> <i class="fas fa-file-invoice-dollar fa-3x text-muted mb-3"></i> <h4>No Pending Deposits</h4> <p class="mb-0">There are no pending deposit requests at the moment.</p> </div> <?php else: ?> <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>Actions</th> </tr> </thead> <tbody> <?php foreach ($deposits as $deposit): ?> <tr> <td><?php echo $deposit['id']; ?></td> <td><?php echo htmlspecialchars($deposit['user_name']); ?></td> <td><?php echo format_currency($deposit['amount']); ?></td> <td><?php echo htmlspecialchars($deposit['method']); ?></td> <td><?php echo date('M d, Y H:i', strtotime($deposit['created_at'])); ?></td> <td> <button class="btn btn-sm btn-primary" data-bs-toggle="modal" data-bs-target="#processModal<?php echo $deposit['id']; ?>"> Process </button> </td> </tr> <!-- Process Modal --> <div class="modal fade" id="processModal<?php echo $deposit['id']; ?>" tabindex="-1" aria-labelledby="processModalLabel<?php echo $deposit['id']; ?>" aria-hidden="true"> <div class="modal-dialog"> <div class="modal-content"> <div class="modal-header"> <h5 class="modal-title" id="processModalLabel<?php echo $deposit['id']; ?>">Process Deposit</h5> <button type="button" class="btn-close" data-bs-dismiss="modal" aria-label="Close"></button> </div> <form method="POST"> <div class="modal-body"> <input type="hidden" name="deposit_id" value="<?php echo $deposit['id']; ?>"> <input type="hidden" name="user_id" value="<?php echo $deposit['user_id']; ?>"> <input type="hidden" name="amount" value="<?php echo $deposit['amount']; ?>"> <div class="mb-3"> <label class="form-label">User</label> <input type="text" class="form-control" value="<?php echo htmlspecialchars($deposit['user_name']); ?>" readonly> </div> <div class="mb-3"> <label class="form-label">Amount</label> <input type="text" class="form-control" value="<?php echo format_currency($deposit['amount']); ?>" readonly> </div> <div class="mb-3"> <label class="form-label">Method</label> <input type="text" class="form-control" value="<?php echo htmlspecialchars($deposit['method']); ?>" readonly> </div> <?php if ($deposit['receipt']): ?> <div class="mb-3"> <label class="form-label">Receipt</label> <div> <a href="../uploads/receipts/<?php echo htmlspecialchars($deposit['receipt']); ?>" target="_blank">View Receipt</a> </div> </div> <?php endif; ?> <div class="mb-3"> <label class="form-label">Action</label> <select class="form-select" name="action" required> <option value="approve">Approve</option> <option value="reject">Reject</option> </select> </div> </div> <div class="modal-footer"> <button type="button" class="btn btn-secondary" data-bs-dismiss="modal">Close</button> <button type="submit" name="process_deposit" class="btn btn-primary">Process Deposit</button> </div> </form> </div> </div> </div> <?php endforeach; ?> </tbody> </table> </div> <?php endif; ?> </div> </div> </main> </div> </div> <?php include 'footer.php'; ?> </body> </html>