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 Announcements'; // Handle Announcement actions if ($_SERVER['REQUEST_METHOD'] === 'POST') { $action = $_POST['action']; try { if ($action === 'create') { $stmt = $pdo->prepare(" INSERT INTO announcements (title, message, type, is_active) VALUES (?, ?, ?, 1) "); $stmt->execute([ $_POST['title'], $_POST['message'], $_POST['type'] ]); setSuccess("Announcement created successfully!"); } elseif ($action === 'update') { $stmt = $pdo->prepare(" UPDATE announcements SET title = ?, message = ?, type = ? WHERE id = ? "); $stmt->execute([ $_POST['title'], $_POST['message'], $_POST['type'], $_POST['announcement_id'] ]); setSuccess("Announcement updated successfully!"); } elseif ($action === 'toggle_status') { $id = intval($_POST['announcement_id']); $stmt = $pdo->prepare("UPDATE announcements SET is_active = (1 - is_active) WHERE id = ?"); $stmt->execute([$id]); setSuccess("Status updated!"); } elseif ($action === 'delete') { $stmt = $pdo->prepare("DELETE FROM announcements WHERE id = ?"); $stmt->execute([intval($_POST['announcement_id'])]); setSuccess("Announcement deleted successfully!"); } } catch (Exception $e) { setError("Error: " . $e->getMessage()); } header('Location: announcements.php'); exit; } // Get all announcements $stmt = $pdo->query("SELECT * FROM announcements ORDER BY created_at DESC"); $announcements = $stmt->fetchAll(); // Get announcement being edited $editItem = null; if (isset($_GET['edit'])) { $stmt = $pdo->prepare("SELECT * FROM announcements WHERE id = ?"); $stmt->execute([intval($_GET['edit'])]); $editItem = $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 Form --> <div class="card"> <div class="card-header"> <i class="fas fa-<?php echo $editItem ? 'edit' : 'plus'; ?>"></i> <?php echo $editItem ? 'Edit Update' : 'Post New Update'; ?> </div> <div class="card-body"> <form method="POST"> <input type="hidden" name="action" value="<?php echo $editItem ? 'update' : 'create'; ?>"> <?php if ($editItem): ?> <input type="hidden" name="announcement_id" value="<?php echo $editItem['id']; ?>"> <?php endif; ?> <div class="form-group"> <label class="form-label">Update Title</label> <input type="text" name="title" class="form-control" placeholder="e.g., New Plan Launched!" value="<?php echo $editItem ? htmlspecialchars($editItem['title']) : ''; ?>" required> </div> <div class="form-group"> <label class="form-label">Message Details</label> <textarea name="message" class="form-control" rows="4" placeholder="Enter the full update details..." required><?php echo $editItem ? htmlspecialchars($editItem['message']) : ''; ?></textarea> </div> <div class="form-group"> <label class="form-label">Alert Type</label> <select name="type" class="form-control"> <option value="info" <?php echo ($editItem && $editItem['type'] == 'info') ? 'selected' : ''; ?>> Information (Blue)</option> <option value="success" <?php echo ($editItem && $editItem['type'] == 'success') ? 'selected' : ''; ?>>Success (Green)</option> <option value="warning" <?php echo ($editItem && $editItem['type'] == 'warning') ? 'selected' : ''; ?>>Warning (Yellow)</option> <option value="danger" <?php echo ($editItem && $editItem['type'] == 'danger') ? 'selected' : ''; ?>> Crisis (Red)</option> </select> </div> <div style="display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px;"> <button type="submit" class="btn btn-primary"> <i class="fas fa-paper-plane"></i> <?php echo $editItem ? 'Update' : 'Post'; ?> Announcement </button> <?php if ($editItem): ?> <a href="announcements.php" class="btn btn-secondary">Cancel</a> <?php endif; ?> </div> </form> </div> </div> <!-- list --> <div class="card"> <div class="card-header"> <i class="fas fa-history"></i> Recent Announcements </div> <div class="card-body"> <?php if (empty($announcements)): ?> <p style="color: var(--text-secondary); text-align: center;">No announcements yet.</p> <?php else: ?> <?php foreach ($announcements as $item): ?> <div class="card" style="margin-bottom: 15px; background: var(--dark-bg); border: 1px solid var(--border-color);"> <div class="card-body"> <div style="display: flex; justify-content: space-between; align-items: flex-start; margin-bottom: 10px;"> <div> <h4 style="color: var(--text-primary); margin: 0;"> <?php echo htmlspecialchars($item['title']); ?></h4> <small style="color: var(--text-secondary);"><?php echo date('M d, Y h:i A', strtotime($item['created_at'])); ?></small> </div> <span class="badge badge-<?php echo $item['type']; ?>"><?php echo ucfirst($item['type']); ?></span> </div> <p style="color: var(--text-secondary); font-size: 14px; margin-bottom: 15px;"> <?php echo nl2br(htmlspecialchars($item['message'])); ?> </p> <div style="display: flex; gap: 10px;"> <a href="announcements.php?edit=<?php echo $item['id']; ?>" class="btn btn-secondary btn-sm">Edit</a> <form method="POST" style="margin: 0;"> <input type="hidden" name="action" value="toggle_status"> <input type="hidden" name="announcement_id" value="<?php echo $item['id']; ?>"> <button type="submit" class="btn btn-<?php echo $item['is_active'] ? 'warning' : 'success'; ?> btn-sm"> <?php echo $item['is_active'] ? 'Hide' : 'Show'; ?> </button> </form> <form method="POST" style="margin: 0;" onsubmit="return confirm('Delete this update?')"> <input type="hidden" name="action" value="delete"> <input type="hidden" name="announcement_id" value="<?php echo $item['id']; ?>"> <button type="submit" class="btn btn-danger btn-sm">Delete</button> </form> </div> </div> </div> <?php endforeach; ?> <?php endif; ?> </div> </div> <?php include 'footer.php'; ?>