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 /
abayar /
admin /
Delete
Unzip
Name
Size
Permission
Date
Action
.htaccess
197
B
-r--r--r--
2026-04-01 03:43
ads.php
10.11
KB
-rw-r--r--
2025-12-22 20:20
announcements.php
8.13
KB
-rw-r--r--
2025-12-25 17:46
banners.php
9.86
KB
-rw-r--r--
2025-12-22 19:19
boosts.php
5.51
KB
-rw-r--r--
2025-12-24 21:41
daily_targets.php
11.29
KB
-rw-r--r--
2025-12-26 07:59
dashboard.php
9.23
KB
-rw-r--r--
2025-12-25 12:46
deposits.php
13.59
KB
-rw-r--r--
2026-01-26 16:58
dpin_requests.php
7.43
KB
-rw-r--r--
2025-12-24 21:41
dpins.php
9.37
KB
-rw-r--r--
2025-12-23 19:48
error_log
1.14
KB
-rw-r--r--
2026-01-07 16:39
footer.php
122
B
-rw-r--r--
2025-12-25 18:15
header.php
6.83
KB
-rw-r--r--
2026-01-26 17:15
login.php
4.42
KB
-rw-r--r--
2026-01-26 17:46
lucky_wheel.php
24.12
KB
-rw-r--r--
2026-01-26 16:57
orders.php
12.63
KB
-rw-r--r--
2026-01-07 16:27
payment_methods.php
6.53
KB
-rw-r--r--
2025-12-23 19:24
plans.php
22.86
KB
-rw-r--r--
2025-12-29 11:03
products.php
10.72
KB
-rw-r--r--
2026-01-07 16:15
ranks.php
7.31
KB
-rw-r--r--
2025-12-25 16:48
referrals.php
8.7
KB
-rw-r--r--
2025-12-25 12:43
return.php
440
B
-rw-r--r--
2025-12-29 13:55
settings.php
10.77
KB
-rw-r--r--
2026-01-07 16:26
tickets.php
11.98
KB
-rw-r--r--
2025-12-22 19:21
users.php
18.1
KB
-rw-r--r--
2025-12-29 13:53
withdraws.php
11.42
KB
-rw-r--r--
2025-12-24 22:29
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 define('ADMIN_PANEL', true); require_once '../includes/config.php'; requireAdmin(); $page_title = 'Manage Users'; // Handle user actions if ($_SERVER['REQUEST_METHOD'] === 'POST') { $userId = intval($_POST['user_id']); $action = $_POST['action']; try { if ($action === 'activate') { $stmt = $pdo->prepare("UPDATE users SET status = 'active' WHERE id = ?"); $stmt->execute([$userId]); setSuccess("User activated successfully!"); } elseif ($action === 'ban') { $stmt = $pdo->prepare("UPDATE users SET status = 'banned' WHERE id = ?"); $stmt->execute([$userId]); setSuccess("User banned successfully!"); } elseif ($action === 'delete') { // Delete related records first or use ON DELETE CASCADE $stmt = $pdo->prepare("DELETE FROM users WHERE id = ?"); $stmt->execute([$userId]); setSuccess("User deleted successfully!"); } elseif ($action === 'reset_boost') { $stmt = $pdo->prepare("UPDATE users SET reset_boost_date = CURDATE(), boost_reset_count = boost_reset_count + 1 WHERE id = ?"); $stmt->execute([$userId]); setSuccess("User earning boost reset to starting values!"); } elseif ($action === 'adjust_balance') { $amount = floatval($_POST['adjustment_amount']); $adjType = $_POST['adjustment_type']; // 'add' or 'subtract' if ($adjType === 'subtract') { $stmt = $pdo->prepare("UPDATE users SET wallet_balance = wallet_balance - ? WHERE id = ?"); $stmt->execute([$amount, $userId]); } else { $stmt = $pdo->prepare("UPDATE users SET wallet_balance = wallet_balance + ?, total_income = total_income + ? WHERE id = ?"); $stmt->execute([$amount, $amount, $userId]); } setSuccess("Balance adjusted successfully!"); } elseif ($action === 'login_as') { $stmt = $pdo->prepare("SELECT * FROM users WHERE id = ? AND id != 1"); $stmt->execute([$userId]); $user = $stmt->fetch(); if ($user) { // Save current admin session if we wanted to return, but user asked for direct login $_SESSION['admin_user_id'] = $_SESSION['user_id']; $_SESSION['user_id'] = $user['id']; $_SESSION['user_name'] = $user['full_name']; $_SESSION['user_email'] = $user['email']; $_SESSION['role'] = 'user'; setSuccess("Logged in as " . $user['full_name']); header('Location: ../user/dashboard.php'); exit; } } } catch (Exception $e) { setError("Failed to perform action: " . $e->getMessage()); } header('Location: users.php'); exit; } // Get filter $filter = $_GET['filter'] ?? 'all'; $search = $_GET['search'] ?? ''; // Stats for Header $totalUsers = $pdo->query("SELECT COUNT(*) FROM users WHERE id != 1")->fetchColumn(); $activeUsers = $pdo->query("SELECT COUNT(*) FROM users WHERE id != 1 AND status = 'active'")->fetchColumn(); $bannedUsers = $pdo->query("SELECT COUNT(*) FROM users WHERE id != 1 AND status = 'banned'")->fetchColumn(); $totalBalance = $pdo->query("SELECT SUM(wallet_balance) FROM users WHERE id != 1")->fetchColumn() ?: 0; $query = "SELECT * FROM users WHERE id != 1"; if ($filter === 'active') { $query .= " AND status = 'active'"; } elseif ($filter === 'banned') { $query .= " AND status = 'banned'"; } if (!empty($search)) { $query .= " AND (full_name LIKE ? OR email LIKE ? OR phone LIKE ? OR referral_code LIKE ?)"; } $query .= " ORDER BY created_at DESC"; if (!empty($search)) { $stmt = $pdo->prepare($query); $searchTerm = "%$search%"; $stmt->execute([$searchTerm, $searchTerm, $searchTerm, $searchTerm]); } else { $stmt = $pdo->query($query); } $users = $stmt->fetchAll(); include 'header.php'; ?> <!-- Statistics Summary --> <div class="stats-grid" style="margin-bottom: 25px;"> <div class="stat-card primary"> <div class="stat-icon"><i class="fas fa-users"></i></div> <div class="stat-value"><?php echo number_format($totalUsers); ?></div> <div class="stat-label">Total Users</div> </div> <div class="stat-card success"> <div class="stat-icon"><i class="fas fa-user-check"></i></div> <div class="stat-value"><?php echo number_format($activeUsers); ?></div> <div class="stat-label">Active Users</div> </div> <div class="stat-card danger"> <div class="stat-icon"><i class="fas fa-user-slash"></i></div> <div class="stat-value"><?php echo number_format($bannedUsers); ?></div> <div class="stat-label">Banned Users</div> </div> <div class="stat-card warning"> <div class="stat-icon"><i class="fas fa-wallet"></i></div> <div class="stat-value"><?php echo formatCurrency($totalBalance); ?></div> <div class="stat-label">User Balances</div> </div> </div> <?php $success = getSuccess(); if ($success) { echo '<div class="alert alert-success"><i class="fas fa-check-circle"></i> ' . htmlspecialchars($success) . '</div>'; } $error = getError(); if ($error) { echo '<div class="alert alert-danger"><i class="fas fa-exclamation-circle"></i> ' . htmlspecialchars($error) . '</div>'; } ?> <!-- Search & Filter Controls --> <div class="card" style="border-radius: 15px; margin-bottom: 25px; border: none; box-shadow: 0 4px 20px rgba(0,0,0,0.1);"> <div class="card-body"> <form method="GET" action="" style="display: flex; gap: 15px; flex-wrap: wrap; align-items: flex-end;"> <div class="form-group" style="flex: 1; min-width: 250px; margin-bottom: 0;"> <label class="form-label" style="font-size: 12px; opacity: 0.7;">SEARCH USER</label> <div style="position: relative;"> <i class="fas fa-search" style="position: absolute; left: 15px; top: 12px; color: var(--text-secondary);"></i> <input type="text" name="search" class="form-control" placeholder="Name, Email, Phone or Member ID..." value="<?php echo htmlspecialchars($search); ?>" style="padding-left: 45px; border-radius: 10px;"> </div> </div> <div style="display: flex; gap: 8px;"> <a href="users.php?filter=all" class="btn <?php echo $filter === 'all' ? 'btn-primary' : 'btn-secondary'; ?>" style="border-radius: 10px; padding: 10px 20px;"> All </a> <a href="users.php?filter=active" class="btn <?php echo $filter === 'active' ? 'btn-success' : 'btn-secondary'; ?>" style="border-radius: 10px; padding: 10px 20px;"> Active </a> <a href="users.php?filter=banned" class="btn <?php echo $filter === 'banned' ? 'btn-danger' : 'btn-secondary'; ?>" style="border-radius: 10px; padding: 10px 20px;"> Banned </a> <button type="submit" class="btn btn-primary" style="border-radius: 10px; padding: 10px 25px; background: var(--secondary-color); border-color: var(--secondary-color);"> Apply Filter </button> </div> </form> </div> </div> <!-- Users Grid/List --> <div class="users-list-container"> <?php if (empty($users)): ?> <div class="card"> <div class="card-body text-center"> <p>No users match your criteria.</p> </div> </div> <?php else: ?> <div style="display: grid; grid-template-columns: repeat(auto-fill, minmax(350px, 1fr)); gap: 20px;"> <?php foreach ($users as $user): ?> <div class="card user-item-card" style="border-radius: 15px; border: 1px solid rgba(255,255,255,0.05); transition: all 0.3s ease;"> <div class="card-body" style="padding: 20px;"> <!-- Header: Info & Status --> <div style="display: flex; justify-content: space-between; align-items: flex-start; margin-bottom: 20px;"> <div style="display: flex; gap: 12px; align-items: center;"> <div style="width: 45px; height: 45px; background: var(--primary-color); border-radius: 12px; display: flex; align-items: center; justify-content: center; color: white; font-size: 20px; font-weight: bold;"> <?php echo strtoupper(substr($user['full_name'], 0, 1)); ?> </div> <div> <h3 style="margin: 0; font-size: 16px; color: var(--text-primary);"> <?php echo htmlspecialchars($user['full_name']); ?></h3> <div style="font-size: 11px; color: var(--text-secondary); margin-top: 2px;"> ID: #<?php echo $user['id']; ?> | <span style="color: var(--primary-color);">Member: <?php echo htmlspecialchars($user['referral_code']); ?></span> </div> </div> </div> <span class="badge <?php echo $user['status'] === 'active' ? 'badge-success' : 'badge-danger'; ?>" style="border-radius: 6px; padding: 5px 10px; font-size: 10px;"> <?php echo strtoupper($user['status']); ?> </span> </div> <!-- Details Grid --> <div style="display: grid; grid-template-columns: 1fr 1fr; gap: 15px; margin-bottom: 20px; background: rgba(0,0,0,0.1); padding: 15px; border-radius: 12px;"> <div class="detail-box"> <small style="display: block; color: var(--text-secondary); font-size: 10px; margin-bottom: 4px;">WALLET BALANCE</small> <strong style="font-size: 14px; color: var(--success-color);"><?php echo formatCurrency($user['wallet_balance']); ?></strong> </div> <div class="detail-box"> <small style="display: block; color: var(--text-secondary); font-size: 10px; margin-bottom: 4px;">TOTAL INCOME</small> <strong style="font-size: 14px; color: var(--primary-color);"><?php echo formatCurrency($user['total_income']); ?></strong> </div> <div class="detail-box"> <small style="display: block; color: var(--text-secondary); font-size: 10px; margin-bottom: 4px;">REFERRALS</small> <strong style="font-size: 14px;"><?php echo $user['referral_count']; ?></strong> </div> <div class="detail-box"> <small style="display: block; color: var(--text-secondary); font-size: 10px; margin-bottom: 4px;">JOINED DATE</small> <strong style="font-size: 12px;"><?php echo date('d M, Y', strtotime($user['created_at'])); ?></strong> </div> </div> <!-- Contact Info --> <div style="font-size: 12px; color: var(--text-secondary); margin-bottom: 20px; border-left: 2px solid var(--primary-color); padding-left: 10px;"> <div><i class="fas fa-envelope" style="width: 18px;"></i> <?php echo htmlspecialchars($user['email']); ?></div> <div style="margin-top: 5px;"><i class="fas fa-phone" style="width: 18px;"></i> <?php echo htmlspecialchars($user['phone']); ?></div> <div style="margin-top: 5px;"><i class="fas fa-landmark" style="width: 18px;"></i> <?php echo htmlspecialchars($user['account_type']); ?>: <?php echo htmlspecialchars($user['account_number']); ?></div> </div> <!-- Action Controls --> <div style="padding-top: 15px; border-top: 1px solid rgba(255,255,255,0.05);"> <!-- Balance Adjustment Row --> <form method="POST" action="" style="display: flex; gap: 5px; margin-bottom: 12px;"> <input type="hidden" name="user_id" value="<?php echo $user['id']; ?>"> <input type="hidden" name="action" value="adjust_balance"> <input type="number" name="adjustment_amount" step="0.001" class="form-control" placeholder="Amount" style="height: 34px; font-size: 13px; border-radius: 8px;" required> <select name="adjustment_type" class="form-control" style="height: 34px; font-size: 13px; width: 80px; border-radius: 8px;"> <option value="add">+</option> <option value="subtract">-</option> </select> <button type="submit" class="btn btn-warning btn-sm" style="border-radius: 8px; white-space: nowrap;">Modify</button> </form> <!-- Primary Actions --> <div style="display: flex; gap: 8px; flex-wrap: wrap;"> <form method="POST" action="" style="flex: 1;"> <input type="hidden" name="user_id" value="<?php echo $user['id']; ?>"> <input type="hidden" name="action" value="login_as"> <button type="submit" class="btn btn-primary btn-sm btn-block" style="border-radius: 8px; background: #6c5ce7; border-color: #6c5ce7;"> <i class="fas fa-sign-in-alt"></i> Login </button> </form> <?php if ($user['status'] === 'banned'): ?> <button form="action-form-<?php echo $user['id']; ?>" type="submit" name="action" value="activate" class="btn btn-success btn-sm" style="flex: 1; border-radius: 8px;"> <i class="fas fa-undo"></i> Unlock </button> <?php else: ?> <button form="action-form-<?php echo $user['id']; ?>" type="submit" name="action" value="ban" class="btn btn-danger btn-sm" style="flex: 1; border-radius: 8px;" onclick="return confirm('Ban this user?')"> <i class="fas fa-lock-alt"></i> Ban </button> <?php endif; ?> <button form="action-form-<?php echo $user['id']; ?>" type="submit" name="action" value="reset_boost" class="btn btn-warning btn-sm" style="flex: 1; border-radius: 8px;" onclick="return confirm('Reset earnings boost?')"> <i class="fas fa-bolt"></i> Boost </button> <button form="action-form-<?php echo $user['id']; ?>" type="submit" name="action" value="delete" class="btn btn-outline-danger btn-sm" style="width: 34px; padding: 0; border-radius: 8px; color: #ff7675; border-color: rgba(255,118,117,0.3);" onclick="return confirm('Permanently delete user?')"> <i class="fas fa-trash-alt"></i> </button> <form id="action-form-<?php echo $user['id']; ?>" method="POST" action=""> <input type="hidden" name="user_id" value="<?php echo $user['id']; ?>"> </form> </div> </div> </div> </div> <?php endforeach; ?> </div> <?php endif; ?> </div> <style> .user-item-card:hover { transform: translateY(-5px); box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3) !important; border-color: var(--primary-color) !important; } .detail-box strong { display: block; margin-top: 2px; } .btn-outline-danger:hover { background: #ff7675; color: white !important; } </style> <?php include 'footer.php'; ?>