-
Notifications
You must be signed in to change notification settings - Fork 7
/
Copy pathindex.php
126 lines (106 loc) · 5.37 KB
/
index.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
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
123
124
125
126
<!DOCTYPE html>
<?php
session_start();
if (isset($_SESSION['userdata'])) {
header('location:pilihan.php');
}
if (isset($_POST['val-username']) and isset($_POST['val-password'])){
include('login/login.php');
$user = new Login();
$u = $_POST['val-username'];
$p = $_POST['val-password'];
$user->login_proses($u, $p);
}
?>
<!--[if IE 9]> <html class="no-js lt-ie10" lang="en"> <![endif]-->
<!--[if gt IE 9]><!--> <html class="no-js" lang="en"> <!--<![endif]-->
<head>
<meta charset="utf-8">
<title>LOGIN SIWADES</title>
<meta name="description" content="AppUI is a Web App Bootstrap Admin Template created by pixelcave and published on Themeforest">
<meta name="author" content="pixelcave">
<meta name="robots" content="noindex, nofollow">
<meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=no">
<!-- Icons -->
<!-- The following icons can be replaced with your own, they are used by desktop and mobile browsers -->
<link rel="icon" type="image/png" href="assets/img/logo.png">
<!-- END Icons -->
<!-- Stylesheets -->
<!-- Bootstrap is included in its original form, unaltered -->
<link rel="stylesheet" href="assets/css/bootstrap.min.css">
<!-- Related styles of various icon packs and plugins -->
<link rel="stylesheet" href="assets/css/plugins.css">
<!-- The main stylesheet of this template. All Bootstrap overwrites are defined in here -->
<link rel="stylesheet" href="assets/css/main.css">
<!-- Include a specific file here from assets/css/themes/ folder to alter the default theme of the template -->
<!-- The themes stylesheet of this template (for using specific theme color in individual elements - must included last) -->
<link rel="stylesheet" href="assets/css/themes.css">
<!-- END Stylesheets -->
<!-- Modernizr (browser feature detection library) -->
<script src="assets/js/vendor/modernizr-3.3.1.min.js"></script>
</head>
<body>
<!-- Login Container -->
<div id="login-container">
<!-- Login Header -->
<h1 class="h2 text-light text-center push-top-bottom animation-slideDown">
<i class="fa fa-users"></i> <br> <br> <strong>SELAMAT DATANG DI <br> SISTEM INFORMASI WARGA DESA</strong>
</h1>
<!-- END Login Header -->
<!-- Login Block -->
<div class="block animation-fadeInQuickInv">
<!-- Login Title -->
<div class="block-title">
<div class="block-options pull-right">
<a href="daftar.php" class="btn btn-effect-ripple btn-primary" data-toggle="tooltip" data-placement="left" title="Buat akun baru"><i class="fa fa-plus"></i></a>
</div>
<h2>Silahkan Login</h2>
</div>
<!-- END Login Title -->
<?php
if (isset($_COOKIE['alert'])) {
echo $_COOKIE['alert'];
}else{
echo "";
}
?>
<!-- Login Form -->
<form id="form-validation" action="index.php" method="post" class="form-horizontal">
<div class="form-group">
<div class="col-xs-12">
<input type="text" id="val-username" name="val-username" class="form-control" placeholder="Masukkan Username ..." autofocus autocomplete="off">
</div>
</div>
<div class="form-group">
<div class="col-xs-12">
<input type="password" id="val-password" name="val-password" class="form-control" placeholder="Masukkan Password ..." autocomplete="off">
</div>
</div>
<div class="form-group">
<div class="col-sm-4"></div>
<div class="col-sm-4 text-right">
<button type="submit" class="btn btn-effect-ripple btn-sm btn-primary"><i class="fa fa-lock"></i> Login</button>
</div>
<div class="col-sm-4"></div>
</div>
</form>
<!-- END Login Form -->
</div>
<!-- END Login Block -->
<!-- Footer -->
<footer class="text-muted text-center animation-pullUp">
<small><span>2016</span> © <a href="http://www.elfanrodhian.xyz">Elfan Rodh</a></small>
</footer>
<!-- END Footer -->
</div>
<!-- END Login Container -->
<!-- jQuery, Bootstrap, jQuery plugins and Custom JS code -->
<script src="assets/js/vendor/jquery-2.2.4.min.js"></script>
<script src="assets/js/vendor/bootstrap.min.js"></script>
<script src="assets/js/plugins.js"></script>
<script src="assets/js/app.js"></script>
<!-- Load and execute javascript code used only in this page -->
<script src="assets/js/pages/formsValidation.js"></script>
<script>$(function(){ FormsValidation.init(); });</script>
</body>
</html>