<?php
// soca-osce-system/test.php
echo "<h1>Test File</h1>";
echo "Current directory: " . __DIR__ . "<br>";
echo "Script name: " . $_SERVER['PHP_SELF'] . "<br>";

// Cek apakah folder admin ada
$admin_path = __DIR__ . '/admin';
if (is_dir($admin_path)) {
    echo "Folder admin: ADA<br>";
    
    // List files di folder admin
    $files = scandir($admin_path);
    echo "Files in admin folder: " . implode(', ', $files) . "<br>";
} else {
    echo "Folder admin: TIDAK ADA<br>";
}

// Cek apakah file sync_penguji.php ada
$sync_file = $admin_path . '/sync_penguji.php';
if (file_exists($sync_file)) {
    echo "File sync_penguji.php: ADA<br>";
} else {
    echo "File sync_penguji.php: TIDAK ADA<br>";
}
?>