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 ob_start(); define('USER_PANEL', true); require_once '../includes/config.php'; requireLogin(); header('Content-Type: application/json'); $response = ['success' => false, 'message' => 'Unknown error']; try { if ($_SERVER['REQUEST_METHOD'] !== 'POST') { throw new Exception('Invalid request method'); } $adId = 0; // 1. Check Session Backup (Most reliable) if (isset($_SESSION['pending_ad_id'])) { $adId = intval($_SESSION['pending_ad_id']); } // 2. Fallback to Request (GET/POST) if session is empty if ($adId <= 0 && isset($_REQUEST['ad_id'])) { $adId = intval($_REQUEST['ad_id']); } // 3. Last fallback: Raw Input if ($adId <= 0) { $rawInput = file_get_contents('php://input'); if (!empty($rawInput)) { $data = json_decode($rawInput, true); if (isset($data['ad_id'])) { $adId = intval($data['ad_id']); } } } if ($adId <= 0) { throw new Exception('Invalid ad ID. Please refresh the page and try again.'); } // Clear the session backup now that we have the ID unset($_SESSION['pending_ad_id']); $userId = $_SESSION['user_id']; // Start transaction $pdo->beginTransaction(); // Verify ad exists and is active $stmt = $pdo->prepare("SELECT * FROM ads WHERE id = ? AND status = 'active'"); $stmt->execute([$adId]); $ad = $stmt->fetch(); if (!$ad) { throw new Exception("Ad not found or inactive"); } // Check if user has an active plan if (!hasActivePlan($userId)) { throw new Exception("You don't have an active plan"); } // Check if already watched today $stmt = $pdo->prepare("SELECT id FROM user_ads WHERE user_id = ? AND ad_id = ? AND watched_date = CURDATE()"); $stmt->execute([$userId, $adId]); if ($stmt->fetch()) { throw new Exception("You have already watched this ad today"); } // Check daily limit $todayWatched = getTodayWatchedAdsCount($userId); $dailyLimit = getUserDailyAdsLimit($userId); if ($todayWatched >= $dailyLimit) { throw new Exception("Daily ads limit reached"); } // Get user data $user = getUserData($userId); // Check if ads earning is active if (!$user['ads_earning_active']) { throw new Exception("Your ads earning is stopped. Please add referrals to continue."); } // Calculate earning $earning = calculateAdsEarning($userId); // Record ad watch $stmt = $pdo->prepare(" INSERT INTO user_ads (user_id, ad_id, earning, watched_date) VALUES (?, ?, ?, CURDATE()) "); $stmt->execute([$userId, $adId, $earning]); // Update user balance and income $stmt = $pdo->prepare(" UPDATE users SET wallet_balance = wallet_balance + ?, total_income = total_income + ?, today_income = today_income + ? WHERE id = ? "); $stmt->execute([$earning, $earning, $earning, $userId]); // Check referral requirement $requiredDays = (int) getSetting('referral_required_days', 7); $requiredReferrals = (int) getSetting('referral_required_count', 0); $daysSinceRegistration = (strtotime('now') - strtotime($user['created_at'])) / (60 * 60 * 24); // If user has passed required days without referrals, stop ads earning (only if requirement > 0) if ($requiredReferrals > 0 && $daysSinceRegistration >= $requiredDays && $user['referral_count'] < $requiredReferrals) { $stmt = $pdo->prepare(" UPDATE users SET ads_earning_active = 0, ads_earning_stopped_date = CURDATE() WHERE id = ? "); $stmt->execute([$userId]); } // Commit transaction if ($pdo->inTransaction()) { $pdo->commit(); } $response = [ 'success' => true, 'message' => 'Ad completed successfully', 'earning' => $earning, 'earning_formatted' => formatCurrency($earning) ]; } catch (Throwable $e) { if (isset($pdo) && $pdo->inTransaction()) { $pdo->rollBack(); } $response = [ 'success' => false, 'message' => $e->getMessage() ]; } ob_get_clean(); echo json_encode($response); exit;