false, 'error' => 'File not permitted']); exit; } $ok = vv_write_conf_raw($file, $content); echo json_encode(['ok' => $ok, 'error' => $ok ? null : 'Failed to write file']);