-
Notifications
You must be signed in to change notification settings - Fork 0
/
admin.php
84 lines (80 loc) · 3.47 KB
/
admin.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
<?php
session_start();
require_once 'connection.php';
if (isset($_SESSION['username']) && $_SESSION['password'] || isset($_SESSION['username_admin']) && $_SESSION['password_admin']) {
session_destroy();
}
?>
<!DOCTYPE html>
<html>
<head>
<title>Login | Admin DISC Test Griya Psikologi</title>
<meta name="viewport" content="width=device-width, initial-scale=1">
<link rel="stylesheet" href="https://stackpath.bootstrapcdn.com/bootstrap/4.2.1/css/bootstrap.min.css" integrity="
sha384-GJzZqFGwb1QTTN6wy59ffF1BuGJpLSa9DkKMp0DgiMDm4iYMj70gZWKYbI706tWS" crossorigin="anonymous">
<link rel="shortcut icon" href="https://griyapsikologi.com/wp-content/uploads/2018/12/logo-rsf-favicon.jpg">
<link rel="stylesheet" type="text/css" href="css/benten.css">
<link rel="stylesheet" type="text/css" href="css/style.css">
<script src="https://code.jquery.com/jquery-3.2.1.slim.min.js" integrity="sha384-KJ3o2DKtIkvYIK3UENzmM7KCkRr/rE9/Qpg6aAZGJwFDMVNA/GpGFF93hXpG5KkN" crossorigin="anonymous"></script>
<script src="https://cdnjs.cloudflare.com/ajax/libs/popper.js/1.12.9/umd/popper.min.js" integrity="sha384-ApNbgh9B+Y1QKtv3Rn7W3mgPxhU9K/ScQsAP7hUibX39j7fakFPskvXusvfa0b4Q" crossorigin="anonymous"></script>
<script src="https://maxcdn.bootstrapcdn.com/bootstrap/4.0.0/js/bootstrap.min.js" integrity="sha384-JZR6Spejh4U02d8jOt6vLEHfe/JQGiRRSQQxSfFWpi1MquVdAyjUar5+76PVCmYl" crossorigin="anonymous"></script>
</head>
<body style="background-color: #eeee" class="home page-template page-template-homepage-slider page-template-homepage-slider-php page page-id-93 logged-in admin-bar elementor-default elementor-page elementor-page-93 customize-support">
<div class="box-content content clearfix row justify-content-center">
<div class="border bg-white border-light shadow-sm p-5">
<p class="top-title">
ADMIN</p>
<h2 class="content-title">
LOG IN</h2>
<form action="validation.php" method="POST">
<div class="mb-3">
<input type="text" name="username" placeholder="Username..." required="required">
<input type="password" name="password" placeholder="Password..." required="required">
</div>
<?php
if(isset($_SESSION['alert-warning'])){
?>
<div class="alert alert-warning" role="alert">
<?= $_SESSION['alert-warning']?>
</div>
<?php
unset($_SESSION['alert-warning']);
}
elseif(isset($_SESSION['alert-success'])){
?>
<div class="alert alert-success" role="alert">
<?= $_SESSION['alert-success'] ?>
</div>
<?php
unset($_SESSION['alert-success']);
}
?>
<!-- Modal -->
<br>
<button type="submit">SUBMIT</button>
</form>
<div class="modal fade" id="exampleModal" tabindex="-1" role="dialog" aria-labelledby="exampleModalLabel" aria-hidden="true">
<div class="modal-dialog" role="document">
<div class="modal-content">
<div class="modal-header">
<h5 class="modal-title" id="exampleModalLabel">Lupa Password</h5>
<button type="button" class="close" data-dismiss="modal" aria-label="Close">
<span aria-hidden="true">×</span>
</button>
</div>
<div class="modal-body">
<form action="validation.php" method="POST">
<label>Masukkan Email atau Username</label>
<input type="text" name="forgot" placeholder="Email atau Username..." required="required">
</div>
<div class="modal-footer">
<button type="submit">SUBMIT</button>
</div>
</form>
</div>
</div>
</div>
</div>
</div>
</body>
</html>