<?php
header('Content-Type: application/json; charset=utf-8');

$verFile = __DIR__ . '/../data/ver.txt';
$ver = '0';
if (file_exists($verFile)) {
    $ver = trim((string)file_get_contents($verFile));
}

if ($ver === '') $ver = '0';

echo json_encode(['ok', $ver], JSON_UNESCAPED_SLASHES | JSON_UNESCAPED_UNICODE);

