diff options
author | Andrew Dolgov <[email protected]> | 2021-02-19 13:44:56 +0300 |
---|---|---|
committer | Andrew Dolgov <[email protected]> | 2021-02-19 13:44:56 +0300 |
commit | 660a1bbe011fef5f0fa6bb0af43521fed7598cc7 (patch) | |
tree | f31ee123db91e479b93a6d086fd78de2ecfae014 /classes/rpc.php | |
parent | bb4e4282f46824308aebc2eaeac29fa29f8687ad (diff) |
* switch to xhr.post() almost everywhere
* call App.handlerpcjson() automatically on json request (if possible)
* show net/log indicators in prefs
Diffstat (limited to 'classes/rpc.php')
-rwxr-xr-x | classes/rpc.php | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/classes/rpc.php b/classes/rpc.php index 0fd06da4d..c4a1887c7 100755 --- a/classes/rpc.php +++ b/classes/rpc.php @@ -64,6 +64,14 @@ class RPC extends Handler_Protected { print json_encode(array("message" => "UPDATE_COUNTERS")); } + function getRuntimeInfo() { + $reply = [ + 'runtime-info' => $this->make_runtime_info() + ]; + + print json_encode($reply); + } + function getAllCounters() { @$seq = (int) $_REQUEST['seq']; |