-
Notifications
You must be signed in to change notification settings - Fork 1
/
login.php
89 lines (80 loc) · 2.26 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
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
<?php
session_start();
$page_id = 'login';
if (isset($_SESSION["LoggedIn"])) {
header("Location:index.php");
}
include "header.php";
?>
<!DOCTYPE html>
<head>
<link rel="stylesheet" href="css/style.css">
</head>
<body class="inner-page">
<div id="fh5co-hero">
<a href="#fh5co-main" class="smoothscroll fh5co-arrow to-animate hero-animate-4"><i class="ti-angle-down"></i></a>
<!-- End fh5co-arrow -->
<div class="container">
<div class="col-md-8 col-md-offset-2">
<div class="fh5co-hero-wrap">
<div class="fh5co-hero-intro">
<h1 class="to-animate hero-animate-1">Login</h1>
<h2 class="to-animate hero-animate-2">-</h2>
</div>
</div>
</div>
</div>
</div>
<div id="fh5co-main">
<div class="container">
<div class="row">
<div class="fh5co-spacer fh5co-spacer-sm"></div>
<div class="col-md-8">
<form action="login_script.php" method="POST">
<div class="col-md-12">
<div class="form-group">
<input placeholder="Username" type="text" class="form-control input-lg" name = "uid">
</div>
</div>
<div class="col-md-12">
<div class="form-group">
<input placeholder="Password" type="password" class="form-control input-lg"
name = "pwd">
</div>
</div>
<div class="col-md-12">
<div class="form-group">
<input type="submit" class="btn btn-primary btn-lg " value="Log in">
</div>
</div>
</form>
<p class="col-md-12">
<?php
if (isset($_SESSION['error_msg'])) {
echo $_SESSION['error_msg'];
unset($_SESSION['error_msg']);
}
?>
</p>
</div>
<div class="col-md-4">
<h3>Don't have an account?</h3>
<p style = "font-size:20px"> <a href = "signup.php">Sign up</a> here, and.. </p>
<ul style="font-size:18px">
<li>Get access to numerous recources!</li>
<li>Complete challenges!</li>
<li>Get help from tutors!</li>
<li>And much more.. !</li>
</ul>
<!--TODO: Fix this^ sounds lame?? -->
</div>
<div class="fh5co-spacer fh5co-spacer-md"></div>
</div>
</div>
</div>
<!-- END fhtco-main -->
<?php
include "footer.php";
?>
</body>
</html>