-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.php
60 lines (56 loc) · 2.03 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
<style>
<?php include 'CSS/login.css'; ?>
</style>
<head>
<meta charset="UTF-8">
<title>Login</title>
</head>
<header>
<h2><a href="checkminutes.php">See minutes</a><h2>
</header>
<?php
if (isset($_SESSION['u_id'])) {
header("Location: index.php");
} else {
$url = "http://".$_SERVER['HTTP_HOST'].$_SERVER['REQUEST_URI'];
if (strpos($url, "login=error") !== false) {
echo '<div class="col-md-4 offset-md-4 col-sm-4 offset-sm-4 text-center alert alert-danger" role="alert">
Invalid Email / Password
</div>';
} elseif (strpos($url, "login=empty") !== false) {
echo '<div class="col-md-4 offset-md-4 col-sm-4 offset-sm-4 text-center alert alert-danger" role="alert">
Fill out all the fields!
</div>';
} elseif (strpos($url, "login=blocked") !== false) {
echo '<div class="col-md-4 offset-md-4 col-sm-4 offset-sm-4 text-center alert alert-danger" role="alert">
User Blocked, Please Pay the fee to continue
</div>';
}
echo
'<div class="container" id="container">
<div class="form-container sign-in-container">
<form action="includes/login.inc.php" method="POST">
<p><h1>Sign in</h1></p>
<div>
<label for="email" class="large-label" >Email</label>
<input id="email" name="email" type="email" placeholder="[email protected]" required>
</div>
<div>
<label for="password" class="large-label" >Password</label>
<input id="password" name="pass" type="password" placeholder="Password" required>
</div>
<button type="submit" name="submit">Login</button>
</form>
</div>
<div class="overlay-container">
<div class="overlay">
<div class="overlay-panel overlay-right">
<h1>Automated Senate Meeting Scheduler!</h1>
<p>Enter your personal details and start journey with us</p>
</div>
</div>
</div>
</div>';
}
?>
<?php include 'footer.php'; ?>