-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.php
88 lines (86 loc) · 4.83 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
<?php
session_start();
?>
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>University of Greenwich-ANNUAL MAGAZINE</title>
<link href="assets/plugins/bootstrap/bootstrap.css" rel="stylesheet" />
<link href="assets/font-awesome/css/font-awesome.css" rel="stylesheet" />
<link rel="icon" type="image/png" sizes="32x32" href="favicon.ico">
</head>
<body class="body-Login-back">
<div class="container">
<div class="row" style="margin-top:10px; margin-bottom: 50px;">
<div class="col-lg-2 col-md-3"></div>
<div class="col-lg-8 col-md-6">
<img src="assets/img/banner1.png" alt="" class="img-responsive" />
</div>
<div class="col-lg-2 col-md-3"></div>
</div>
<div class="col-lg-12 col-md-12"style="margin-top:10px; padding-bottom:50px; background-color:#00338e; " >
<div class="col-md-12" style="margin-top:30px; padding-bottom:50px; background-color:#00338e; ">
<div class="col-md-4"></div>
<div class="col-md-4">
<div class="login-panel panel panel-default">
<div class="panel-heading">
<h3 class="panel-title">Sign In</h3>
</div>
<div class="panel-body">
<form role="form" action="controller/authController.php" method="post">
<fieldset>
<div class="form-group">
<input class="form-control" placeholder="User name" name="username" type="text" autofocus>
</div>
<div class="form-group">
<input class="form-control" placeholder="Password" name="password" type="password" value="">
</div>
<div class="checkbox">
<label>
<input name="remember" type="checkbox" value="Remember Me">Remember Me
</label>
</div>
<!-- Change this to a button or input when using this as a form -->
<input type="submit" name="submit" class="btn btn-lg btn-primary btn-block" value="Login">
</fieldset>
</form>
</div>
<div class="panel-footer">
<a href="views/registration/index.php" class="pull-left">Sign Up</a>
<a href="#" class="pull-right">Forgot your password?</a>
<br />
<?php
if(isset($_SESSION['login_failure'])){
echo "<p style='color:red;'>
<strong>Access Denied!</strong> *Either Username or Password is wrong!
<small>Newly registered members must for Administrator's approval</small></p>";
unset($_SESSION['login_failure']);
}elseif(isset($_SESSION['username'])){
echo "<p style='color:green;'>
<strong> *You have logged out!</strong>
</p>";
session_destroy();
}
?>
</div>
</div>
</div>
<div class="col-md-4"></div>
</div>
</div>
<div class="row" style="background-color:#00338e; margin-top:10px;">
<div style="color:#fff; ">
<div class="text-center">
<strong>Copyright ©
<?php echo date("Y");?>The University of Greenwich Annual Magazine.
</strong> All rights reserved
</div>
</div>
</div>
</div>
<script src="assets/plugins/jquery-1.10.2.js"></script>
<script src="assets/plugins/bootstrap/bootstrap.min.js"></script>
</body>
</html>