Add minimum client version check code

master
Skylar Ittner 8 years ago
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]);

@ -16,6 +16,8 @@ define("PDB_USER", "");
define("PDB_PASS", "");
define("PDB_CHARSET", "latin1");
define("MIN_CLIENT_VERSION", "1.5.2");
define("GEOCACHE_KEY", "");
define("MUNZEE_KEY", "");
define("MUNZEE_SECRET", "");