This commit is contained in:
2026-02-28 18:53:26 +01:00
parent 9eb7740027
commit d28f171263
11 changed files with 30 additions and 22 deletions

View File

@@ -1,13 +1,13 @@
<?php
require "../../main.php";
require "../api.php";
$mcServ = new mcServ;
$api = new mcServApi;
if (!$mcServ->checkApiAuth()) {
if (!$api->checkAuth()) {
die('{"status":500, "error":"Unauthrized"}');
}
$db = $mcServ->getDB();
$db = $api->getDB();
$sql = "SELECT * FROM servers";
$stmt = $db->query($sql);