]>
jfr.im git - irc/unrealircd/unrealircd-webpanel.git/blob - api/overview.php
4 if (!isset($_SESSION["id"]))
5 die("{\"error\": \"Access denied\"}");
7 include "../common.php";
9 // Close the session now, otherwise other pages block too long
10 session_write_close();
12 include "../connection.php";
14 header("Content-type: application/json");
16 $stats = $rpc->query("stats.get", []);
17 echo json_encode($stats);