Add login
This commit is contained in:
@@ -10,7 +10,7 @@ body {
|
||||
.page-content {
|
||||
padding: 10px;
|
||||
width: 350px;
|
||||
height: 625px;
|
||||
height: 425px;
|
||||
text-align: center;
|
||||
box-shadow: 0 2px 100px rgba(0, 0, 0, 0.1), 0 8px 16px rgba(0, 0, 0, 0.1);
|
||||
border-radius: 30pt;
|
||||
@@ -46,6 +46,11 @@ h2 {
|
||||
font-size: 20pt;
|
||||
}
|
||||
|
||||
a {
|
||||
text-decoration: none;
|
||||
color: #000000;
|
||||
}
|
||||
|
||||
input {
|
||||
border: 1px solid #e0e0e0;
|
||||
width: 200px;
|
||||
@@ -59,7 +64,7 @@ input {
|
||||
|
||||
input:focus {
|
||||
backdrop-filter: blur(10px);
|
||||
-webkit-backdrop-filter: blur(10pxr);
|
||||
-webkit-backdrop-filter: blur(10px);
|
||||
outline: none;
|
||||
}
|
||||
|
||||
|
||||
@@ -63,7 +63,7 @@ input {
|
||||
|
||||
input:focus {
|
||||
backdrop-filter: blur(10px);
|
||||
-webkit-backdrop-filter: blur(10pxr);
|
||||
-webkit-backdrop-filter: blur(10px);
|
||||
outline: none;
|
||||
}
|
||||
|
||||
|
||||
@@ -25,4 +25,3 @@ if (!$mcServ->checkLogin()) {
|
||||
}else{
|
||||
echo "angemeldet";
|
||||
}
|
||||
?>
|
||||
@@ -1,3 +1,10 @@
|
||||
<?php
|
||||
if ($_SERVER["REQUEST_METHOD"] == "POST") {
|
||||
if (!isset($_POST["username"]) || !isset($_GET["passwd"])) {
|
||||
die("Username or Password are missing");
|
||||
}
|
||||
}
|
||||
?>
|
||||
<!DOCTYPE html>
|
||||
<html lang="en">
|
||||
<head>
|
||||
@@ -15,7 +22,7 @@
|
||||
<div class="content">
|
||||
<form action="/api/setup/setup.php" method="post">
|
||||
<div id="admin_user" class="page">
|
||||
<a href="/resetpasswd.php">Forget Passwort</a>
|
||||
<a href="/resetpasswd.php">Forget Passwort?</a>
|
||||
|
||||
<input type="text" name="username" placeholder="Username" id="user" required><br><br>
|
||||
<input type="password" name="passwd" placeholder="Password" id="passwd" required><br><br>
|
||||
|
||||
@@ -1,2 +1,4 @@
|
||||
<?php
|
||||
echo __DIR__;
|
||||
foreach ($_SERVER as $key => $value) {
|
||||
echo $key . " = " . $value . "<br>";
|
||||
}
|
||||
Reference in New Issue
Block a user