-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathindex.html
68 lines (50 loc) · 2.22 KB
/
index.html
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
<?php
session_start();
if (!empty($_GET["error"])) {
$ec = $_GET["error"];
switch($ec) {
case 1:
$em = "Incorrect username or password.";
break;
case 2:
$em = "Edlightened's systems are currently experiencing an issue.";
break;
case 3:
$em = "Your account is suspended. Please notify your teacher immediately. ";
break;
}
}
if (!empty($_GET["lo"])) {
$lo = 1;
}
?>
<!DOCTYPE html>
<html lang="en"><head><meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1">
<!-- The above 3 meta tags *must* come first in the head; any other head content must come *after* these tags -->
<meta name="author" content="Emposoft">
<title>Login to Edlightened</title>
<!-- Bootstrap core CSS -->
<link href="./src/assets/css/bootstrap.min.css" rel="stylesheet" type="text/css">
<!-- Custom styles for this template -->
<link href="./src/assets/css/bootstrap-login.css" rel="stylesheet" type="text/css">
<!-- HTML5 shim and Respond.js for IE8 support of HTML5 elements and media queries -->
<!--[if lt IE 9]>
<script src="https://oss.maxcdn.com/html5shiv/3.7.2/html5shiv.min.js"></script>
<script src="https://oss.maxcdn.com/respond/1.4.2/respond.min.js"></script>
<![endif]-->
</head>
<body>
<div class="container">
<form class="form-signin" method="post" action="api/doLogin.php">
<h2 class="form-signin-heading">Please sign in</h2>
<label for="inputEmail" class="sr-only">Username</label>
<input type="username" id="inputEmail" class="form-control" placeholder="Username" required="" autofocus="" oldautocomplete="remove" autocomplete="off">
<label for="inputPassword" class="sr-only">Password</label>
<input type="password" id="inputPassword" class="form-control" placeholder="Password" required="">
<button class="btn btn-lg btn-primary btn-block" type="submit">Sign in</button>
</form>
</div> <!-- /container -->
</body></html>