-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathindex.php
More file actions
91 lines (87 loc) · 3.04 KB
/
index.php
File metadata and controls
91 lines (87 loc) · 3.04 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
<?php
ob_start();
session_start();
if(isset($_SESSION['akun_username'])) header("location: index.php");
include "koneksi.php";
// 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 atau Password Salah";
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;
}
}
?>
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<title>Nabila Skincare</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">
<!-- Theme style -->
<link rel="stylesheet" href="aset/dist/css/AdminLTE.min.css">
<!-- Theme style -->
<link rel="stylesheet" href="aset/dist/css/AdminLTE.css">
<!-- iCheck -->
<link rel="stylesheet" href="aset/plugins/iCheck/square/blue.css">
</head>
<body style="background-color: #F8BABB">
<div class="container">
<div class="login-box">
<div class="login-logo">
<h2 style="color: aliceblue"><center>NABILA SKINCARE</center></h2>
</div><!-- /.login-logo -->
<div class="login-box-body">
<b><p class="login-box-msg">Login Form</p></b>
<form action="val_user.php" method="post">
<div class="form-group has-feedback">
<input type="text" name="username" class="form-control" placeholder="Username" maxlength="30" />
<span class="form-control-feedback"><i class="fa fa-user"></i></span>
</div>
<div class="form-group has-feedback">
<input type="password" name="password" class="form-control" placeholder="Password" maxlength="255" />
<span class="form-control-feedback"><i class="fa fa-unlock"></i></span>
</div>
<div class="row">
<div class="col-xs-4">
<button name="submit-login" type="submit" class="btn btn-primary">Sign In</i></button>
</div><!-- /.col -->
</div>
<br>
<center><font style="color:red;"><?php echo $Err ?></font></center>
</br>
</form>
<!--<a href="register.php"><i class="fa fa-users"></i> Register new User</a>-->
</div><!-- /.login-box-body -->
</div><!-- /.login-box -->
<!-- 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>
<!-- iCheck -->
<script src="aset/plugins/iCheck/icheck.min.js"></script>
</body>
</html>