<?php
// 🦉 Owl's INTEGRITY TEST: 檢查基礎架構是否健全

ini_set('display_errors', 1);
error_reporting(E_ALL);

echo "1. PHP Script Execution Started.<br>";

// 檢查檔案引入
require 'db.php';
echo "2. db.php Included Successfully.<br>";

// 檢查 Session 狀態
session_start();
echo "3. Session Started.<br>";

// 檢查資料庫連線
if (isset($pdo)) {
    echo "4. ✅ Database Connection Object (PDO) FOUND.<br>";
} else {
    echo "4. ❌ Database Connection Object (PDO) MISSING.<br>";
}

echo "--- INTEGRITY TEST COMPLETE ---";
?>