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 all plans $stmt = $conn->prepare("SELECT * FROM plans ORDER BY id DESC"); $stmt->execute(); $plans_result = $stmt->get_result(); $plans = []; while ($row = $plans_result->fetch_assoc()) { $plans[] = $row; } // Handle plan creation/update if (isset($_POST['save_plan'])) { $name = sanitize_input($_POST['name']); $price = floatval($_POST['price']); $duration = intval($_POST['duration']); $daily_ads = intval($_POST['daily_ads']); $per_ad_earning = floatval($_POST['per_ad_earning']); $status = sanitize_input($_POST['status']); if (isset($_POST['plan_id']) && !empty($_POST['plan_id'])) { // Update existing plan $plan_id = intval($_POST['plan_id']); $stmt = $conn->prepare("UPDATE plans SET name = ?, price = ?, duration = ?, daily_ads = ?, per_ad_earning = ?, status = ? WHERE id = ?"); $stmt->bind_param("sdiiddsi", $name, $price, $duration, $daily_ads, $per_ad_earning, $status, $plan_id); } else { // Create new plan $stmt = $conn->prepare("INSERT INTO plans (name, price, duration, daily_ads, per_ad_earning, status) VALUES (?, ?, ?, ?, ?, ?)"); $stmt->bind_param("sdiidds", $name, $price, $duration, $daily_ads, $per_ad_earning, $status); } if ($stmt->execute()) { header("Location: plans.php?success=saved"); exit(); } else { header("Location: plans.php?error=save_failed"); exit(); } } // Handle plan deletion if (isset($_GET['delete'])) { $plan_id = intval($_GET['delete']); $stmt = $conn->prepare("DELETE FROM plans WHERE id = ?"); $stmt->bind_param("i", $plan_id); if ($stmt->execute()) { header("Location: plans.php?success=deleted"); exit(); } else { header("Location: plans.php?error=delete_failed"); exit(); } } ?> <!DOCTYPE html> <html lang="en"> <head> <meta charset="UTF-8"> <meta name="viewport" content="width=device-width, initial-scale=1.0"> <title>Membership Plans - 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">Membership Plans</h1> <div class="btn-toolbar mb-2 mb-md-0"> <button class="btn btn-primary" data-bs-toggle="modal" data-bs-target="#planModal"> <i class="fas fa-plus me-1"></i>Add New Plan </button> <!-- Mobile Menu --> <div class="mobile-menu-container ms-2"> <button class="mobile-menu-btn" id="mobileMenuBtn"> <i class="fas fa-bars"></i> Menu </button> <div class="mobile-dropdown-menu" id="mobileDropdownMenu"> <a href="dashboard.php"><i class="fas fa-home me-2"></i> Dashboard</a> <a href="users.php"><i class="fas fa-users me-2"></i> All Users</a> <a href="plans.php"><i class="fas fa-box me-2"></i> Membership Plans</a> <a href="referral.php"><i class="fas fa-percentage me-2"></i> Referral Commission</a> <a href="deposit_methods.php"><i class="fas fa-money-check me-2"></i> Deposit Methods</a> <a href="deposits.php"><i class="fas fa-file-invoice-dollar me-2"></i> Deposit Management</a> <a href="deposit_history.php"><i class="fas fa-history me-2"></i> Deposit History</a> <a href="dpin_send.php"><i class="fas fa-key me-2"></i> D.Pin Send</a> <a href="dpin_management.php"><i class="fas fa-cogs me-2"></i> D.Pin Management</a> <a href="dpin_details.php"><i class="fas fa-info-circle me-2"></i> D.Pin Details</a> <a href="withdraw_methods.php"><i class="fas fa-money-check-alt me-2"></i> Withdraw Methods</a> <a href="withdrawals.php"><i class="fas fa-file-invoice-dollar me-2"></i> Withdrawal Management</a> <a href="withdraw_history.php"><i class="fas fa-history me-2"></i> Withdrawal History</a> <a href="transactions.php"><i class="fas fa-exchange-alt me-2"></i> Recent Transactions</a> <a href="ads.php"><i class="fas fa-ad me-2"></i> Ads Management</a> <a href="notifications.php"><i class="fas fa-bell me-2"></i> Notifications</a> <a href="logout.php"><i class="fas fa-sign-out-alt me-2"></i> Logout</a> </div> </div> </div> </div> <?php if (isset($_GET['success']) && $_GET['success'] == 'saved'): ?> <div class="alert alert-success">Plan saved successfully.</div> <?php endif; ?> <?php if (isset($_GET['success']) && $_GET['success'] == 'deleted'): ?> <div class="alert alert-success">Plan deleted successfully.</div> <?php endif; ?> <?php if (isset($_GET['error']) && $_GET['error'] == 'save_failed'): ?> <div class="alert alert-danger">Failed to save plan.</div> <?php endif; ?> <?php if (isset($_GET['error']) && $_GET['error'] == 'delete_failed'): ?> <div class="alert alert-danger">Failed to delete plan.</div> <?php endif; ?> <div class="card"> <div class="card-header"> <h5 class="mb-0">Plan Management</h5> </div> <div class="card-body"> <div class="table-responsive"> <table class="table table-striped"> <thead> <tr> <th>ID</th> <th>Name</th> <th>Price</th> <th>Duration</th> <th>Daily Ads</th> <th>Per Ad Earning</th> <th>Status</th> <th>Actions</th> </tr> </thead> <tbody> <?php foreach ($plans as $plan): ?> <tr> <td><?php echo $plan['id']; ?></td> <td><?php echo htmlspecialchars($plan['name']); ?></td> <td><?php echo format_currency($plan['price']); ?></td> <td><?php echo $plan['duration']; ?> days</td> <td><?php echo $plan['daily_ads']; ?></td> <td><?php echo format_currency($plan['per_ad_earning']); ?></td> <td> <span class="badge bg-<?php echo $plan['status'] == 'active' ? 'success' : 'secondary'; ?>"> <?php echo ucfirst($plan['status']); ?> </span> </td> <td> <button class="btn btn-sm btn-primary" data-bs-toggle="modal" data-bs-target="#planModal<?php echo $plan['id']; ?>"> <i class="fas fa-edit"></i> </button> <a href="plans.php?delete=<?php echo $plan['id']; ?>" class="btn btn-sm btn-danger" onclick="return confirm('Are you sure you want to delete this plan?')"> <i class="fas fa-trash"></i> </a> </td> </tr> <?php endforeach; ?> </tbody> </table> </div> </div> </div> </main> </div> </div> <!-- Add/Edit Plan Modal --> <div class="modal fade" id="planModal" tabindex="-1" aria-labelledby="planModalLabel" aria-hidden="true"> <div class="modal-dialog"> <div class="modal-content"> <div class="modal-header"> <h5 class="modal-title" id="planModalLabel">Add New Plan</h5> <button type="button" class="btn-close" data-bs-dismiss="modal" aria-label="Close"></button> </div> <form method="POST"> <div class="modal-body"> <div class="mb-3"> <label class="form-label">Plan Name</label> <input type="text" class="form-control" name="name" required> </div> <div class="mb-3"> <label class="form-label">Price</label> <input type="number" class="form-control" name="price" step="0.01" min="0" required> </div> <div class="mb-3"> <label class="form-label">Duration (days)</label> <input type="number" class="form-control" name="duration" min="1" required> </div> <div class="mb-3"> <label class="form-label">Daily Ads</label> <input type="number" class="form-control" name="daily_ads" min="1" required> </div> <div class="mb-3"> <label class="form-label">Per Ad Earning</label> <input type="number" class="form-control" name="per_ad_earning" step="0.01" min="0" required> </div> <div class="mb-3"> <label class="form-label">Status</label> <select class="form-select" name="status" required> <option value="active">Active</option> <option value="inactive">Inactive</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="save_plan" class="btn btn-primary">Save Plan</button> </div> </form> </div> </div> </div> <!-- Edit Plan Modals --> <?php foreach ($plans as $plan): ?> <div class="modal fade" id="planModal<?php echo $plan['id']; ?>" tabindex="-1" aria-labelledby="planModalLabel<?php echo $plan['id']; ?>" aria-hidden="true"> <div class="modal-dialog"> <div class="modal-content"> <div class="modal-header"> <h5 class="modal-title" id="planModalLabel<?php echo $plan['id']; ?>">Edit Plan</h5> <button type="button" class="btn-close" data-bs-dismiss="modal" aria-label="Close"></button> </div> <form method="POST"> <input type="hidden" name="plan_id" value="<?php echo $plan['id']; ?>"> <div class="modal-body"> <div class="mb-3"> <label class="form-label">Plan Name</label> <input type="text" class="form-control" name="name" value="<?php echo htmlspecialchars($plan['name']); ?>" required> </div> <div class="mb-3"> <label class="form-label">Price</label> <input type="number" class="form-control" name="price" step="0.01" min="0" value="<?php echo $plan['price']; ?>" required> </div> <div class="mb-3"> <label class="form-label">Duration (days)</label> <input type="number" class="form-control" name="duration" min="1" value="<?php echo $plan['duration']; ?>" required> </div> <div class="mb-3"> <label class="form-label">Daily Ads</label> <input type="number" class="form-control" name="daily_ads" min="1" value="<?php echo $plan['daily_ads']; ?>" required> </div> <div class="mb-3"> <label class="form-label">Per Ad Earning</label> <input type="number" class="form-control" name="per_ad_earning" step="0.01" min="0" value="<?php echo $plan['per_ad_earning']; ?>" required> </div> <div class="mb-3"> <label class="form-label">Status</label> <select class="form-select" name="status" required> <option value="active" <?php echo $plan['status'] == 'active' ? 'selected' : ''; ?>>Active</option> <option value="inactive" <?php echo $plan['status'] == 'inactive' ? 'selected' : ''; ?>>Inactive</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="save_plan" class="btn btn-primary">Save Changes</button> </div> </form> </div> </div> </div> <?php endforeach; ?> <?php include 'footer.php'; ?> </body> </html>