This commit is contained in:
admin committed 2026-02-28 18:53:26 +01:00
1 parent 9eb7740027
commit d28f171263
11 files changed
+30 -22

No files matched your search

+4 -4
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);