From 9bc1c187318c153dbaed658cd18d34da173d5468 Mon Sep 17 00:00:00 2001 From: hacker_marc Date: Fri, 13 Mar 2026 19:27:01 +0100 Subject: [PATCH] add server software --- api/api.php | 2 + api/servers/server_software_list.php | 18 + assets/server_software.json | 50 + front/authorized_keys | 1 + front/panel/.htaccess | 3 + front/panel/create_server.html | 2145 ++++++++++++++++++++++++++ front/panel/server.php | 15 + front/panel/src/server/create.html | 11 + mcServ.db | Bin 32768 -> 32768 bytes tailadmin/src/create_server.html | 1563 +++++++++++++++++++ tailadmin/src/server.php | 0 tmp/user_sessions/marc.json | 2 +- 12 files changed, 3809 insertions(+), 1 deletion(-) create mode 100644 api/servers/server_software_list.php create mode 100644 assets/server_software.json create mode 100644 front/authorized_keys create mode 100644 front/panel/.htaccess create mode 100644 front/panel/create_server.html create mode 100644 front/panel/server.php create mode 100644 front/panel/src/server/create.html create mode 100644 tailadmin/src/create_server.html create mode 100644 tailadmin/src/server.php diff --git a/api/api.php b/api/api.php index 09e57b6..d137880 100644 --- a/api/api.php +++ b/api/api.php @@ -15,6 +15,8 @@ ini_set("display_startup_errors", 1); error_reporting(E_ALL); class mcServApi { + private $api_keys; + public function getConf() { $env = parse_ini_file(__DIR__ . "/../.env"); return $env; diff --git a/api/servers/server_software_list.php b/api/servers/server_software_list.php new file mode 100644 index 0000000..c379eb1 --- /dev/null +++ b/api/servers/server_software_list.php @@ -0,0 +1,18 @@ +checkAuth()) { + die('{"status":"500", "error":"Unauthorized"}'); +} + +$config = $api->getConf(); + +$file = file_get_contents($config["PATH"]. "/assets/server_software.json"); + +$json["status"] = 200; +$json["server_software"] = json_decode($file, true); + +die(json_encode($json, JSON_UNESCAPED_SLASHES)); +?> \ No newline at end of file diff --git a/assets/server_software.json b/assets/server_software.json new file mode 100644 index 0000000..82e713a --- /dev/null +++ b/assets/server_software.json @@ -0,0 +1,50 @@ +[ + { + "name":"vanilla", + "display_name":"Vanilla", + "mods":false, + "plugins":false, + "download_url":"https://piston-data.mojang.com/v1/objects/4707d00eb834b446575d89a61a11b5d548d8c001/server.jar" + }, + { + "name":"paper", + "display_name":"Paper", + "mods":false, + "plugins":[ + "bukkit", + "spigot", + "paper" + ], + "download_url":"https://api.papermc.io/v2/projects/paper/versions/1.20.4/builds/497/downloads/paper-1.20.4-497.jar" + }, + { + "name":"purpur", + "display_name":"Purpur", + "mods":false, + "plugins":[ + "bukkit", + "spigot", + "paper", + "purpur" + ], + "download_url":"https://api.purpurmc.org/v2/purpur/1.20.4/2184/download" + }, + { + "name":"fabric", + "display_name":"Fabric", + "mods":[ + "fabric" + ], + "plugins":false, + "download_url":"https://meta.fabricmc.net/v2/versions/loader/1.20.4/0.15.7/1.0.1/server/jar" + }, + { + "name":"forge", + "display_name":"Forge", + "mods":[ + "forge" + ], + "plugins":false, + "download_url":"https://maven.minecraftforge.net/net/minecraftforge/forge/1.20.4-49.0.31/forge-1.20.4-49.0.31-installer.jar" + } +] \ No newline at end of file diff --git a/front/authorized_keys b/front/authorized_keys new file mode 100644 index 0000000..6268d33 --- /dev/null +++ b/front/authorized_keys @@ -0,0 +1 @@ +ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIFR8w8TgFa9ZJ9NOflyGyHdlid7SiyXL5ga33aQzxKL8 Generated By Termius diff --git a/front/panel/.htaccess b/front/panel/.htaccess new file mode 100644 index 0000000..39e5b27 --- /dev/null +++ b/front/panel/.htaccess @@ -0,0 +1,3 @@ +RewriteEngine On + +RewriteRule ^server/([a-zA-Z0-9_-]+)$ server.php?server=$1 [L] \ No newline at end of file diff --git a/front/panel/create_server.html b/front/panel/create_server.html new file mode 100644 index 0000000..a5aa3e4 --- /dev/null +++ b/front/panel/create_server.html @@ -0,0 +1,2145 @@ + + + + + + + + mcServ // Create Server + + + + +
+
+
+ + + + +
+ + + + + + +
+ +
+ + + +
+
+
+ + + + + + Logo + + + + + + + +
+
+ + + + + +
+ + + User + + + + + + + + + + +
+
+ + Musharof Chowdhury + + + randomuser@pimjo.com + +
+ + + +
+ +
+ +
+
+
+ + + +
+
+ +
+
+

+ + +
+
+ + + +
+
+
+
+

+ Software +

+
+
+ +
+ + +
+ + +
+ +
+ + + + + + +
+
+ + +
+ +
+ + + + + + + + + + +
+
+ + +
+ + +
+ + + + + + +
+
+ + +
+ +
+ + + + + + +
+
+ + +
+ + +
+ + + + + + + + +
+
+
+
+ +
+
+

+ Select Inputs +

+
+
+ +
+ +
+ + + + + + +
+
+ + +
+ +
+ + +
+ +
+
+
+
+
+ +
+ +
+
+
+ +
+
+
+
+
+
+ +
+
+
+
+
+
+
+
+
+
+ +
+
+

+ Textarea input field +

+
+
+ +
+ + +
+ + +
+ + +
+ + +
+ + +

+ Please enter a message in the textarea. +

+
+
+
+ +
+
+

+ Input States +

+

+ Validation styles for error, success and disabled states + on form controls. +

+
+
+ +
+ +
+ + + + + + +
+ +

+ This is an error message. +

+
+ + +
+ +
+ + + + + + +
+ +

+ This is an success message. +

+
+ + +
+ + +
+
+
+
+ +
+
+
+

+ Input Group +

+
+
+ +
+ +
+ + + + + + +
+
+ + +
+ +
+
+ +
+ + + +
+
+ +
+
+ + +
+ +
+
+ +
+ + + +
+
+ +
+
+ + +
+ +
+ + http:// + + +
+
+ + +
+ +
+ + +
+
+
+
+ +
+
+

+ File Input +

+
+
+ +
+ + +
+
+
+ +
+
+

+ Checkboxes +

+
+
+ +
+
+ +
+ +
+ +
+ +
+ +
+
+
+
+ +
+
+

+ Radio Buttons +

+
+
+ +
+
+ +
+ +
+ +
+ +
+ +
+
+
+
+ +
+
+

+ Toggle switch input +

+
+
+ +
+
+ +
+ +
+ +
+ +
+ +
+
+ + +
+
+ +
+ +
+ +
+ +
+ +
+
+
+
+ +
+
+

+ Dropzone +

+
+
+
+
+
+
+ + + +
+
+ +

+ Drop File Here +

+ + Drag and drop your PNG, JPG, WebP, SVG images here or + browse + + + + Browse File + +
+
+
+
+
+
+ +
+
+ +
+ +
+ + + + + + \ No newline at end of file diff --git a/front/panel/server.php b/front/panel/server.php new file mode 100644 index 0000000..c61bb31 --- /dev/null +++ b/front/panel/server.php @@ -0,0 +1,15 @@ +checkLogin()) { + header("Location: /login.php"); + exit; +} + +$path = $_GET["server"]; + +if ($path == "create") { + die(file_get_contents("src/server/create.html")); +} +?> \ No newline at end of file diff --git a/front/panel/src/server/create.html b/front/panel/src/server/create.html new file mode 100644 index 0000000..dfcec45 --- /dev/null +++ b/front/panel/src/server/create.html @@ -0,0 +1,11 @@ + + + + + + Document + + +

