Add minimum client version check code
parent
b6fed9d17b
commit
5aa60659bd
@ -0,0 +1,12 @@
|
||||
<?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]);
|
Reference in New Issue