mirror of
https://git.tt-rss.org/git/tt-rss.git
synced 2025-12-13 03:15:56 +00:00
implement getApiLevel
This commit is contained in:
@@ -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"];
|
||||
|
||||
Reference in New Issue
Block a user