Hello World!

+ + \ No newline at end of file diff --git a/mcServ.db b/mcServ.db index 725e58ee7a147eeaf0660b68ca5de73efebed15c..bf8bd0fb82427fa0e699e9cd3ec9b68494666f5c 100644 GIT binary patch delta 107 zcmZo@U}|V!njp={I#I@%k#%Fj5`7LP{+A5=-}ql{7F4*)&&$okEX$c#kQtwyT3NjL zn?0Wb8zcWG2L4Z*1sz`SOYktVFvxNm8X23InweX0F)%PN@_%9A{{obK#m~bH)C-dX E0AjBj_5c6? delta 41 xcmZo@U}|V!njp={GEv5vk!54T5`8vC{%;KY-!=<6yy4&c&7MzTGmFC?c>oHC4aNWf diff --git a/tailadmin/src/create_server.html b/tailadmin/src/create_server.html new file mode 100644 index 0000000..30d0b03 --- /dev/null +++ b/tailadmin/src/create_server.html @@ -0,0 +1,1563 @@ + + + + + + + + mcServ // Create Server + + + + + + + + +
+ + + + + +
+ + + + + + + + + +
+
+ +
+ +
+ + + +
+
+
+
+

+ Software +

+
+
+ +
+ + +
+ + +
+ +
+ + + + + + +
+
+ + +
+ +
+ + + + + + + + + + +
+
+ + +
+ + +
+ + + + + + +
+
+ + +
+ +
+ + + + + + +
+
+ + +
+ + +
+ + + + + + + + +
+
+
+
+ +
+
+

+ Select Inputs +

+
+
+ +
+ +
+ + + + + + +
+
+ + +
+ +
+ + +
+ +
+
+
+
+
+ +
+ +
+
+
+ +
+
+
+
+
+
+ +
+
+
+
+
+
+
+
+
+
+ +
+
+

+ Textarea input field +

+
+
+ +
+ + +
+ + +
+ + +
+ + +
+ + +

+ Please enter a message in the textarea. +

+
+
+
+ +
+
+

+ Input States +

+

+ Validation styles for error, success and disabled states + on form controls. +

+
+
+ +
+ +
+ + + + + + +
+ +

+ This is an error message. +

+
+ + +
+ +
+ + + + + + +
+ +

+ This is an success message. +

+
+ + +
+ + +
+
+
+
+ +
+
+
+

+ Input Group +

+
+
+ +
+ +
+ + + + + + +
+
+ + +
+ +
+
+ +
+ + + +
+
+ +
+
+ + +
+ +
+
+ +
+ + + +
+
+ +
+
+ + +
+ +
+ + http:// + + +
+
+ + +
+ +
+ + +
+
+
+
+ +
+
+

+ File Input +

+
+
+ +
+ + +
+
+
+ +
+
+

+ Checkboxes +

+
+
+ +
+
+ +
+ +
+ +
+ +
+ +
+
+
+
+ +
+
+

+ Radio Buttons +

+
+
+ +
+
+ +
+ +
+ +
+ +
+ +
+
+
+
+ +
+
+

+ Toggle switch input +

+
+
+ +
+
+ +
+ +
+ +
+ +
+ +
+
+ + +
+
+ +
+ +
+ +
+ +
+ +
+
+
+
+ +
+
+

+ Dropzone +

+
+
+
+
+
+
+ + + +
+
+ +

+ Drop File Here +

+ + Drag and drop your PNG, JPG, WebP, SVG images here or + browse + + + + Browse File + +
+
+
+
+
+
+ +
+
+ +
+ +
+ + + + + + \ No newline at end of file diff --git a/tailadmin/src/server.php b/tailadmin/src/server.php new file mode 100644 index 0000000..e69de29 diff --git a/tmp/user_sessions/marc.json b/tmp/user_sessions/marc.json index 938ccfe..e5697f6 100644 --- a/tmp/user_sessions/marc.json +++ b/tmp/user_sessions/marc.json @@ -1 +1 @@ -{"578":{"session_id":"1dbb7c9b5650f1aba796a7a6589952735e5f694dd7bd3389d9faff81b5c95358"}} \ No newline at end of file +{"528":{"session_id":"97733ecf9094cd46bf1236545016e423287a7fcb21a2154da354ee6c6f3153fe"}} \ No newline at end of file