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 /
user.2 /
Delete
Unzip
Name
Size
Permission
Date
Action
activate_dpin.php
7.76
KB
-rw-r--r--
2025-10-18 22:14
ads.php
11.49
KB
-rw-r--r--
2025-10-18 22:44
commission.php
7.01
KB
-rw-r--r--
2025-10-18 21:56
dashboard.php
17.28
KB
-rw-r--r--
2025-10-18 22:49
deposit.php
6.03
KB
-rw-r--r--
2025-10-18 21:45
deposit_history.php
4.26
KB
-rw-r--r--
2025-10-18 21:55
dpin.php
7.2
KB
-rw-r--r--
2025-10-18 22:26
dpin_history.php
5.91
KB
-rw-r--r--
2025-10-18 22:15
invite.php
6.44
KB
-rw-r--r--
2025-10-18 21:43
logout.php
91
B
-rw-r--r--
2025-10-18 21:42
notifications.php
3.73
KB
-rw-r--r--
2025-10-18 21:47
plans.php
10.34
KB
-rw-r--r--
2025-10-18 22:43
profile.php
6.69
KB
-rw-r--r--
2025-10-18 21:43
purchase_plan.php
4.99
KB
-rw-r--r--
2025-10-18 21:46
sidebar.php
5.16
KB
-rw-r--r--
2025-10-18 22:15
team.php
6.81
KB
-rw-r--r--
2025-10-18 21:47
transactions.php
4.37
KB
-rw-r--r--
2025-10-18 21:47
withdraw.php
7.92
KB
-rw-r--r--
2025-10-18 21:56
withdraw_history.php
7.74
KB
-rw-r--r--
2025-10-18 21:56
Save
Rename
<?php require_once '../includes/header.php'; // Get all active ads $stmt = $conn->prepare("SELECT * FROM ads WHERE status = 'active' ORDER BY id DESC"); $stmt->execute(); $ads_result = $stmt->get_result(); $ads = []; while ($row = $ads_result->fetch_assoc()) { $ads[] = $row; } // Get user's completed ads $completed_ads = []; $stmt = $conn->prepare("SELECT ad_id FROM ads_completed WHERE user_id = ?"); $stmt->bind_param("i", $_SESSION['user_id']); $stmt->execute(); $completed_result = $stmt->get_result(); while ($row = $completed_result->fetch_assoc()) { $completed_ads[] = $row['ad_id']; } ?> <div class="container-fluid"> <div class="row"> <!-- Sidebar --> <?php include 'sidebar.php'; ?> <!-- Main Content --> <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">Ads Management</h1> <div class="btn-toolbar mb-2 mb-md-0"> <!-- Mobile Menu --> <div class="mobile-menu-container"> <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="deposit.php"><i class="fas fa-money-bill-wave me-2"></i> Deposit</a> <a href="deposit_history.php"><i class="fas fa-history me-2"></i> Deposit History</a> <a href="dpin.php"><i class="fas fa-key me-2"></i> D.Pin Request</a> <a href="activate_dpin.php"><i class="fas fa-key me-2"></i> Activate D.Pin</a> <a href="dpin_history.php"><i class="fas fa-list me-2"></i> D.Pin History</a> <a href="withdraw.php"><i class="fas fa-money-check-alt me-2"></i> Withdraw</a> <a href="withdraw_history.php"><i class="fas fa-history me-2"></i> Withdraw History</a> <a href="ads.php"><i class="fas fa-ad me-2"></i> Ads Management</a> <a href="transactions.php"><i class="fas fa-exchange-alt me-2"></i> All Transactions</a> <a href="profile.php"><i class="fas fa-user me-2"></i> Profile</a> <a href="invite.php"><i class="fas fa-user-friends me-2"></i> User Invite</a> <a href="team.php"><i class="fas fa-users me-2"></i> Team Users</a> <a href="commission.php"><i class="fas fa-percentage me-2"></i> Referral Commission</a> <a href="plans.php"><i class="fas fa-box me-2"></i> Membership Plans</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> <div class="row"> <?php if (empty($ads)): ?> <div class="col-md-12"> <div class="card"> <div class="card-body text-center"> <i class="fas fa-ad fa-3x text-muted mb-3"></i> <h4>No Ads Available</h4> <p class="mb-0">Please check back later for new ads.</p> </div> </div> </div> <?php else: ?> <?php foreach ($ads as $ad): ?> <div class="col-md-6 mb-4"> <div class="card h-100"> <div class="card-header d-flex justify-content-between align-items-center"> <h5 class="mb-0"><?php echo htmlspecialchars($ad['title']); ?></h5> <?php if (in_array($ad['id'], $completed_ads)): ?> <span class="badge bg-success">Completed</span> <?php else: ?> <span class="badge bg-warning">Pending</span> <?php endif; ?> </div> <div class="card-body"> <p><?php echo htmlspecialchars($ad['description']); ?></p> <div class="d-flex justify-content-between"> <span><i class="fas fa-clock me-1"></i> <?php echo $ad['timer']; ?> seconds</span> <span><i class="fas fa-coins me-1"></i> <?php echo format_currency($ad['earning']); ?></span> </div> </div> <div class="card-footer"> <?php if (in_array($ad['id'], $completed_ads)): ?> <button class="btn btn-success w-100" disabled> <i class="fas fa-check me-1"></i>Already Watched </button> <?php else: ?> <button class="btn btn-primary w-100" data-bs-toggle="modal" data-bs-target="#adModal<?php echo $ad['id']; ?>"> <i class="fas fa-play-circle me-1"></i>Watch Ad </button> <?php endif; ?> </div> </div> </div> <!-- Ad Modal --> <div class="modal fade" id="adModal<?php echo $ad['id']; ?>" tabindex="-1" aria-labelledby="adModalLabel<?php echo $ad['id']; ?>" aria-hidden="true"> <div class="modal-dialog modal-lg"> <div class="modal-content"> <div class="modal-header"> <h5 class="modal-title" id="adModalLabel<?php echo $ad['id']; ?>"><?php echo htmlspecialchars($ad['title']); ?></h5> <button type="button" class="btn-close" data-bs-dismiss="modal" aria-label="Close"></button> </div> <div class="modal-body"> <div class="text-center mb-3"> <div class="timer mb-2"> <h3 id="timer<?php echo $ad['id']; ?>"><?php echo $ad['timer']; ?></h3> <p>Seconds Remaining</p> </div> <div class="video-container mb-3"> <!-- In a real implementation, this would be an actual video player --> <div class="bg-dark text-white p-5 rounded"> <i class="fas fa-play-circle fa-3x mb-3"></i> <p>Ad Video Player</p> <p class="text-muted">This is where the ad video would play</p> </div> </div> <p><?php echo htmlspecialchars($ad['description']); ?></p> </div> </div> <div class="modal-footer"> <button type="button" class="btn btn-secondary" data-bs-dismiss="modal">Close</button> <button type="button" class="btn btn-success" id="completeBtn<?php echo $ad['id']; ?>" disabled> <i class="fas fa-check me-1"></i>Complete & Earn <?php echo format_currency($ad['earning']); ?> </button> </div> </div> </div> </div> <?php endforeach; ?> <?php endif; ?> </div> </main> </div> </div> <script> // Timer functionality for ads document.addEventListener('DOMContentLoaded', function() { <?php foreach ($ads as $ad): ?> <?php if (!in_array($ad['id'], $completed_ads)): ?> const modal<?php echo $ad['id']; ?> = document.getElementById('adModal<?php echo $ad['id']; ?>'); const timer<?php echo $ad['id']; ?> = document.getElementById('timer<?php echo $ad['id']; ?>'); const completeBtn<?php echo $ad['id']; ?> = document.getElementById('completeBtn<?php echo $ad['id']; ?>'); modal<?php echo $ad['id']; ?>.addEventListener('shown.bs.modal', function () { let timeLeft<?php echo $ad['id']; ?> = <?php echo $ad['timer']; ?>; const timerInterval<?php echo $ad['id']; ?> = setInterval(function() { timeLeft<?php echo $ad['id']; ?>--; timer<?php echo $ad['id']; ?>.textContent = timeLeft<?php echo $ad['id']; ?>; if (timeLeft<?php echo $ad['id']; ?> <= 0) { clearInterval(timerInterval<?php echo $ad['id']; ?>); completeBtn<?php echo $ad['id']; ?>.disabled = false; completeBtn<?php echo $ad['id']; ?>.addEventListener('click', function() { // In a real implementation, this would send an AJAX request to mark the ad as completed alert('Ad completed! You earned <?php echo format_currency($ad['earning']); ?>'); location.reload(); }); } }, 1000); }); <?php endif; ?> <?php endforeach; ?> }); // Mobile Menu Toggle document.addEventListener('DOMContentLoaded', function() { const mobileMenuBtn = document.getElementById('mobileMenuBtn'); const mobileDropdownMenu = document.getElementById('mobileDropdownMenu'); if (mobileMenuBtn && mobileDropdownMenu) { mobileMenuBtn.addEventListener('click', function(e) { e.stopPropagation(); mobileDropdownMenu.classList.toggle('show'); }); // Close dropdown when clicking outside document.addEventListener('click', function(e) { if (!mobileMenuBtn.contains(e.target) && !mobileDropdownMenu.contains(e.target)) { mobileDropdownMenu.classList.remove('show'); } }); } }); </script> <?php require_once '../includes/footer.php'; ?> </body> </html>