<?php
header('Content-Type: application/json');
$config1 = __DIR__ . '/../../config.php';
$config2 = __DIR__ . '/../config.php';
echo json_encode([
    'dir' => __DIR__,
    'config_2up' => ['path' => $config1, 'exists' => file_exists($config1)],
    'config_1up' => ['path' => $config2, 'exists' => file_exists($config2)],
]);
