Linux server292.web-hosting.com 4.18.0-513.18.1.lve.el8.x86_64 #1 SMP Thu Feb 22 12:55:50 UTC 2024 x86_64
LiteSpeed
: 162.0.235.5 | : 216.73.216.216
Cant Read [ /etc/named.conf ]
8.3.25
comfsblg
www.github.com/MadExploits
Terminal
AUTO ROOT
Adminer
Backdoor Destroyer
Linux Exploit
Lock Shell
Lock File
Create User
CREATE RDP
PHP Mailer
BACKCONNECT
UNLOCK SHELL
HASH IDENTIFIER
CPANEL RESET
CREATE WP USER
README
+ Create Folder
+ Create File
/
home /
comfsblg /
skills-api /
[ HOME SHELL ]
Name
Size
Permission
Action
.git
[ DIR ]
drwxr-xr-x
.well-known
[ DIR ]
drwxr-xr-x
app
[ DIR ]
drwxr-xr-x
bootstrap
[ DIR ]
drwxr-xr-x
cgi-bin
[ DIR ]
drwxr-xr-x
config
[ DIR ]
drwxr-xr-x
database
[ DIR ]
drwxr-xr-x
mobile-app
[ DIR ]
drwxr-xr-x
public
[ DIR ]
drwxr-xr-x
resources
[ DIR ]
drwxr-xr-x
routes
[ DIR ]
drwxr-xr-x
storage
[ DIR ]
drwxr-xr-x
tests
[ DIR ]
drwxr-xr-x
vendor
[ DIR ]
drwxr-xr-x
.DS_Store
8
KB
-rw-r--r--
.env
1.5
KB
-rw-r--r--
.gitattributes
66
B
-rw-r--r--
.gitignore
41
B
-rw-r--r--
.htaccess
386
B
-rw-r--r--
.mad-root
0
B
-rw-r--r--
8LEARNING_TRANSFORMATION_COMPL...
8.33
KB
-rw-r--r--
BACKEND_COMPLETION_SUMMARY.md
3.47
KB
-rw-r--r--
CHAT_REFACTORING_COMPLETION_RE...
5.99
KB
-rw-r--r--
COURSE_ADMIN_CONTROLLERS_SUMMA...
7.93
KB
-rw-r--r--
COURSE_MODULE_DUMMY_DATA_SUMMA...
6.27
KB
-rw-r--r--
EIGHT_LEARNING_API_TEST_RESULT...
6.92
KB
-rw-r--r--
ENHANCED_LEARNING_SYSTEM_PLAN....
9.62
KB
-rw-r--r--
README.md
31
B
-rw-r--r--
artisan
1.65
KB
-rw-r--r--
composer.json
2.22
KB
-rw-r--r--
composer.lock
395.26
KB
-rw-r--r--
debug_registration.php
0
B
-rw-r--r--
error_log
248
B
-rw-r--r--
generate_course_dummy_data.php
39.75
KB
-rw-r--r--
generate_course_dummy_data_bac...
39.75
KB
-rw-r--r--
generate_uganda_course_dummy_d...
15.63
KB
-rw-r--r--
hospital.sql
383.84
KB
-rw-r--r--
important-commands.txt
468
B
-rw-r--r--
loundry-app-stps.md
672
B
-rw-r--r--
package.json
473
B
-rw-r--r--
phpunit.xml
1.17
KB
-rw-r--r--
quick_auth_test.php
2
KB
-rw-r--r--
server.php
563
B
-rw-r--r--
test_all_api_endpoints.php
33.84
KB
-rw-r--r--
test_blog_api.php
4.24
KB
-rw-r--r--
test_camelcase_endpoint.php
1.08
KB
-rw-r--r--
test_chat_api.php
4.09
KB
-rw-r--r--
test_chat_system.php
3.99
KB
-rw-r--r--
test_company_update.php
1.25
KB
-rw-r--r--
test_contact_api.php
2.48
KB
-rw-r--r--
test_delete_account.php
0
B
-rw-r--r--
test_gdpr.php
2.63
KB
-rw-r--r--
test_gdpr_duplicate_request.ph...
2.58
KB
-rw-r--r--
test_learning_api.php
5.17
KB
-rw-r--r--
test_learning_api_complete.php
9.16
KB
-rw-r--r--
test_learning_endpoints.php
9.62
KB
-rw-r--r--
test_login.php
3.17
KB
-rw-r--r--
test_my_chats.php
2.04
KB
-rw-r--r--
test_registration.php
0
B
-rw-r--r--
test_send_message.php
2.57
KB
-rw-r--r--
update_uganda_courses.php
5.58
KB
-rw-r--r--
webpack.mix.js
559
B
-rw-r--r--
Delete
Unzip
Zip
${this.title}
Close
Code Editor : test_send_message.php
<?php // Test send-message endpoint directly echo "=== Testing Send Message API Endpoint ===\n\n"; require_once __DIR__ . '/vendor/autoload.php'; // Initialize Laravel Application $app = require_once __DIR__ . '/bootstrap/app.php'; $kernel = $app->make(Illuminate\Contracts\Console\Kernel::class); $kernel->bootstrap(); use App\Http\Controllers\Api\ChatController; use Illuminate\Http\Request; use App\Models\User; try { echo "1. Testing sendMessageLegacy endpoint with correct format...\n"; $controller = new ChatController(); $request = new Request([ 'sender_id' => 1, 'receiver_id' => 83, 'message' => 'Test message for format validation', 'message_type' => 'text' ]); $response = $controller->sendMessageLegacy($request); $responseContent = json_decode($response->getContent(), true); echo "Response status: " . $response->getStatusCode() . "\n"; echo "Response format check:\n"; if (isset($responseContent['code'])) { echo "✓ Uses 'code' field: " . $responseContent['code'] . "\n"; if ($responseContent['code'] == 1) { echo "✓ Success code is 1 (correct)\n"; if (isset($responseContent['message'])) { echo "✓ Has message field: " . $responseContent['message'] . "\n"; } else { echo "❌ Missing message field\n"; } if (isset($responseContent['data'])) { echo "✓ Has data field with message details\n"; $data = $responseContent['data']; echo " Message ID: " . ($data['id'] ?? 'missing') . "\n"; echo " Chat Head ID: " . ($data['chat_head_id'] ?? 'missing') . "\n"; echo " Message: " . ($data['message'] ?? 'missing') . "\n"; } else { echo "❌ Missing data field\n"; } } else { echo "❌ Error code: " . $responseContent['code'] . "\n"; echo "❌ Error message: " . ($responseContent['message'] ?? 'no message') . "\n"; } } else if (isset($responseContent['success'])) { echo "❌ Still using old 'success' field instead of 'code'\n"; } else { echo "❌ Response format is invalid\n"; } echo "\nFull response:\n"; echo json_encode($responseContent, JSON_PRETTY_PRINT) . "\n"; } catch (Exception $e) { echo "❌ Test failed with exception: " . $e->getMessage() . "\n"; echo "Stack trace: " . $e->getTraceAsString() . "\n"; } echo "\n=== Test Complete ===\n"; ?>
Close