add server software
This commit is contained in:
1
front/authorized_keys
Normal file
1
front/authorized_keys
Normal file
@@ -0,0 +1 @@
|
||||
ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIFR8w8TgFa9ZJ9NOflyGyHdlid7SiyXL5ga33aQzxKL8 Generated By Termius
|
||||
3
front/panel/.htaccess
Normal file
3
front/panel/.htaccess
Normal file
@@ -0,0 +1,3 @@
|
||||
RewriteEngine On
|
||||
|
||||
RewriteRule ^server/([a-zA-Z0-9_-]+)$ server.php?server=$1 [L]
|
||||
2145
front/panel/create_server.html
Normal file
2145
front/panel/create_server.html
Normal file
File diff suppressed because it is too large
Load Diff
15
front/panel/server.php
Normal file
15
front/panel/server.php
Normal file
@@ -0,0 +1,15 @@
|
||||
<?php
|
||||
require "../main.php";
|
||||
$mcServ = new mcServ();
|
||||
|
||||
if(!$mcServ->checkLogin()) {
|
||||
header("Location: /login.php");
|
||||
exit;
|
||||
}
|
||||
|
||||
$path = $_GET["server"];
|
||||
|
||||
if ($path == "create") {
|
||||
die(file_get_contents("src/server/create.html"));
|
||||
}
|
||||
?>
|
||||
11
front/panel/src/server/create.html
Normal file
11
front/panel/src/server/create.html
Normal file
@@ -0,0 +1,11 @@
|
||||
<!DOCTYPE html>
|
||||
<html lang="en">
|
||||
<head>
|
||||
<meta charset="UTF-8">
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
||||
<title>Document</title>
|
||||
</head>
|
||||
<body>
|
||||
<h1>Hello World!</h1>
|
||||
</body>
|
||||
</html>
|
||||
Reference in New Issue
Block a user