<?php require __DIR__.'/lib.php';header('Content-Type: application/json');$f=cfg()['storage_file'];$d=dirname($f);echo json_encode(['ok'=>is_dir($d)&&is_writable($d),'version'=>cfg()['version'],'php'=>PHP_VERSION,'storage_writable'=>is_dir($d)&&is_writable($d),'state_exists'=>is_file($f)],JSON_PRETTY_PRINT);
