Skip to content
Snippets Groups Projects
Commit 582f41e2 authored by Andrew Dolgov's avatar Andrew Dolgov
Browse files

implement getApiLevel

parent db16ae50
No related branches found
No related tags found
No related merge requests found
......@@ -7,6 +7,8 @@
require_once "../db-prefs.php";
require_once "../functions.php";
define('API_LEVEL', 1);
define('API_STATUS_OK', 0);
define('API_STATUS_ERR', 1);
......@@ -78,6 +80,11 @@
print api_wrap_reply(API_STATUS_OK, $seq, $rv);
break;
case "getApiLevel":
$rv = array("level" => API_LEVEL);
print api_wrap_reply(API_STATUS_OK, $seq, $rv);
break;
case "login":
$login = db_escape_string($_REQUEST["user"]);
$password = $_REQUEST["password"];
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment