-
Notifications
You must be signed in to change notification settings - Fork 0
/
login.php
60 lines (41 loc) · 1.25 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
<?php
include 'inc/header.php';
Session::CheckLogin();
?>
<?php
if ($_SERVER['REQUEST_METHOD'] == 'POST' && isset($_POST['login'])) {
$userLog = $users->userLoginAuthotication($_POST);
}
if (isset($userLog)) {
echo $userLog;
}
$logout = Session::get('logout');
if (isset($logout)) {
echo $logout;
}
?>
<div class="card ">
<div class="card-header">
<h3 class='text-center'><i class="fas fa-sign-in-alt mr-2"></i>User login</h3>
</div>
<div class="card-body">
<div style="width:450px; margin:0px auto">
<form class="" action="" method="post">
<div class="form-group">
<label for="email">Email address</label>
<input type="email" name="email" class="form-control">
</div>
<div class="form-group">
<label for="password">Password</label>
<input type="password" name="password" class="form-control">
</div>
<div class="form-group">
<button type="submit" name="login" class="btn btn-success">Login</button>
</div>
</form>
</div>
</div>
</div>
<?php
include 'inc/footer.php';
?>