<?php
header('Content-Type: application/json');
header('Access-Control-Allow-Origin: *');

echo json_encode([
    'php_version' => phpversion(),
    'action_param' => $_GET['action'] ?? 'NOT SET',
    'all_get_params' => $_GET,
    'file_location' => __FILE__,
    'current_directory' => getcwd(),
    'auto_crud_exists' => file_exists('auto-crud.php') ? 'YES' : 'NO',
    'db_exists' => file_exists('db.php') ? 'YES' : 'NO',
    'auth_exists' => file_exists('auth.php') ? 'YES' : 'NO'
], JSON_PRETTY_PRINT);
