<?php
// Simple test to check if the direct deletion page loads correctly
echo "Testing direct class deletion page...\n";

// Check if the file exists
if (file_exists('admin/direct_class_deletion.php')) {
    echo "File exists\n";
    
    // Check syntax
    $output = shell_exec('php -l admin/direct_class_deletion.php');
    echo "Syntax check: " . trim($output) . "\n";
    
    // Try to read the file to make sure it's not corrupted
    $content = file_get_contents('admin/direct_class_deletion.php');
    if ($content !== false) {
        echo "File content readable\n";
        echo "File size: " . strlen($content) . " bytes\n";
    } else {
        echo "Error reading file content\n";
    }
    
    echo "Test completed successfully\n";
} else {
    echo "File does not exist\n";
}
?>