test
This commit is contained in:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user