Add minimum client version check code
This commit is contained in:
parent
b6fed9d17b
commit
5aa60659bd
12
minclientversion.php
Normal file
12
minclientversion.php
Normal file
@ -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]);
|
@ -16,6 +16,8 @@ define("PDB_USER", "");
|
|||||||
define("PDB_PASS", "");
|
define("PDB_PASS", "");
|
||||||
define("PDB_CHARSET", "latin1");
|
define("PDB_CHARSET", "latin1");
|
||||||
|
|
||||||
|
define("MIN_CLIENT_VERSION", "1.5.2");
|
||||||
|
|
||||||
define("GEOCACHE_KEY", "");
|
define("GEOCACHE_KEY", "");
|
||||||
define("MUNZEE_KEY", "");
|
define("MUNZEE_KEY", "");
|
||||||
define("MUNZEE_SECRET", "");
|
define("MUNZEE_SECRET", "");
|
||||||
|
Reference in New Issue
Block a user