Continue Setup

This commit is contained in:
marc-go
2026-02-05 19:56:52 +01:00
parent 0a0cacac3b
commit d04d005b1b
10 changed files with 90 additions and 25 deletions

View File

@@ -4,7 +4,7 @@ body {
place-items: center;
height: 100vh;
overflow: hidden;
background-color: #fafafa;
background-image: url("/css/setup.png");
}
.page-content {
@@ -69,6 +69,7 @@ button {
place-items: center;
text-align: center;
border: none;
border-radius: 20pt;
transition: all 0.3s ease-in-out;
}

BIN
front/css/setup.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 2.7 MiB

View File

@@ -10,11 +10,15 @@
* By RootMarc
*/
require "main.php";
require "../main.php";
$mcServ = new mcServ();
if (!$mcServ->checkConf()) {
header("Location: /setup.html");
exit;
}
if (!$mcServ->checkLogin()) {
}

View File

@@ -1,14 +0,0 @@
<?php
class mcServ {
public function checkConf() {
if (!file_exists("../mgServ.db")) {
return false;
}
return true;
}
public function checkLogin() {
}
}

View File

@@ -3,7 +3,7 @@
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>mgServ // Setup</title>
<title>mcServ // Setup</title>
<link rel="stylesheet" type="text/css" href="css/setup.css">
</head>
<body>

2
front/test.php Normal file
View File

@@ -0,0 +1,2 @@
<?php
echo __DIR__;