]>
Commit | Line | Data |
---|---|---|
56164221 VP |
1 | <?php |
2 | ||
3 | session_start(); | |
4 | if (!isset($_SESSION["id"])) | |
5 | die("{\"error\": \"Access denied\"}"); | |
6 | ||
7 | include "../common.php"; | |
c9eb82da BM |
8 | |
9 | // Close the session now, otherwise other pages block too long | |
10 | session_write_close(); | |
11 | ||
56164221 VP |
12 | include "../connection.php"; |
13 | ||
c9eb82da BM |
14 | header("Content-type: application/json"); |
15 | ||
9ac271b0 | 16 | $stats = $rpc->stats()->get(); |
05f01f6d | 17 | echo json_encode($stats); |