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 /
admin.1 /
Delete
Unzip
Name
Size
Permission
Date
Action
ads.php
13.96
KB
-rw-r--r--
2025-10-17 23:08
auth.php
343
B
-rw-r--r--
2025-10-17 23:20
dashboard.php
8.71
KB
-rw-r--r--
2025-10-18 00:40
deposit_methods.php
12.36
KB
-rw-r--r--
2025-10-17 23:06
deposits.php
13.24
KB
-rw-r--r--
2025-10-18 00:56
dpin.php
6.16
KB
-rw-r--r--
2025-10-17 23:06
footer.php
565
B
-rw-r--r--
2025-10-17 23:05
header.php
13.06
KB
-rw-r--r--
2025-10-18 02:06
login.php
3.37
KB
-rw-r--r--
2025-10-17 23:09
login_as_user.php
1020
B
-rw-r--r--
2025-10-17 23:05
logout.php
88
B
-rw-r--r--
2025-10-17 23:08
plans.php
13.65
KB
-rw-r--r--
2025-10-17 23:06
referral_commissions.php
11.93
KB
-rw-r--r--
2025-10-18 00:13
team_commissions.php
6.66
KB
-rw-r--r--
2025-10-17 23:45
test_modals.php
4.44
KB
-rw-r--r--
2025-10-18 00:49
test_referral_commissions.php
2.87
KB
-rw-r--r--
2025-10-18 00:13
test_user_edit.php
4.96
KB
-rw-r--r--
2025-10-18 00:44
transactions.php
6.36
KB
-rw-r--r--
2025-10-17 23:08
users.php
13.55
KB
-rw-r--r--
2025-10-18 00:49
withdraw_methods.php
12.49
KB
-rw-r--r--
2025-10-17 23:08
withdraws.php
9.16
KB
-rw-r--r--
2025-10-17 23:39
Save
Rename
<?php require_once 'auth.php'; require_once '../includes/db.php'; // Check if admin is logged in requireAdminLogin(); echo "<h2>Test User Edit and Balance Update</h2>"; // Test user data $test_user_id = 1; // Assuming user ID 1 exists try { // Get current user data $stmt = $pdo->prepare("SELECT * FROM users WHERE id = ?"); $stmt->execute([$test_user_id]); $user = $stmt->fetch(); if ($user) { echo "<h3>Current User Data:</h3>"; echo "<p>ID: " . $user['id'] . "</p>"; echo "<p>Name: " . htmlspecialchars($user['fullname']) . "</p>"; echo "<p>Email: " . htmlspecialchars($user['email']) . "</p>"; echo "<p>Phone: " . htmlspecialchars($user['phone']) . "</p>"; echo "<p>Balance: ₨" . number_format($user['balance'], 2) . "</p>"; // Test updating user data echo "<h3>Testing User Update:</h3>"; $new_name = $user['fullname'] . " (Updated)"; $new_email = "updated_" . $user['email']; $new_phone = "03001234567"; $stmt = $pdo->prepare("UPDATE users SET fullname = ?, email = ?, phone = ? WHERE id = ?"); $result = $stmt->execute([$new_name, $new_email, $new_phone, $test_user_id]); if ($result) { echo "<p style='color: green;'>✓ User data updated successfully</p>"; // Revert changes $stmt = $pdo->prepare("UPDATE users SET fullname = ?, email = ?, phone = ? WHERE id = ?"); $stmt->execute([$user['fullname'], $user['email'], $user['phone'], $test_user_id]); echo "<p style='color: green;'>✓ User data reverted successfully</p>"; } else { echo "<p style='color: red;'>✗ Failed to update user data</p>"; } // Test balance update echo "<h3>Testing Balance Update:</h3>"; $original_balance = $user['balance']; $test_amount = 100.00; // Test adding balance $stmt = $pdo->prepare("UPDATE users SET balance = balance + ? WHERE id = ?"); $result = $stmt->execute([$test_amount, $test_user_id]); if ($result) { echo "<p style='color: green;'>✓ Balance added successfully</p>"; // Check new balance $stmt = $pdo->prepare("SELECT balance FROM users WHERE id = ?"); $stmt->execute([$test_user_id]); $updated_user = $stmt->fetch(); if ($updated_user['balance'] == ($original_balance + $test_amount)) { echo "<p style='color: green;'>✓ Balance verification successful</p>"; // Revert balance $stmt = $pdo->prepare("UPDATE users SET balance = ? WHERE id = ?"); $stmt->execute([$original_balance, $test_user_id]); echo "<p style='color: green;'>✓ Balance reverted successfully</p>"; } else { echo "<p style='color: red;'>✗ Balance verification failed</p>"; } } else { echo "<p style='color: red;'>✗ Failed to add balance</p>"; } // Test deducting balance if ($original_balance >= $test_amount) { $stmt = $pdo->prepare("UPDATE users SET balance = balance - ? WHERE id = ?"); $result = $stmt->execute([$test_amount, $test_user_id]); if ($result) { echo "<p style='color: green;'>✓ Balance deducted successfully</p>"; // Check new balance $stmt = $pdo->prepare("SELECT balance FROM users WHERE id = ?"); $stmt->execute([$test_user_id]); $updated_user = $stmt->fetch(); if ($updated_user['balance'] == ($original_balance - $test_amount)) { echo "<p style='color: green;'>✓ Deduction verification successful</p>"; } else { echo "<p style='color: red;'>✗ Deduction verification failed</p>"; } // Revert balance $stmt = $pdo->prepare("UPDATE users SET balance = ? WHERE id = ?"); $stmt->execute([$original_balance, $test_user_id]); echo "<p style='color: green;'>✓ Balance reverted successfully</p>"; } else { echo "<p style='color: red;'>✗ Failed to deduct balance</p>"; } } else { echo "<p style='color: orange;'>⚠ Insufficient balance for deduction test</p>"; } } else { echo "<p style='color: red;'>✗ User not found</p>"; } } catch (PDOException $e) { echo "<p style='color: red;'>Database error: " . $e->getMessage() . "</p>"; } echo "<hr>"; echo "<p><a href='users.php'>Go to Users Management</a> | <a href='dashboard.php'>Go to Admin Dashboard</a></p>"; ?>