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 /
user /
Delete
Unzip
Name
Size
Permission
Date
Action
.htaccess
197
B
-r--r--r--
2026-04-01 03:43
ajax_spin_wheel.php
3.28
KB
-rw-r--r--
2026-01-26 16:59
announcements.php
3.18
KB
-rw-r--r--
2025-12-25 17:46
daily_targets.php
14.63
KB
-rw-r--r--
2025-12-26 15:26
dashboard.php
35.82
KB
-rw-r--r--
2026-01-07 16:12
dpin_manage.php
8.8
KB
-rw-r--r--
2025-12-29 11:57
dpin_request.php
10.85
KB
-rw-r--r--
2025-12-29 11:57
error_log
3.62
KB
-rw-r--r--
2025-12-29 11:07
footer.php
101
B
-rw-r--r--
2025-12-25 18:14
header.php
6.83
KB
-rw-r--r--
2026-01-26 17:33
history.php
25.06
KB
-rw-r--r--
2026-01-26 17:23
level_earning.php
18.53
KB
-rw-r--r--
2025-12-29 13:08
lucky_wheel.php
30.91
KB
-rw-r--r--
2026-01-26 17:01
my_plan.php
9.99
KB
-rw-r--r--
2025-12-29 11:04
plan_payment.php
19.84
KB
-rw-r--r--
2026-01-26 16:58
profile.php
9.06
KB
-rw-r--r--
2025-12-24 21:13
ranks.php
21.24
KB
-rw-r--r--
2025-12-27 08:48
referral.php
11.8
KB
-rw-r--r--
2025-12-24 21:26
support.php
10.32
KB
-rw-r--r--
2025-12-22 19:07
update_rank_popup.php
1.1
KB
-rw-r--r--
2025-12-27 08:47
watch_ad.php
6.68
KB
-rw-r--r--
2025-12-26 09:11
watch_ad_complete.php
4.34
KB
-rw-r--r--
2025-12-24 08:07
watch_ads.php
6.73
KB
-rw-r--r--
2025-12-24 08:08
withdraw.php
11.24
KB
-rw-r--r--
2025-12-24 22:35
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('USER_PANEL', true); require_once '../includes/config.php'; requireLogin(); $page_title = 'Daily Missions'; $userId = $_SESSION['user_id']; $user = getUserData($userId); // Set Midnight Reset Logic $today = date('Y-m-d'); $nextReset = date('Y-m-d 00:00:00', strtotime('+1 day')); $timeRemaining = strtotime($nextReset) - time(); // 1. Get Today's Verified Referrals (Midnight to Midnight) $stmt = $pdo->prepare(" SELECT COUNT(DISTINCT downline_id) FROM referral_commissions WHERE upline_id = ? AND level = 1 AND DATE(created_at) = CURDATE() "); $stmt->execute([$userId]); $todayVerified = $stmt->fetchColumn(); // 2. Get Pending Referrals in Rolling Window $stmt = $pdo->prepare(" SELECT COUNT(*) FROM referrals r WHERE r.referrer_id = ? AND DATE(r.created_at) = CURDATE() AND r.referred_id NOT IN ( SELECT downline_id FROM referral_commissions WHERE upline_id = ? AND level = 1 AND DATE(created_at) = CURDATE() ) "); $stmt->execute([$userId, $userId]); $todayPending = $stmt->fetchColumn(); // 3. Get Signups in Rolling Window $stmt = $pdo->prepare("SELECT COUNT(*) FROM referrals WHERE referrer_id = ? AND DATE(created_at) = CURDATE()"); $stmt->execute([$userId]); $todaySignups = $stmt->fetchColumn(); // 4. Handle Claim Reward Action if ($_SERVER['REQUEST_METHOD'] === 'POST' && isset($_POST['action']) && $_POST['action'] === 'claim_bonus') { $targetId = intval($_POST['target_id']); // Fetch target details $stmt = $pdo->prepare("SELECT * FROM daily_targets WHERE id = ? AND status = 'active'"); $stmt->execute([$targetId]); $target = $stmt->fetch(); // Get all targets to calculate cumulative threshold $stmt = $pdo->query("SELECT * FROM daily_targets WHERE status = 'active' ORDER BY id ASC"); $allTargets = $stmt->fetchAll(); $cumulativeNeeded = 0; $targetFound = false; foreach ($allTargets as $t) { $cumulativeNeeded += $t['required_referrals']; if ($t['id'] == $targetId) { $targetFound = true; break; } } if ($targetFound && $target) { // Check if already claimed TODAY $stmt = $pdo->prepare("SELECT id FROM user_daily_bonuses WHERE user_id = ? AND target_id = ? AND bonus_date = ?"); $stmt->execute([$userId, $targetId, $today]); $alreadyClaimed = $stmt->fetch(); if ($alreadyClaimed) { setError("Reward already claimed for today!"); } elseif ($todayVerified < $cumulativeNeeded) { setError("Target not reached yet. Keep promoting!"); } else { try { $pdo->beginTransaction(); // Record claim $stmt = $pdo->prepare("INSERT INTO user_daily_bonuses (user_id, target_id, bonus_date, bonus_amount, claimed_at) VALUES (?, ?, CURDATE(), ?, NOW())"); $stmt->execute([$userId, $targetId, $target['bonus_amount']]); // Add to balance $reward = (float) $target['bonus_amount']; $stmt = $pdo->prepare("UPDATE users SET wallet_balance = wallet_balance + ?, total_income = total_income + ?, today_income = today_income + ? WHERE id = ?"); $stmt->execute([$reward, $reward, $reward, $userId]); $pdo->commit(); setSuccess("Congratulations! You collected " . formatCurrency($reward) . " Mission Bonus!"); } catch (Exception $e) { $pdo->rollBack(); setError("Failed to claim reward. Please try again."); } } } else { setError("Invalid mission."); } header("Location: daily_targets.php"); exit; } // 5. Fetch Active Daily Targets $stmt = $pdo->query("SELECT * FROM daily_targets WHERE status = 'active' ORDER BY id ASC"); $allTargets = $stmt->fetchAll(); // 6. Fetch Already Claimed Bonuses Today $stmt = $pdo->prepare("SELECT target_id FROM user_daily_bonuses WHERE user_id = ? AND bonus_date = ?"); $stmt->execute([$userId, $today]); $claimedTargetIds = $stmt->fetchAll(PDO::FETCH_COLUMN); include 'header.php'; ?> <!-- Countdown Timer Script --> <script> function startTimer(duration, display) { var timer = duration, hours, minutes, seconds; setInterval(function () { hours = parseInt(timer / 3600, 10); minutes = parseInt((timer % 3600) / 60, 10); seconds = parseInt(timer % 60, 10); hours = hours < 10 ? "0" + hours : hours; minutes = minutes < 10 ? "0" + minutes : minutes; seconds = seconds < 10 ? "0" + seconds : seconds; display.textContent = hours + ":" + minutes + ":" + seconds; if (--timer < 0) { timer = 0; window.location.reload(); } }, 1000); } window.onload = function () { var remainingSeconds = <?php echo $timeRemaining; ?>; var display = document.querySelector('#reset-timer'); if (display) startTimer(remainingSeconds, display); }; </script> <div class="mission-page" style="padding: 15px;"> <!-- Today's Progress Card --> <div class="card" style="text-align: center;"> <div class="card-header"> <i class="fas fa-calendar-day"></i> Today's Referral Progress </div> <div class="card-body"> <div style="font-size: 40px; font-weight: 800; color: var(--primary-color);"> <?php echo $todayVerified; ?> </div> <div style="color: var(--text-secondary); text-transform: uppercase; font-size: 11px; letter-spacing: 1px;"> Verified Referrals Today </div> <div style="margin-top: 15px;"> <span style="background: rgba(255, 193, 7, 0.1); color: #ffc107; padding: 6px 12px; border-radius: 50px; font-size: 12px; font-weight: 600; border: 1px solid rgba(255, 193, 7, 0.2);"> <i class="far fa-clock"></i> Resets in: <span id="reset-timer" style="font-family: monospace; font-weight: 800;">--:--:--</span> </span> </div> <hr style="border: 0; border-top: 1px solid var(--border-color); margin: 15px 0;"> <div class="stats-mini-grid"> <div class="mini-stat"> <span class="val"><?php echo $todaySignups; ?></span> <span class="lab">Total Joined</span> </div> <div class="mini-stat warning"> <span class="val"><?php echo $todayPending; ?></span> <span class="lab">Pending Plan</span> </div> </div> </div> </div> <?php $success = getSuccess(); if ($success) echo '<div class="alert alert-success" style="margin-bottom: 20px;"><i class="fas fa-gift"></i> ' . htmlspecialchars($success) . '</div>'; $error = getError(); if ($error) echo '<div class="alert alert-danger" style="margin-bottom: 20px;"><i class="fas fa-exclamation-circle"></i> ' . htmlspecialchars($error) . '</div>'; ?> <div class="mission-list"> <?php if (empty($allTargets)): ?> <div class="card" style="text-align: center; padding: 40px;"> <p style="color: var(--text-secondary);">No daily missions available currently.</p> </div> <?php else: ?> <?php $cumulativeStart = 1; foreach ($allTargets as $target): $numNeeded = $target['required_referrals']; $taskEnd = $cumulativeStart + $numNeeded - 1; $isClaimed = in_array($target['id'], $claimedTargetIds); $currentInTask = 0; if ($todayVerified >= $cumulativeStart) { $currentInTask = min($numNeeded, $todayVerified - $cumulativeStart + 1); } $percent = ($currentInTask / $numNeeded) * 100; $isCompleted = ($todayVerified >= $taskEnd); ?> <div class="mission-card <?php echo $isClaimed ? 'achieved' : ''; ?>"> <div class="mission-header"> <div class="mission-title"> <i class="fas fa-users-cog"></i> <div> <span>Add <strong><?php echo $numNeeded; ?> Users</strong> and Get <strong><?php echo formatCurrency($target['bonus_amount']); ?></strong></span> <?php if ($isClaimed): ?> <div class="badge badge-success" style="display: block; width: fit-content; margin-top: 3px; font-size: 10px;">Claimed </div> <?php endif; ?> </div> </div> </div> <div class="custom-progress-container" style="margin: 20px 0;"> <div class="custom-progress-bg"> <div class="custom-progress-fill" style="width: <?php echo $percent; ?>%;"></div> <!-- Bubbles --> <?php for ($i = $cumulativeStart; $i <= $taskEnd; $i++): ?> <?php $indexInCard = $i - $cumulativeStart + 1; $pos = ($indexInCard / ($numNeeded + 1)) * 100; $isActive = ($todayVerified >= $i); $isPending = ($todayVerified + $todayPending >= $i); ?> <div class="checkpoint <?php echo $isActive ? 'active' : ($isPending ? 'pending' : ''); ?>" style="left: <?php echo $pos; ?>%;"> <?php echo $i; ?> </div> <?php endfor; ?> </div> </div> <?php if ($isCompleted && !$isClaimed): ?> <div style="display: flex; justify-content: center; margin-top: 15px;"> <form method="POST" action=""> <input type="hidden" name="action" value="claim_bonus"> <input type="hidden" name="target_id" value="<?php echo $target['id']; ?>"> <button type="submit" class="btn btn-primary" style="background: #28a745; border-color: #28a745; border-radius: 50px; padding: 8px 30px; font-weight: bold; display: flex; align-items: center; gap: 10px; animation: pulse-green 2s infinite;"> <i class="fas fa-coins"></i> Collect Reward </button> </form> </div> <?php endif; ?> </div> <?php $cumulativeStart = $taskEnd + 1; endforeach; ?> <?php endif; ?> </div> </div> <style> @keyframes pulse-green { 0% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(40, 167, 69, 0.7); } 70% { transform: scale(1); box-shadow: 0 0 0 10px rgba(40, 167, 69, 0); } 100% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(40, 167, 69, 0); } } .stats-mini-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 15px; } .mini-stat { padding: 10px; background: var(--dark-bg); border-radius: 12px; } .mini-stat .val { font-size: 20px; font-weight: 800; color: var(--text-primary); } .mini-stat .lab { font-size: 10px; color: var(--text-secondary); text-transform: uppercase; } .mini-stat.warning .val { color: var(--warning-color); } .mission-list { display: flex; flex-direction: column; gap: 20px; } .mission-card { background: var(--card-bg); border: 1px solid var(--border-color); border-radius: 16px; padding: 20px; box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2); } .mission-card.achieved { border-color: #28a745; background: rgba(40, 167, 69, 0.05); } .mission-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 25px; } .mission-title { display: flex; align-items: center; gap: 10px; color: var(--text-primary); font-size: 14px; } .mission-title i { color: var(--primary-color); font-size: 18px; } .mission-title strong { color: var(--primary-color); } .custom-progress-container { padding: 0 10px; margin-top: 10px; } .custom-progress-bg { height: 10px; background: var(--dark-bg); border-radius: 20px; position: relative; border: 1px solid var(--border-color); } .custom-progress-fill { height: 100%; background: linear-gradient(90deg, var(--primary-color), #81c784); border-radius: 20px; transition: width 0.8s ease; } .checkpoint { position: absolute; top: 50%; transform: translate(-50%, -50%); width: 22px; height: 22px; background: var(--card-bg); border: 2px solid var(--border-color); border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 11px; font-weight: bold; color: var(--text-secondary); z-index: 2; } .checkpoint.active { border-color: var(--primary-color); background: var(--primary-color); color: white; box-shadow: 0 0 10px rgba(var(--primary-rgb), 0.4); } .checkpoint.pending { border-color: var(--warning-color); background: rgba(var(--warning-color), 0.2); color: var(--warning-color); } </style> <?php include 'footer.php'; ?>