From cfefd6c92894f06a52b3092e1f8fb544c02a9dd8 Mon Sep 17 00:00:00 2001 From: hacker_marc Date: Sat, 14 Mar 2026 13:50:54 +0100 Subject: [PATCH] Add nodes --- api/nodes/list.php | 9 ++ api/setup/setup.php | 10 ++ front/panel/create_server.html | 3 +- mcServ.db | Bin 32768 -> 45056 bytes tailadmin/src/create_server.html | 191 +------------------------------ tmp/user_sessions/marc.json | 2 +- 6 files changed, 27 insertions(+), 188 deletions(-) create mode 100644 api/nodes/list.php diff --git a/api/nodes/list.php b/api/nodes/list.php new file mode 100644 index 0000000..79e69f3 --- /dev/null +++ b/api/nodes/list.php @@ -0,0 +1,9 @@ +checkAuth()) { + die('{"status":500, "error":"Unauthorized"}'); +} + diff --git a/api/setup/setup.php b/api/setup/setup.php index e877400..e608d37 100755 --- a/api/setup/setup.php +++ b/api/setup/setup.php @@ -53,6 +53,16 @@ CREATE TABLE IF NOT EXISTS api_keys ( $db->exec($sql); +$sql = " +CREATE TABLE IF NOT EXISTS nodes ( + id INTEGER PRIMARY KEY AUTOINCREMENT, + name VARCHAR(50) UNIQUE NOT NULL, + endpoint VARCHAR(200) UNIQUE NOT NULL +) +"; + +$db->exec($sql); + $sql = " INSERT INTO users (username, mail, passwd) VALUES (:user, :mail, :passwd) "; diff --git a/front/panel/create_server.html b/front/panel/create_server.html index a5aa3e4..5188031 100644 --- a/front/panel/create_server.html +++ b/front/panel/create_server.html @@ -2141,5 +2141,6 @@ }) .catch(error => console.log("API Error: " + error)) - + + \ No newline at end of file diff --git a/mcServ.db b/mcServ.db index bf8bd0fb82427fa0e699e9cd3ec9b68494666f5c..7bd142682a39dce1cc0e279b352811eea4820c48 100644 GIT binary patch delta 380 zcmZo@U}|{4G(lRBoq>UY8;D_mWulI;B0Ga#RUt3`4+btCLk50n{mi#u@f0)5EHe}#en3Q+zOznK;z3xm9SNNRD3f*;U@86_nJ#a8kNJI`iA-pfiHO#Cky_`mVL+$^YYmw)q1dvON<{`(c% diff --git a/tailadmin/src/create_server.html b/tailadmin/src/create_server.html index 30d0b03..b310b2f 100644 --- a/tailadmin/src/create_server.html +++ b/tailadmin/src/create_server.html @@ -83,7 +83,7 @@
- - -
- -
- - - - - - - - - - -
-
- - -
- - -
- - - - - - -
-
- - -
- -
- - - - - - -
-
- - -
- - -
- - - - - - - - -
-
@@ -304,7 +134,7 @@

- Select Inputs + Accessibility

- Select Input + Select Node
- -