-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.php
94 lines (94 loc) · 2.57 KB
/
index.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
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
<?php
require_once('verify_login.php');
require_once('functions/session.php');
if (isset($_SESSION['logged_in'])) {
header('Location: administrator.php');
die();
}
?>
<!doctype html>
<html>
<head>
<meta charset="utf-8" />
<title>LMM</title>
<link rel="icon" type="image/png" href="images/favicon.png" />
<style type="text/css">
body {
background-color: rgb(240, 250, 255);
font-family: sans-serif;
}
#logo {
width: 400px;
border: none;
}
td {
text-align: left;
}
input[type=text], input[type=password] {
width: 150px;
padding: 3px;
margin-left: 20px;
border: 1px solid rgb(190, 210, 220);
}
input[type=submit] {
width: 50px;
margin-top: 10px;
height: 25px;
background-color: #fff;
border: 1px solid rgb(190, 210, 220);
}
input[type=submit]:hover, input[type=submit]:active {
background-color: rgb(240, 250, 255);
color: inherit;
}
form {
margin-top: 20px;
}
#box {
width: 500px;
padding: 30px;
border: 1px solid rgb(190, 210, 220);
background-color: white;
margin: 50px auto 20px auto;
}
#footer {
margin: auto;
color: rgb(121, 155, 172);
text-align: center;
font-size: 90%;
line-height: 1.4em;
}
</style>
</head>
<body>
<div id="box">
<div style="text-align: center">
<img src="images/lmm.png" alt="lmm" id="logo" />
</div>
<form action="login.php" method="post">
<table>
<tr>
<td>Username</td>
<td><input type="text" name="username" /></td>
</tr>
<tr>
<td>Password</td>
<td><input type="password" name="password" /></td>
</tr>
<tr>
<td><input type="submit" name="submit" value="Login" /></td>
</tr>
</table>
</form>
</div>
<div id="footer">
System Revision 9 –
Last Updated March 23, 2019
<?php if ($demo_mode): ?>
<br />
<br />Demo mode credentials - <?= $demo_username ?> / <?= $demo_password ?>
<br />No changes will be saved
<? endif; ?>
</div>
</body>
</html>