-
Notifications
You must be signed in to change notification settings - Fork 0
/
login.php
64 lines (48 loc) · 2.08 KB
/
login.php
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
<?php
session_start();
?>
<?php
include_once 'db/includes/header.php';
?>
<title>Log på - Nivelo</title>
</head>
<body>
<?php
include_once 'db/includes/nav.php';
?>
<section class="logScale">
<div style="padding: 25px;font-size: 1.5rem;">
<div class="title sysText" style="text-align: center;">Log på</div>
</div>
<div class="modal-bodyi">
<form class="form" action="db/includes/login.inc.php" method="post" style="background-color: var(--b);border: none;width: 450px;">
<!-- <label class="label" for="uid" style="color: #e7e7e7;font-size: 16px;font-weight: 200;">Brugernavn/email</label> -->
<input class="input3" type="text" name="uid" placeholder="Brugernavn / Email" style="margin-bottom:20px">
<!-- <label class="label" for="pwd" style="color: #e7e7e7;font-size: 16px;font-weight: 200;">Adgangskode</label> -->
<input class="input3" type="password" name="pwd" placeholder="Adgangskode" style="margin-bottom:20px">
<div class="" style="text-align:center;">
<button class="startclr" type="submit" name="submit" style="width: 100%;margin-bottom: 30px;">Log på</button>
</div>
</form>
<div style="text-align:center; font-size: 16px;font-weight: 300;color:white;opacity:0.25;font-size:16px"><a class="hv" href="/reset-password">Glemt adgangskode?</a></div>
</div>
<?php
if(isset($_GET["error"])) {
if($_GET["error"] == "emptyinput") {
echo "<p style='margin-top:35px;text-align:center'>Udfyld alle felter!</p>";
}
else if($_GET["error"] == "wronglogin") {
echo "<p style='margin-top:35px;text-align:center'>Forkert login!</p>";
}
}
if(isset($_GET["newpwd"])) {
if($_GET["newpwd"] == "passwordupdated") {
echo "<p style='margin-top:35px;text-align:center'>Din adgangskode er blevet ændret!</p>";
}
}
?>
</section>
<div id="preloader" class="loader"></div>
<?php
include_once 'db/includes/footer.php';
?>