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 /
user /
Delete
Unzip
Name
Size
Permission
Date
Action
ads.php
4.94
KB
-rw-r--r--
2025-10-17 23:43
dashboard.php
10.78
KB
-rw-r--r--
2025-10-18 00:40
deposit.php
6.02
KB
-rw-r--r--
2025-10-17 23:02
deposit_history.php
3.23
KB
-rw-r--r--
2025-10-17 23:03
dpin.php
5.9
KB
-rw-r--r--
2025-10-17 23:03
footer.php
565
B
-rw-r--r--
2025-10-17 23:02
header.php
12.32
KB
-rw-r--r--
2025-10-18 02:06
invite.php
3.53
KB
-rw-r--r--
2025-10-18 00:19
membership.php
11.7
KB
-rw-r--r--
2025-10-18 00:56
profile.php
5.27
KB
-rw-r--r--
2025-10-17 23:04
team.php
5.26
KB
-rw-r--r--
2025-10-17 23:50
transactions.php
3.85
KB
-rw-r--r--
2025-10-17 23:04
withdraw.php
6.19
KB
-rw-r--r--
2025-10-17 23:03
Save
Rename
<?php $title = 'Withdraw'; include 'header.php'; $error = ''; $success = ''; // Get available withdraw methods try { $stmt = $pdo->prepare("SELECT * FROM methods WHERE type = 'withdraw'"); $stmt->execute(); $methods = $stmt->fetchAll(); } catch (PDOException $e) { $methods = []; $error = 'Failed to load withdraw methods.'; } // Handle withdraw request if ($_SERVER['REQUEST_METHOD'] === 'POST') { $method_id = $_POST['method']; $amount = floatval($_POST['amount']); // Validate inputs if (empty($method_id) || $amount <= 0) { $error = 'Please select a method and enter a valid amount.'; } elseif ($amount > $user['balance']) { $error = 'Insufficient balance.'; } else { try { // Get method details $stmt = $pdo->prepare("SELECT * FROM methods WHERE id = ? AND type = 'withdraw'"); $stmt->execute([$method_id]); $method = $stmt->fetch(); if (!$method) { $error = 'Invalid withdraw method selected.'; } else { // Insert withdraw request $stmt = $pdo->prepare("INSERT INTO withdraws (user_id, method, amount, status) VALUES (?, ?, ?, 'pending')"); $stmt->execute([$_SESSION['user_id'], $method['name'], $amount]); // Add transaction record $stmt = $pdo->prepare("INSERT INTO transactions (user_id, type, amount, note) VALUES (?, 'withdraw', ?, 'Withdraw request')"); $stmt->execute([$_SESSION['user_id'], $amount]); $success = 'Withdraw request submitted successfully. Please wait for admin approval.'; } } catch (PDOException $e) { $error = 'Failed to submit withdraw request. Please try again.'; } } } // Get user's withdraw history try { $stmt = $pdo->prepare("SELECT * FROM withdraws WHERE user_id = ? ORDER BY created_at DESC"); $stmt->execute([$_SESSION['user_id']]); $withdraws = $stmt->fetchAll(); } catch (PDOException $e) { $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">Withdraw Funds</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; ?> <div class="row"> <div class="col-md-6"> <div class="card"> <div class="card-body"> <h5 class="card-title">Request Withdraw</h5> <form method="POST"> <div class="mb-3"> <label for="method" class="form-label">Withdraw Method</label> <select class="form-select" id="method" name="method" required> <option value="">Select a method</option> <?php foreach ($methods as $method): ?> <option value="<?php echo $method['id']; ?>"><?php echo htmlspecialchars($method['name']); ?></option> <?php endforeach; ?> </select> </div> <div class="mb-3"> <label for="amount" class="form-label">Amount (₨)</label> <input type="number" class="form-control" id="amount" name="amount" min="1" max="<?php echo $user['balance']; ?>" step="0.01" required> <div class="form-text">Available balance: ₨<?php echo number_format($user['balance'], 2); ?></div> </div> <button type="submit" class="btn btn-primary">Submit Withdraw Request</button> </form> </div> </div> </div> <div class="col-md-6"> <div class="card"> <div class="card-body"> <h5 class="card-title">Withdraw History</h5> <?php if (count($withdraws) > 0): ?> <div class="table-responsive"> <table class="table table-striped"> <thead> <tr> <th>Date</th> <th>Amount</th> <th>Method</th> <th>Status</th> </tr> </thead> <tbody> <?php foreach ($withdraws as $withdraw): ?> <tr> <td><?php echo date('M d, Y H:i', strtotime($withdraw['created_at'])); ?></td> <td>₨<?php echo number_format($withdraw['amount'], 2); ?></td> <td><?php echo htmlspecialchars($withdraw['method']); ?></td> <td> <?php if ($withdraw['status'] === 'pending'): ?> <span class="badge bg-warning">Pending</span> <?php elseif ($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>You don't have any withdraw history yet.</p> <?php endif; ?> </div> </div> </div> </div> <?php include 'footer.php'; ?>