Add stucture
This commit is contained in:
21
front/index.php
Normal file
21
front/index.php
Normal file
@@ -0,0 +1,21 @@
|
|||||||
|
<?php
|
||||||
|
/*
|
||||||
|
_____ _____ _ _
|
||||||
|
/ ____| / ____| | | | |
|
||||||
|
_ __ ___ ___| (___ ___ _ ____ _| | ___ _ __ | |_ _ __ ___ | |
|
||||||
|
| '_ ` _ \ / __|\___ \ / _ \ '__\ \ / / | / _ \| '_ \| __| '__/ _ \| |
|
||||||
|
| | | | | | (__ ____) | __/ | \ V /| |___| (_) | | | | |_| | | (_) | |
|
||||||
|
|_| |_| |_|\___|_____/ \___|_| \_/ \_____\___/|_| |_|\__|_| \___/|_|
|
||||||
|
|
||||||
|
* By RootMarc
|
||||||
|
*/
|
||||||
|
|
||||||
|
|
||||||
|
require "main.php";
|
||||||
|
|
||||||
|
$mcServ = new mgServ();
|
||||||
|
|
||||||
|
if (!$mcServ->checkConf()) {
|
||||||
|
header("Location: /setup.html");
|
||||||
|
exit;
|
||||||
|
}
|
||||||
14
front/main.php
Normal file
14
front/main.php
Normal file
@@ -0,0 +1,14 @@
|
|||||||
|
<?php
|
||||||
|
|
||||||
|
class mcServ {
|
||||||
|
public function checkConf() {
|
||||||
|
if (!file_exists("../mgServ.db")) {
|
||||||
|
return false;
|
||||||
|
}
|
||||||
|
return true;
|
||||||
|
}
|
||||||
|
|
||||||
|
public function checkLogin() {
|
||||||
|
|
||||||
|
}
|
||||||
|
}
|
||||||
11
front/setup.html
Normal file
11
front/setup.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>mgServ // Setup</title>
|
||||||
|
</head>
|
||||||
|
<body>
|
||||||
|
<div class=""
|
||||||
|
</body>
|
||||||
|
</html>
|
||||||
Reference in New Issue
Block a user