<?php
// Enable error reporting
error_reporting(E_ALL);
ini_set('display_errors', 1);

echo "Testing admin class loading...<br><br>";

// Test 1: Check if connectdb.php exists
echo "1. Checking connectdb.php: ";
if (file_exists('dashboard/admin/connectdb.php')) {
    echo "EXISTS<br>";
} else {
    echo "NOT FOUND<br>";
}

// Test 2: Try to include the admin class
echo "2. Attempting to load class.admin.php...<br>";
try {
    require_once 'dashboard/admin/class.admin.php';
    echo "SUCCESS - class.admin.php loaded<br>";
} catch (Exception $e) {
    echo "ERROR: " . $e->getMessage() . "<br>";
}

// Test 3: Check if USER class exists
echo "3. Checking USER class: ";
if (class_exists('USER')) {
    echo "EXISTS<br>";
} else {
    echo "NOT FOUND<br>";
}

echo "<br>Done!";
?>
