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'; header('Content-Type: application/json'); if (!isLoggedIn()) { echo json_encode(['success' => false, 'message' => 'Please login first.']); exit; } $user_id = $_SESSION['user_id']; // Check Lucky Wheel status $isActive = getSetting('lucky_wheel_status', 'disabled') === 'enabled'; $activeDays = explode(',', getSetting('lucky_wheel_active_days', '')); $today = date('l'); $isDayActive = in_array($today, $activeDays); if (!$isActive) { echo json_encode(['success' => false, 'message' => 'Lucky Wheel is currently disabled.']); exit; } if (!$isDayActive) { echo json_encode(['success' => false, 'message' => 'Lucky Wheel is not available today.']); exit; } // 1. Check if user has available spins $user = getUserData($user_id); if ((int) $user['lucky_wheel_spins_left'] <= 0) { echo json_encode(['success' => false, 'message' => 'You have 0 spins left. Invite friends or buy plans to get more!']); exit; } // 2. Daily Limit (Optional: If you want to limit spins per day even if they have many) // For now, let's assume they can use all their available spins. // Get all prizes $prizes = $pdo->query("SELECT * FROM lucky_wheel_prizes")->fetchAll(); if (empty($prizes)) { echo json_encode(['success' => false, 'message' => 'No prizes configured.']); exit; } // Weighted random selection $totalWeight = 0; foreach ($prizes as $prize) { $totalWeight += $prize['probability']; } $rand = rand(1, $totalWeight); $currentWeight = 0; $selectedPrize = null; foreach ($prizes as $prize) { $currentWeight += $prize['probability']; if ($rand <= $currentWeight) { $selectedPrize = $prize; break; } } if (!$selectedPrize) { $selectedPrize = $prizes[0]; // Fallback } // Process Prize try { $pdo->beginTransaction(); // 1. Deduct 1 spin $stmt = $pdo->prepare("UPDATE users SET lucky_wheel_spins_left = lucky_wheel_spins_left - 1 WHERE id = ?"); $stmt->execute([$user_id]); // 2. Log the spin record $stmt = $pdo->prepare("INSERT INTO lucky_wheel_spins (user_id, prize_id, amount) VALUES (?, ?, ?)"); $stmt->execute([$user_id, $selectedPrize['id'], $selectedPrize['prize_amount']]); // 3. Update user balance/income if it's a cash prize if (!$selectedPrize['is_try_again'] && $selectedPrize['prize_amount'] > 0) { $stmt = $pdo->prepare("UPDATE users SET wallet_balance = wallet_balance + ?, total_income = total_income + ?, today_income = today_income + ? WHERE id = ?"); $stmt->execute([$selectedPrize['prize_amount'], $selectedPrize['prize_amount'], $selectedPrize['prize_amount'], $user_id]); } $pdo->commit(); echo json_encode([ 'success' => true, 'prize_id' => $selectedPrize['id'], 'prize_name' => $selectedPrize['prize_name'], 'prize_amount' => $selectedPrize['prize_amount'], 'is_try_again' => (bool) $selectedPrize['is_try_again'], 'spins_left' => (int) $user['lucky_wheel_spins_left'] - 1 ]); } catch (Exception $e) { if ($pdo->inTransaction()) $pdo->rollBack(); echo json_encode(['success' => false, 'message' => 'Transaction failed: ' . $e->getMessage()]); }