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.1 /
Delete
Unzip
Name
Size
Permission
Date
Action
ads.php
13.96
KB
-rw-r--r--
2025-10-17 23:08
auth.php
343
B
-rw-r--r--
2025-10-17 23:20
dashboard.php
8.71
KB
-rw-r--r--
2025-10-18 00:40
deposit_methods.php
12.36
KB
-rw-r--r--
2025-10-17 23:06
deposits.php
13.24
KB
-rw-r--r--
2025-10-18 00:56
dpin.php
6.16
KB
-rw-r--r--
2025-10-17 23:06
footer.php
565
B
-rw-r--r--
2025-10-17 23:05
header.php
13.06
KB
-rw-r--r--
2025-10-18 02:06
login.php
3.37
KB
-rw-r--r--
2025-10-17 23:09
login_as_user.php
1020
B
-rw-r--r--
2025-10-17 23:05
logout.php
88
B
-rw-r--r--
2025-10-17 23:08
plans.php
13.65
KB
-rw-r--r--
2025-10-17 23:06
referral_commissions.php
11.93
KB
-rw-r--r--
2025-10-18 00:13
team_commissions.php
6.66
KB
-rw-r--r--
2025-10-17 23:45
test_modals.php
4.44
KB
-rw-r--r--
2025-10-18 00:49
test_referral_commissions.php
2.87
KB
-rw-r--r--
2025-10-18 00:13
test_user_edit.php
4.96
KB
-rw-r--r--
2025-10-18 00:44
transactions.php
6.36
KB
-rw-r--r--
2025-10-17 23:08
users.php
13.55
KB
-rw-r--r--
2025-10-18 00:49
withdraw_methods.php
12.49
KB
-rw-r--r--
2025-10-17 23:08
withdraws.php
9.16
KB
-rw-r--r--
2025-10-17 23:39
Save
Rename
<?php $title = 'Ads Management'; include 'header.php'; $error = ''; $success = ''; // Handle ad actions if ($_SERVER['REQUEST_METHOD'] === 'POST') { if (isset($_POST['action'])) { try { switch ($_POST['action']) { case 'create': $title = trim($_POST['title']); $link = trim($_POST['link']); $description = trim($_POST['description']); $reward = floatval($_POST['reward']); $duration = intval($_POST['duration']); $stmt = $pdo->prepare("INSERT INTO ads (title, link, description, reward, duration) VALUES (?, ?, ?, ?, ?)"); $stmt->execute([$title, $link, $description, $reward, $duration]); $success = 'Ad created successfully.'; break; case 'update': $ad_id = $_POST['ad_id']; $title = trim($_POST['title']); $link = trim($_POST['link']); $description = trim($_POST['description']); $reward = floatval($_POST['reward']); $duration = intval($_POST['duration']); $status = $_POST['status']; $stmt = $pdo->prepare("UPDATE ads SET title = ?, link = ?, description = ?, reward = ?, duration = ?, status = ? WHERE id = ?"); $stmt->execute([$title, $link, $description, $reward, $duration, $status, $ad_id]); $success = 'Ad updated successfully.'; break; case 'delete': $ad_id = $_POST['ad_id']; $stmt = $pdo->prepare("DELETE FROM ads WHERE id = ?"); $stmt->execute([$ad_id]); $success = 'Ad deleted successfully.'; break; } } catch (PDOException $e) { $error = 'Failed to perform action. Please try again.'; } } } // Get all ads try { $stmt = $pdo->prepare("SELECT * FROM ads ORDER BY id DESC"); $stmt->execute(); $ads = $stmt->fetchAll(); } catch (PDOException $e) { $ads = []; $error = 'Failed to fetch ads.'; } ?> <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">Ads Management</h1> <button class="btn btn-primary" data-bs-toggle="modal" data-bs-target="#createModal">Add New Ad</button> </div> <?php if ($error): ?> <div class="alert alert-danger"><?php echo htmlspecialchars($error); ?></div> <?php endif; ?> <?php if ($success): ?> <div class="alert alert-success"><?php echo htmlspecialchars($success); ?></div> <?php endif; ?> <div class="row"> <div class="col-12"> <div class="card"> <div class="card-body"> <?php if (count($ads) > 0): ?> <div class="table-responsive"> <table class="table table-striped"> <thead> <tr> <th>ID</th> <th>Title</th> <th>Reward (₨)</th> <th>Duration (sec)</th> <th>Status</th> <th>Actions</th> </tr> </thead> <tbody> <?php foreach ($ads as $ad): ?> <tr> <td><?php echo $ad['id']; ?></td> <td><?php echo htmlspecialchars($ad['title']); ?></td> <td><?php echo number_format($ad['reward'], 2); ?></td> <td><?php echo $ad['duration']; ?></td> <td> <?php if ($ad['status'] === 'active'): ?> <span class="badge bg-success">Active</span> <?php else: ?> <span class="badge bg-danger">Inactive</span> <?php endif; ?> </td> <td> <div class="btn-group" role="group"> <button type="button" class="btn btn-sm btn-outline-primary" data-bs-toggle="modal" data-bs-target="#editModal<?php echo $ad['id']; ?>">Edit</button> <button type="button" class="btn btn-sm btn-outline-danger" data-bs-toggle="modal" data-bs-target="#deleteModal<?php echo $ad['id']; ?>">Delete</button> </div> </td> </tr> <!-- Edit Modal --> <div class="modal fade" id="editModal<?php echo $ad['id']; ?>" tabindex="-1"> <div class="modal-dialog"> <div class="modal-content"> <form method="POST"> <div class="modal-header"> <h5 class="modal-title">Edit Ad</h5> <button type="button" class="btn-close" data-bs-dismiss="modal"></button> </div> <div class="modal-body"> <input type="hidden" name="ad_id" value="<?php echo $ad['id']; ?>"> <input type="hidden" name="action" value="update"> <div class="mb-3"> <label class="form-label">Ad Title</label> <input type="text" class="form-control" name="title" value="<?php echo htmlspecialchars($ad['title']); ?>" required> </div> <div class="mb-3"> <label class="form-label">Link/URL</label> <input type="url" class="form-control" name="link" value="<?php echo htmlspecialchars($ad['link']); ?>" required> </div> <div class="mb-3"> <label class="form-label">Description</label> <textarea class="form-control" name="description" rows="3" required><?php echo htmlspecialchars($ad['description']); ?></textarea> </div> <div class="mb-3"> <label class="form-label">Reward (₨)</label> <input type="number" class="form-control" name="reward" step="0.01" value="<?php echo $ad['reward']; ?>" required> </div> <div class="mb-3"> <label class="form-label">Duration (seconds)</label> <input type="number" class="form-control" name="duration" value="<?php echo $ad['duration']; ?>" required> </div> <div class="mb-3"> <label class="form-label">Status</label> <select class="form-select" name="status"> <option value="active" <?php echo ($ad['status'] === 'active') ? 'selected' : ''; ?>>Active</option> <option value="inactive" <?php echo ($ad['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" class="btn btn-primary">Save Changes</button> </div> </form> </div> </div> </div> <!-- Delete Modal --> <div class="modal fade" id="deleteModal<?php echo $ad['id']; ?>" tabindex="-1"> <div class="modal-dialog"> <div class="modal-content"> <form method="POST"> <div class="modal-header"> <h5 class="modal-title">Delete Ad</h5> <button type="button" class="btn-close" data-bs-dismiss="modal"></button> </div> <div class="modal-body"> <input type="hidden" name="ad_id" value="<?php echo $ad['id']; ?>"> <input type="hidden" name="action" value="delete"> <p>Are you sure you want to delete the ad "<?php echo htmlspecialchars($ad['title']); ?>"?</p> </div> <div class="modal-footer"> <button type="button" class="btn btn-secondary" data-bs-dismiss="modal">Cancel</button> <button type="submit" class="btn btn-danger">Delete Ad</button> </div> </form> </div> </div> </div> <?php endforeach; ?> </tbody> </table> </div> <?php else: ?> <p>No ads found.</p> <?php endif; ?> </div> </div> </div> </div> <!-- Create Modal --> <div class="modal fade" id="createModal" tabindex="-1"> <div class="modal-dialog"> <div class="modal-content"> <form method="POST"> <div class="modal-header"> <h5 class="modal-title">Add New Ad</h5> <button type="button" class="btn-close" data-bs-dismiss="modal"></button> </div> <div class="modal-body"> <input type="hidden" name="action" value="create"> <div class="mb-3"> <label class="form-label">Ad Title</label> <input type="text" class="form-control" name="title" required> </div> <div class="mb-3"> <label class="form-label">Link/URL</label> <input type="url" class="form-control" name="link" required> </div> <div class="mb-3"> <label class="form-label">Description</label> <textarea class="form-control" name="description" rows="3" required></textarea> </div> <div class="mb-3"> <label class="form-label">Reward (₨)</label> <input type="number" class="form-control" name="reward" step="0.01" required> </div> <div class="mb-3"> <label class="form-label">Duration (seconds)</label> <input type="number" class="form-control" name="duration" required> </div> </div> <div class="modal-footer"> <button type="button" class="btn btn-secondary" data-bs-dismiss="modal">Close</button> <button type="submit" class="btn btn-primary">Add Ad</button> </div> </form> </div> </div> </div> <?php include 'footer.php'; ?>