triggers a call here; only a matching token flips // Pro on. Replaces the old bare ?pro=1 trick, which anyone could type in. // // Returns {"ok": bool} require __DIR__ . '/secrets.local.php'; header('Content-Type: application/json'); $token = trim($_GET['token'] ?? $_POST['token'] ?? ''); $ok = $token !== '' && hash_equals(DEV_UNLOCK_TOKEN, $token); echo json_encode(['ok' => $ok]);