🔍 LINE SOS - System Diagnostic
1. PHP Information
PHP Version: 8.3.30
Server: Apache
2. Required Extensions
✅ pdo
✅ pdo_mysql
✅ curl
✅ session
✅ json
✅ mbstring
3. File Structure
✅ config/config.php (readable)
✅ includes/Database.php (readable)
✅ includes/User.php (readable)
✅ includes/Incident.php (readable)
✅ includes/Admin.php (readable)
✅ public/index.php (readable)
✅ admin/login.php (readable)
4. Config Test
✅ Config loaded successfully
DB_HOST: thsv23.hostatom.com
DB_NAME: pdoldca_line_sos
DB_USER: pdoldca_line_sos
LINE_CHANNEL_ID: 2009324371
LIFF_ID: 2009324371-UGBZwgou
5. Database Connection Test
✅ Database connected successfully!
Tables found (4):
- admins (1 rows)
- incident_status_history (4 rows)
- incidents (3 rows)
- users (2 rows)
6. Admin Account Check
✅ Found 1 admin(s):
- admin (ผู้ดูแลระบบ) - Role: superadmin - Active
7. Session Test
✅ Session started
Session ID: jfvsosegk5m1p8kq2o71o7vom6
8. Write Permission Test
✅ Write permission OK
9. PHP Settings
upload_max_filesize: 128M
post_max_size: 128M
memory_limit: 256M
max_execution_time: 300
display_errors: 1
10. Quick Links
Admin Login
User Report Page (LIFF)
My Incidents
✅ Diagnostic Complete!
ถ้าทุกอย่างเป็น ✅ ระบบควรทำงานได้ปกติ
⚠️ สำคัญ: ลบไฟล์นี้ออกเมื่อแก้ไขเสร็จแล้ว!