🔍 Login Debug Information

1. PHP Environment Check

PHP Version: 8.1.33

Server Time: 2026-04-14 06:09:35

Current Working Directory: /home/xyz103ur/public_html/src

Script Path: /home/xyz103ur/public_html/src/login_debug.php

Document Root: /home/xyz103ur/public_html

2. File Path Check

Config file path: /home/xyz103ur/public_html/src/../config/config.php - ✅ EXISTS

Language file path: /home/xyz103ur/public_html/src/../lang/LanguageManager.php - ✅ EXISTS

Header file path: /home/xyz103ur/public_html/src/../templates/header.php - ✅ EXISTS

Footer file path: /home/xyz103ur/public_html/src/../templates/footer.php - ✅ EXISTS

3. Loading Dependencies

Starting session...

✅ Session started successfully

Loading config.php...

✅ Config loaded successfully

✅ PDO object is available

✅ Database connection test successful

Loading LanguageManager.php...

✅ LanguageManager loaded successfully

✅ Language function __ is available

✅ Language test: auth.login = "登入"

4. Request Information

Request Method: GET

POST Data: No POST data

5. Login Function Test

6. Login Form

Login Debug

Login (Debug Mode)


Test Accounts:
Admin: admin@example.com / password
Teacher: teacher1@example.com / password
Student: student1@example.com / password
🔧 Additional Debug Information
Session Data:
Array
(
)
Server Information:
Array
(
    [PHP_SELF] => /src/login_debug.php
    [SERVER_NAME] => 324261.xyz
    [REQUEST_URI] => /src/login_debug.php
    [HTTP_HOST] => 324261.xyz
    [HTTPS] => on
)
Loaded PHP Extensions:

Core, date, libxml, openssl, pcre, sqlite3, zlib, bz2, calendar, ctype, curl, hash, filter, ftp, gettext, json, iconv, SPL, pcntl, readline, Reflection, session, standard, mbstring, shmop, SimpleXML, tokenizer, xml, litespeed, igbinary, msgpack, redis, i360, bcmath, dom, gd, imap, exif, mysqlnd, mysqli, PDO, pdo_mysql, pdo_sqlite, Phar, posix, sockets, xmlreader, xmlwriter, xsl, zip, clos_ssa