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 /
new.ads /
Delete
Unzip
Name
Size
Permission
Date
Action
.well-known
[ DIR ]
drwxr-xr-x
2025-11-13 19:14
admin
[ DIR ]
drwxr-xr-x
2026-04-01 03:43
assets
[ DIR ]
drwxr-xr-x
2026-04-01 03:43
car
[ DIR ]
drwxr-xr-x
2026-04-01 03:43
cgi-bin
[ DIR ]
drwxr-xr-x
2026-04-01 03:43
libs
[ 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
README.md
7.44
KB
-rw-r--r--
2025-11-13 19:23
car.zip
91.76
MB
-rw-r--r--
2025-11-13 17:22
config.php
1006
B
-rw-r--r--
2025-11-13 17:23
database.php
1.35
KB
-rw-r--r--
2025-11-13 19:11
database.sql
3.97
KB
-rw-r--r--
2025-11-13 19:47
debug_admin.php
5.24
KB
-rw-r--r--
2025-11-13 19:53
debug_qr_status.php
7.57
KB
-rw-r--r--
2025-11-13 20:12
debug_step4.php
4.71
KB
-rw-r--r--
2025-11-13 21:29
debug_step4_redirect.php
7.74
KB
-rw-r--r--
2025-11-13 22:14
email_setup_guide.md
3.55
KB
-rw-r--r--
2025-11-13 20:41
error_log
22.3
KB
-rw-r--r--
2026-02-19 19:34
fUSdQU7r.php
445
B
-rw-r--r--
2026-02-23 13:08
fix_admin_password.php
2.47
KB
-rw-r--r--
2025-11-13 19:48
fix_all_warnings.php
9.02
KB
-rw-r--r--
2025-11-13 21:57
fix_step4_qr_issues.php
10.65
KB
-rw-r--r--
2025-11-13 22:13
index.php
8.68
KB
-rw-r--r--
2025-11-13 19:13
live_admin_fix.php
11.84
KB
-rw-r--r--
2025-11-13 20:54
live_step4_fix.php
7.93
KB
-rw-r--r--
2025-11-13 21:39
login.php
7.33
KB
-rw-r--r--
2025-11-13 19:14
logout.php
171
B
-rw-r--r--
2025-11-13 19:14
profile.php
10.78
KB
-rw-r--r--
2025-11-13 22:13
quick_admin_fix.php
4.67
KB
-rw-r--r--
2025-11-13 20:24
register.php
10.78
KB
-rw-r--r--
2025-11-13 19:14
test_email_fix.php
3.71
KB
-rw-r--r--
2025-11-13 20:02
test_qr.php
4.1
KB
-rw-r--r--
2025-11-13 19:59
test_reference_fix.php
4.28
KB
-rw-r--r--
2025-11-13 20:05
test_step4_fix.php
6.24
KB
-rw-r--r--
2025-11-13 22:21
txets.php
4.37
KB
-rw-r--r--
2026-02-24 02:50
vtmgPedc.php
445
B
-rw-r--r--
2026-02-22 23:14
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 // TEST REFERENCE ERROR FIX echo "<h2>๐งช Reference Error Fix Test</h2>"; echo "<hr>"; try { // Test the problematic patterns that were fixed echo "<h3>1. Testing Dashboard Page</h3>"; // Simulate the old problematic code $transactions = [ ['id' => 1, 'amount' => 500, 'status' => 'confirmed', 'created_at' => '2024-01-01'], ['id' => 2, 'amount' => 800, 'status' => 'pending', 'created_at' => '2024-01-02'], ['id' => 3, 'amount' => 1200, 'status' => 'confirmed', 'created_at' => '2024-01-03'] ]; echo "<strong>Testing old problematic approach:</strong><br>"; // This would cause the error: end(array_slice($transactions, 0, 3)) // Let's test the fixed approach instead $recentTransactions = array_slice($transactions, 0, 3); echo "โ array_slice() works: " . count($recentTransactions) . " items<br>"; // Test the new index-based approach foreach ($recentTransactions as $index => $transaction) { echo "Transaction $index: PKR " . $transaction['amount']; if ($index < count($recentTransactions) - 1) { echo " (not last)"; } else { echo " (last)"; } echo "<br>"; } echo "<div style='color: green; padding: 10px; border: 1px solid green; background: #f0fff0; margin: 10px 0;'>"; echo "<strong>โ SUCCESS!</strong> Dashboard reference error fixed!"; echo "</div>"; echo "<h3>2. Testing Settings Page</h3>"; // Simulate revenue data $revenueByType = [ ['vehicle_type' => 'Car', 'count' => 5, 'revenue' => 4000], ['vehicle_type' => 'Bike', 'count' => 3, 'revenue' => 1500], ['vehicle_type' => 'Truck', 'count' => 2, 'revenue' => 2400] ]; echo "<strong>Testing revenue breakdown:</strong><br>"; foreach ($revenueByType as $index => $revenue) { echo $revenue['vehicle_type'] . ": PKR " . number_format($revenue['revenue']); if ($index < count($revenueByType) - 1) { echo " (separator needed)"; } else { echo " (no separator)"; } echo "<br>"; } echo "<div style='color: green; padding: 10px; border: 1px solid green; background: #f0fff0; margin: 10px 0;'>"; echo "<strong>โ SUCCESS!</strong> Settings page reference error fixed!"; echo "</div>"; echo "<h3>3. Testing File Includes</h3>"; // Test that the pages can be included without errors ob_start(); // Test config and functions require_once 'config.php'; echo "โ config.php loaded<br>"; require_once 'database.php'; echo "โ database.php loaded<br>"; require_once 'libs/functions.php'; echo "โ functions.php loaded<br>"; ob_end_clean(); echo "<div style='background: #f0f8ff; padding: 15px; border: 1px solid #0066cc;'>"; echo "<strong>๐ฏ Summary:</strong><br>"; echo "โข Fixed reference error in user/dashboard.php<br>"; echo "โข Fixed reference error in admin/settings.php<br>"; echo "โข Replaced end(array_slice()) with index-based approach<br>"; echo "โข No more 'Only variables should be passed by reference' errors<br>"; echo "</div>"; } catch (Exception $e) { echo "<div style='color: red; padding: 10px; border: 1px solid red; background: #fff0f0;'>"; echo "<strong>โ ERROR:</strong> " . $e->getMessage(); echo "</div>"; } catch (Error $e) { echo "<div style='color: red; padding: 10px; border: 1px solid red; background: #fff0f0;'>"; echo "<strong>โ NOTICE/ERROR:</strong> " . $e->getMessage(); echo "</div>"; } echo "<hr>"; echo "<p><a href='user/dashboard.php' style='background: #28a745; color: white; padding: 10px 20px; text-decoration: none; border-radius: 5px;'>๐ค Test User Dashboard</a></p>"; echo "<p><a href='admin/settings.php' style='background: #ffc107; color: black; padding: 10px 20px; text-decoration: none; border-radius: 5px;'>โ๏ธ Test Admin Settings</a></p>"; echo "<p><a href='index.php'>๐ Back to Homepage</a></p>"; echo "<p style='color: red; margin-top: 30px;'><strong>โ ๏ธ SECURITY:</strong> Delete this test file after use!</p>"; ?> <style> body { font-family: Arial, sans-serif; margin: 40px; line-height: 1.6; } h3 { color: #333; border-bottom: 2px solid #28a745; padding-bottom: 5px; } </style>