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 Ads'; // Handle ad actions if ($_SERVER['REQUEST_METHOD'] === 'POST') { $action = $_POST['action']; try { if ($action === 'create') { $stmt = $pdo->prepare(" INSERT INTO ads (ad_title, ad_url, timer, status) VALUES (?, ?, ?, 'active') "); $stmt->execute([ $_POST['ad_title'], $_POST['ad_url'], $_POST['timer'] ]); setSuccess("Ad created successfully!"); } elseif ($action === 'update') { $stmt = $pdo->prepare(" UPDATE ads SET ad_title = ?, ad_url = ?, timer = ? WHERE id = ? "); $stmt->execute([ $_POST['ad_title'], $_POST['ad_url'], $_POST['timer'], $_POST['ad_id'] ]); setSuccess("Ad updated successfully!"); } elseif ($action === 'toggle_status') { $adId = intval($_POST['ad_id']); $stmt = $pdo->prepare("SELECT status FROM ads WHERE id = ?"); $stmt->execute([$adId]); $ad = $stmt->fetch(); $newStatus = $ad['status'] === 'active' ? 'inactive' : 'active'; $stmt = $pdo->prepare("UPDATE ads SET status = ? WHERE id = ?"); $stmt->execute([$newStatus, $adId]); setSuccess("Ad status updated!"); } elseif ($action === 'delete') { $stmt = $pdo->prepare("DELETE FROM ads WHERE id = ?"); $stmt->execute([intval($_POST['ad_id'])]); setSuccess("Ad deleted successfully!"); } } catch (Exception $e) { setError("Failed to perform action: " . $e->getMessage()); } header('Location: ads.php'); exit; } // Get all ads $stmt = $pdo->query("SELECT * FROM ads ORDER BY created_at DESC"); $ads = $stmt->fetchAll(); // Get ad being edited $editAd = null; if (isset($_GET['edit'])) { $stmt = $pdo->prepare("SELECT * FROM ads WHERE id = ?"); $stmt->execute([intval($_GET['edit'])]); $editAd = $stmt->fetch(); } 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 Ad --> <div class="card"> <div class="card-header"> <i class="fas fa-<?php echo $editAd ? 'edit' : 'plus'; ?>"></i> <?php echo $editAd ? 'Edit Ad' : 'Create New Ad'; ?> </div> <div class="card-body"> <form method="POST" action=""> <input type="hidden" name="action" value="<?php echo $editAd ? 'update' : 'create'; ?>"> <?php if ($editAd): ?> <input type="hidden" name="ad_id" value="<?php echo $editAd['id']; ?>"> <?php endif; ?> <div class="form-group"> <label class="form-label">Ad Title</label> <input type="text" name="ad_title" class="form-control" placeholder="e.g., Visit Our Website" value="<?php echo $editAd ? htmlspecialchars($editAd['ad_title']) : ''; ?>" required> </div> <div class="form-group"> <label class="form-label">Ad URL</label> <input type="url" name="ad_url" class="form-control" placeholder="https://example.com" value="<?php echo $editAd ? htmlspecialchars($editAd['ad_url']) : ''; ?>" required> <small style="color: var(--text-secondary); display: block; margin-top: 5px;"> Full URL including https:// </small> </div> <div class="form-group"> <label class="form-label">Timer (Seconds)</label> <input type="number" name="timer" class="form-control" placeholder="e.g., 30" min="10" max="300" value="<?php echo $editAd ? $editAd['timer'] : '30'; ?>" required> <small style="color: var(--text-secondary); display: block; margin-top: 5px;"> How long users must watch the ad (10-300 seconds) </small> </div> <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 $editAd ? 'Update' : 'Create'; ?> Ad </button> <?php if ($editAd): ?> <a href="ads.php" class="btn btn-secondary"> <i class="fas fa-times"></i> Cancel </a> <?php endif; ?> </div> </form> </div> </div> <!-- Ads List --> <div class="card"> <div class="card-header"> <i class="fas fa-ad"></i> All Ads (<?php echo count($ads); ?>) </div> <div class="card-body"> <?php if (empty($ads)): ?> <p style="color: var(--text-secondary); text-align: center;">No ads created yet.</p> <?php else: ?> <?php foreach ($ads as $ad): ?> <div class="card" style="margin-bottom: 15px; background: var(--dark-bg); border: 2px solid <?php echo $ad['status'] === 'active' ? 'var(--primary-color)' : 'var(--border-color)'; ?>;"> <div class="card-body"> <div style="display: flex; justify-content: space-between; margin-bottom: 15px;"> <div> <h4 style="color: var(--text-primary); margin-bottom: 5px;"> <?php echo htmlspecialchars($ad['ad_title']); ?> </h4> <p style="color: var(--text-secondary); margin: 0; font-size: 12px;"> ID: #<?php echo $ad['id']; ?> </p> </div> <div style="text-align: right;"> <span class="badge badge-<?php echo $ad['status'] === 'active' ? 'success' : 'danger'; ?>"> <?php echo ucfirst($ad['status']); ?> </span> </div> </div> <div style="margin-bottom: 15px;"> <p style="color: var(--text-secondary); margin-bottom: 5px;"> <i class="fas fa-link"></i> URL: <a href="<?php echo htmlspecialchars($ad['ad_url']); ?>" target="_blank" style="color: var(--primary-color);"> <?php echo htmlspecialchars($ad['ad_url']); ?> </a> </p> <p style="color: var(--text-secondary); margin-bottom: 5px;"> <i class="fas fa-clock"></i> Timer: <strong><?php echo $ad['timer']; ?></strong> seconds </p> <p style="color: var(--text-secondary); margin: 0;"> <i class="fas fa-calendar"></i> Created: <?php echo date('M d, Y', strtotime($ad['created_at'])); ?> </p> </div> <!-- Preview --> <div style="margin-bottom: 15px;"> <iframe src="<?php echo htmlspecialchars(getEmbedUrl($ad['ad_url'])); ?>" style="width: 100%; height: 200px; border: 1px solid var(--border-color); border-radius: 8px;" allowfullscreen></iframe> </div> <!-- Actions --> <div style="display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px;"> <a href="ads.php?edit=<?php echo $ad['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="ad_id" value="<?php echo $ad['id']; ?>"> <button type="submit" class="btn btn-<?php echo $ad['status'] === 'active' ? 'warning' : 'success'; ?> btn-sm" style="width: 100%;"> <i class="fas fa-<?php echo $ad['status'] === 'active' ? 'pause' : 'play'; ?>"></i> <?php echo $ad['status'] === 'active' ? 'Deactivate' : 'Activate'; ?> </button> </form> <form method="POST" action="" style="margin: 0;"> <input type="hidden" name="action" value="delete"> <input type="hidden" name="ad_id" value="<?php echo $ad['id']; ?>"> <button type="submit" class="btn btn-danger btn-sm" style="width: 100%;" onclick="return confirm('Are you sure you want to delete this ad?')"> <i class="fas fa-trash"></i> Delete </button> </form> </div> </div> </div> <?php endforeach; ?> <?php endif; ?> </div> </div> <?php include 'footer.php'; ?>