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 /
deployment_package /
Delete
Unzip
Name
Size
Permission
Date
Action
admin
[ DIR ]
drwxr-xr-x
2025-10-18 01:48
assets
[ DIR ]
drwxr-xr-x
2025-10-18 01:48
db
[ DIR ]
drwxr-xr-x
2025-10-18 01:48
includes
[ DIR ]
drwxr-xr-x
2025-10-18 01:48
uploads
[ DIR ]
drwxr-xr-x
2025-10-18 01:48
user
[ DIR ]
drwxr-xr-x
2025-10-18 01:48
DEPLOYMENT_INSTRUCTIONS.md
3.05
KB
-rw-r--r--
2025-10-18 01:48
FIX_DUPLICATE_COMMISSIONS.md
3.63
KB
-rw-r--r--
2025-10-18 00:32
FIX_USER_EDIT_ISSUE.md
6.15
KB
-rw-r--r--
2025-10-18 00:44
IMPROVEMENTS_SUMMARY.md
4.11
KB
-rw-r--r--
2025-10-18 00:40
README.txt
2.34
KB
-rw-r--r--
2025-10-17 23:08
README_DEPLOYMENT.txt
1.74
KB
-rw-r--r--
2025-10-18 01:49
README_REFERRAL_COMMISSIONS.md
4.02
KB
-rw-r--r--
2025-10-18 00:22
SQL_CHANGES_SUMMARY.md
2.02
KB
-rw-r--r--
2025-10-18 00:25
apply_database_fixes.php
5.17
KB
-rw-r--r--
2025-10-18 00:39
check_commission_levels.php
3.16
KB
-rw-r--r--
2025-10-18 00:53
check_database_structure.php
3.9
KB
-rw-r--r--
2025-10-18 00:55
check_duplicate_commissions.php
4.38
KB
-rw-r--r--
2025-10-18 00:32
check_referrals_table.php
2.28
KB
-rw-r--r--
2025-10-18 00:39
complete_setup.sql
5.34
KB
-rw-r--r--
2025-10-18 00:25
complete_setup_for_import.sql
5.36
KB
-rw-r--r--
2025-10-18 01:59
create_table_direct.php
3.44
KB
-rw-r--r--
2025-10-18 00:09
css_test.php
999
B
-rw-r--r--
2025-10-18 02:06
debug_referral_chain.php
6.88
KB
-rw-r--r--
2025-10-18 00:54
fix_duplicate_commissions.php
2.67
KB
-rw-r--r--
2025-10-18 00:31
fix_referral_commissions.sql
677
B
-rw-r--r--
2025-10-18 00:25
fix_referral_commissions_for_import.sql
705
B
-rw-r--r--
2025-10-18 01:59
index.php
25.74
KB
-rw-r--r--
2025-10-18 02:05
index_with_css_fix.php
25.82
KB
-rw-r--r--
2025-10-18 02:06
login.php
4.15
KB
-rw-r--r--
2025-10-18 02:05
logout.php
88
B
-rw-r--r--
2025-10-17 23:02
register.php
6.58
KB
-rw-r--r--
2025-10-18 02:05
run_setup.bat
714
B
-rw-r--r--
2025-10-18 00:23
setup_referral_commissions.php
2.73
KB
-rw-r--r--
2025-10-18 00:21
test.php
59
B
-rw-r--r--
2025-10-17 23:16
test_commission_application.php
6.93
KB
-rw-r--r--
2025-10-18 00:55
test_commission_display.php
3.26
KB
-rw-r--r--
2025-10-18 00:19
test_commission_fix.php
3.16
KB
-rw-r--r--
2025-10-18 00:39
test_mobile_menu.php
2.73
KB
-rw-r--r--
2025-10-18 01:24
test_referral.php
2.07
KB
-rw-r--r--
2025-10-17 23:55
update_referral_commissions.sql
682
B
-rw-r--r--
2025-10-18 00:25
update_referral_commissions_for_import.sql
710
B
-rw-r--r--
2025-10-18 01:59
update_referrals_table.sql
398
B
-rw-r--r--
2025-10-18 00:31
update_referrals_table_for_import.sql
426
B
-rw-r--r--
2025-10-18 01:59
verify_commissions.php
3.28
KB
-rw-r--r--
2025-10-18 00:20
verify_commissions_working.php
8.2
KB
-rw-r--r--
2025-10-18 00:56
Save
Rename
<?php session_start(); require_once 'includes/db.php'; require_once 'includes/auth.php'; // If user is already logged in, redirect to dashboard if (isset($_SESSION['user_id'])) { header('Location: user/dashboard.php'); exit(); } $error = ''; $success = ''; // Check for referral code in URL $referral_code = ''; if (isset($_GET['ref'])) { $referral_code = trim($_GET['ref']); } if ($_SERVER['REQUEST_METHOD'] === 'POST') { $fullname = trim($_POST['fullname']); $email = trim($_POST['email']); $phone = trim($_POST['phone']); $password = $_POST['password']; $confirm_password = $_POST['confirm_password']; $referral_code = trim($_POST['referral_code']); // Validation if (empty($fullname) || empty($email) || empty($phone) || empty($password) || empty($confirm_password)) { $error = 'Please fill in all fields.'; } elseif ($password !== $confirm_password) { $error = 'Passwords do not match.'; } elseif (strlen($password) < 6) { $error = 'Password must be at least 6 characters.'; } else { try { // Check if email already exists $stmt = $pdo->prepare("SELECT id FROM users WHERE email = ?"); $stmt->execute([$email]); if ($stmt->fetch()) { $error = 'Email already registered. Please use a different email.'; } else { // Generate unique referral code $user_referral_code = generateReferralCode(); // Check if referral code exists $referred_by = null; if (!empty($referral_code)) { $stmt = $pdo->prepare("SELECT id FROM users WHERE referral_code = ?"); $stmt->execute([$referral_code]); $referrer = $stmt->fetch(); if ($referrer) { $referred_by = $referrer['id']; } } // Hash password $hashed_password = password_hash($password, PASSWORD_DEFAULT); // Insert user $stmt = $pdo->prepare("INSERT INTO users (fullname, email, phone, password, referral_code, referred_by) VALUES (?, ?, ?, ?, ?, ?)"); $stmt->execute([$fullname, $email, $phone, $hashed_password, $user_referral_code, $referred_by]); $success = 'Registration successful! You can now login.'; } } catch (PDOException $e) { $error = 'Registration failed. Please try again.'; } } } ?> <!DOCTYPE html> <html lang="en"> <head> <meta charset="UTF-8"> <meta name="viewport" content="width=device-width, initial-scale=1.0"> <title>Register - Share & Earn</title> <link href="https://cdn.jsdelivr.net/npm/bootstrap@5.3.0-alpha1/dist/css/bootstrap.min.css" rel="stylesheet"> <link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.0.0/css/all.min.css"> <link rel="stylesheet" href="/assets/css/style.css?v=1.0"> </head> <body class="bg-light"> <div class="container"> <div class="row justify-content-center align-items-center min-vh-100"> <div class="col-md-6 col-lg-5"> <div class="card shadow"> <div class="card-body p-5"> <div class="text-center mb-4"> <h2><i class="fas fa-share-alt text-primary"></i> Share & Earn</h2> <p class="text-muted">Create your account</p> </div> <?php if ($error): ?> <div class="alert alert-danger"><?php echo htmlspecialchars($error); ?></div> <?php endif; ?> <?php if ($success): ?> <div class="alert alert-success"><?php echo htmlspecialchars($success); ?></div> <?php endif; ?> <form method="POST"> <div class="mb-3"> <label for="fullname" class="form-label">Full Name</label> <input type="text" class="form-control" id="fullname" name="fullname" required> </div> <div class="mb-3"> <label for="email" class="form-label">Email address</label> <input type="email" class="form-control" id="email" name="email" required> </div> <div class="mb-3"> <label for="phone" class="form-label">Phone Number</label> <input type="text" class="form-control" id="phone" name="phone" required> </div> <div class="mb-3"> <label for="password" class="form-label">Password</label> <input type="password" class="form-control" id="password" name="password" required> </div> <div class="mb-3"> <label for="confirm_password" class="form-label">Confirm Password</label> <input type="password" class="form-control" id="confirm_password" name="confirm_password" required> </div> <div class="mb-3"> <label for="referral_code" class="form-label">Referral Code (Optional)</label> <input type="text" class="form-control" id="referral_code" name="referral_code" value="<?php echo htmlspecialchars($referral_code); ?>"> </div> <button type="submit" class="btn btn-primary w-100">Register</button> </form> <div class="text-center mt-3"> <p>Already have an account? <a href="login.php">Login</a></p> <p><a href="index.php">Back to Home</a></p> </div> </div> </div> </div> </div> </div> <script src="https://cdn.jsdelivr.net/npm/bootstrap@5.3.0-alpha1/dist/js/bootstrap.bundle.min.js"></script> </body> </html>