You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
This repo is archived. You can view files and clone it, but cannot push or open issues/pull-requests.
Server-v1/minclientversion.php

13 lines
348 B
PHP

<?php
/*
* Give the minimum allowed game client version. The client should check on
* startup and not continue if its version is less than the given version.
*/
require 'settings.php';
header('Content-Type: application/json');
header("Access-Control-Allow-Origin: *");
echo json_encode(["status" => "OK", "version" => MIN_CLIENT_VERSION]);