Release
This commit is contained in:
7
web/api/stats.php
Normal file
7
web/api/stats.php
Normal file
@@ -0,0 +1,7 @@
|
||||
<?php
|
||||
require __DIR__ . '/../lib/app.php'; auth_require();
|
||||
header('Content-Type: application/json');
|
||||
$path = "/var/lib/torpanel/stats.json";
|
||||
if (!file_exists($path)) { echo json_encode(["data"=>[]]); exit; }
|
||||
$raw = file_get_contents($path);
|
||||
echo $raw ?: json_encode(["data"=>[]]);
|
||||
Reference in New Issue
Block a user