-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathlockscreen.php
More file actions
122 lines (116 loc) · 3.93 KB
/
lockscreen.php
File metadata and controls
122 lines (116 loc) · 3.93 KB
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
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
<?php
session_start();
include "koneksi.php";
if($_SESSION["Login"] != true)
{
header("Location: pagenotfound.php");
exit();
}
// Notif Error
$Err = "";
if(isset ($_GET ["Err"]) && !empty ($_GET ["Err"])){
switch ($_GET ["Err"]){
case 1:
$Err = "Username dan Password Kosong";
break;
case 2:
$Err = "Username Kosong";
break;
case 3:
$Err = "Password Kosong";
break;
case 4:
$Err = "Password salah";
break;
case 5:
$Err = "Username atau Password salah";
break;
case 6:
$Err = "Maaf, Terjadi Kesalahan";
break;
}
}
// Notif
$Notif = "";
if(isset ($_GET["Notif"]) && !empty ($_GET["Notif"])){
switch($_GET["Notif"]){
case 1:
$Notif = "User berhasil dibuat, silahkan Login";
break;
}
}
// include "koneksi.php";
// include "auth_user.php";
?>
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<title>E-SUPERVISI</title>
<!-- Icon -->
<link rel="shortcut icon" type="image/icon" href="../favicon.ico">
<!-- Tell the browser to be responsive to screen width -->
<meta content="width=device-width, initial-scale=1, maximum-scale=1, user-scalable=no" name="viewport">
<!-- Bootstrap 3.3.5 -->
<link rel="stylesheet" href="aset/bootstrap/css/bootstrap.min.css">
<!-- Font Awesome -->
<link rel="stylesheet" href="aset/fa/css/font-awesome.css">
<!-- DataTables -->
<link rel="stylesheet" href="aset/plugins/datatables/dataTables.bootstrap.css">
<!-- Theme style -->
<link rel="stylesheet" href="aset/dist/css/AdminLTE.min.css">
<!-- AdminLTE Skins. Choose a skin from the css/skins
folder instead of downloading all of them to reduce the load. -->
<link rel="stylesheet" href="aset/dist/css/skins/_all-skins.min.css">
</head>
<body class="hold-transition lockscreen">
<div class="lockscreen-wrapper">
<div class="lockscreen-logo">
<b>E-SUPERVISI</b>
</div>
<!-- User name -->
<div class="lockscreen-name" style="text-transform:uppercase;"><?php echo $_SESSION["Username"] ?></div>
<!-- START LOCK SCREEN ITEM -->
<div class="lockscreen-item">
<!-- lockscreen image -->
<div class="lockscreen-image">
<img src="aset/foto/<?php echo $_SESSION["Foto"] ?>" alt="Foto">
</div>
<!-- /.lockscreen-image -->
<!-- lockscreen credentials (contains the form) -->
<form class="lockscreen-credentials" action="v_lockscreen.php" method="post">
<div class="input-group">
<input name="Password" type="password" class="form-control" placeholder="Password">
<div class="input-group-btn">
<button class="btn"><i class="fa fa-arrow-right text-muted"></i></button>
</div>
</div>
</form><!-- /.lockscreen credentials -->
</div><!-- /.lockscreen-item -->
<div class="help-block text-center">
Masukkan kembali Password Anda
</div>
<div class="text-center">
<a href="logout.php" id="logout">Login dengan user berbeda</a>
</div>
<center><font style="color:red;"><?php echo $Err ?></font></center>
<center><font style="color:green;"><?php echo $Notif ?></font></center>
<div class="lockscreen-footer text-center">
<strong>Copyright © <?php echo date("Y") ?> E-SUPERVISI</strong>
</div>
</div><!-- /.center -->
<!-- jQuery 2.1.4 -->
<script src="aset/plugins/jQuery/jQuery-2.1.4.min.js"></script>
<!-- Bootstrap 3.3.5 -->
<script src="aset/bootstrap/js/bootstrap.min.js"></script>
<!-- DataTables -->
<script src="aset/plugins/datatables/jquery.dataTables.min.js"></script>
<script src="aset/plugins/datatables/dataTables.bootstrap.min.js"></script>
<!-- SlimScroll -->
<script src="aset/plugins/slimScroll/jquery.slimscroll.min.js"></script>
<!-- FastClick -->
<script src="aset/plugins/fastclick/fastclick.min.js"></script>
<!-- AdminLTE App -->
<script src="aset/dist/js/app.min.js"></script>
</body>
</html>