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