-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.php
189 lines (182 loc) · 7.98 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
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
<?php
ob_start();
session_start();
include 'autoloader.php';
use Classess\Auth\Customer;
use Classess\Auth\User;
$loginedUser = @unserialize($_SESSION['core_bank_user']);
if ($loginedUser instanceof User) {
header("location:home/");
}
?>
<!doctype html>
<html class="no-js" lang="en">
<head>
<meta charset="utf-8">
<meta http-equiv="x-ua-compatible" content="ie=edge">
<title>Login | CORE BANK</title>
<meta name="description" content="">
<meta name="viewport" content="width=device-width, initial-scale=1">
<!-- favicon
============================================ -->
<link rel="shortcut icon" type="image/x-icon" href="img/favicon.ico">
<!-- Google Fonts
============================================ -->
<link href="https://fonts.googleapis.com/css?family=Play:400,700" rel="stylesheet">
<!-- Bootstrap CSS
============================================ -->
<link rel="stylesheet" href="css/bootstrap.min.css">
<!-- Bootstrap CSS
============================================ -->
<link rel="stylesheet" href="css/font-awesome.min.css">
<!-- owl.carousel CSS
============================================ -->
<link rel="stylesheet" href="css/owl.carousel.css">
<link rel="stylesheet" href="css/owl.theme.css">
<link rel="stylesheet" href="css/owl.transitions.css">
<!-- animate CSS
============================================ -->
<link rel="stylesheet" href="css/animate.css">
<!-- normalize CSS
============================================ -->
<link rel="stylesheet" href="css/normalize.css">
<!-- main CSS
============================================ -->
<link rel="stylesheet" href="css/main.css">
<!-- morrisjs CSS
============================================ -->
<link rel="stylesheet" href="css/morrisjs/morris.css">
<!-- mCustomScrollbar CSS
============================================ -->
<link rel="stylesheet" href="css/scrollbar/jquery.mCustomScrollbar.min.css">
<!-- metisMenu CSS
============================================ -->
<link rel="stylesheet" href="css/metisMenu/metisMenu.min.css">
<link rel="stylesheet" href="css/metisMenu/metisMenu-vertical.css">
<!-- calendar CSS
============================================ -->
<link rel="stylesheet" href="css/calendar/fullcalendar.min.css">
<link rel="stylesheet" href="css/calendar/fullcalendar.print.min.css">
<!-- forms CSS
============================================ -->
<link rel="stylesheet" href="css/form/all-type-forms.css">
<!-- style CSS
============================================ -->
<link rel="stylesheet" href="style.css">
<!-- responsive CSS
============================================ -->
<link rel="stylesheet" href="css/responsive.css">
<!-- modernizr JS
============================================ -->
<script src="js/vendor/modernizr-2.8.3.min.js"></script>
<style>
.gifImg{
background-image: url('img/gif/Cover-Enach.gif');
background-size: contain;
}
.rightC{
float:right;
padding : 20px;
text-decoration: underline;
}
</style>
</head>
<body>
<!--[if lt IE 8]>
<p class="browserupgrade">You are using an <strong>outdated</strong> browser. Please <a href="http://browsehappy.com/">upgrade your browser</a> to improve your experience.</p>
<![endif]-->
<div class="gifImg error-pagewrap col-md-8"></div>
<a class="rightC" href="employee">Staff ->></a>
<div class="error-pagewrap col-md-4">
<div class="error-page-int">
<div class="text-center m-b-md custom-login">
<h3>PLEASE LOGIN TO CORE BANK</h3>
<p>WE CARE ALWAYS!</p>
</div>
<div class="content-error">
<div class="hpanel">
<div class="panel-body">
<?php
if (isset($_POST['login'])){
$email = $_POST['username'];
$pass = $_POST['password'];
$enpass2 = md5($pass);
$_GET['e'] = Customer::login($email, $enpass2);
}
?>
<form action="#" id="loginForm" onsubmit="return validate()" method="post">
<div class="form-group">
<label class="control-label" for="username">Username</label>
<input type="text" placeholder="[email protected]" title="Please enter you username" value="" name="username" id="username" class="form-control" oninput="clearFun()">
<span class="help-block small" id="mailerr">Your unique username to app</span>
</div>
<div class="form-group">
<label class="control-label" for="password">Password</label>
<input type="password" title="Please enter your password" placeholder="******" value="" name="password" id="password" class="form-control" oninput="clearFun()">
<span class="help-block small" id="passerr">Your strong password</span>
</div>
<center><p class="redTxt"><?php echo @$_GET['e']; ?></p></center>
<div class="checkbox login-checkbox">
<label><input type="checkbox" class="i-checks"> Remember me </label>
<p class="help-block small">(if this is a private computer)</p>
</div>
<button class="btn btn-success btn-block loginbtn" type="submit" name="login">Login</button>
</form>
</div>
</div>
</div>
<div class="text-center login-footer">
<p>Copyright © <script>document.write(new Date().getFullYear());</script>. All rights reserved. Created by <a href="javascript:void(0)">CSE_8</a></p>
</div>
</div>
</div>
<!-- validate
============================================ -->
<script src="employee/js/validate.js"></script>
<!-- jquery
============================================ -->
<script src="js/vendor/jquery-1.12.4.min.js"></script>
<!-- bootstrap JS
============================================ -->
<script src="js/bootstrap.min.js"></script>
<!-- wow JS
============================================ -->
<script src="js/wow.min.js"></script>
<!-- price-slider JS
============================================ -->
<script src="js/jquery-price-slider.js"></script>
<!-- meanmenu JS
============================================ -->
<script src="js/jquery.meanmenu.js"></script>
<!-- owl.carousel JS
============================================ -->
<script src="js/owl.carousel.min.js"></script>
<!-- sticky JS
============================================ -->
<script src="js/jquery.sticky.js"></script>
<!-- scrollUp JS
============================================ -->
<script src="js/jquery.scrollUp.min.js"></script>
<!-- mCustomScrollbar JS
============================================ -->
<script src="js/scrollbar/jquery.mCustomScrollbar.concat.min.js"></script>
<script src="js/scrollbar/mCustomScrollbar-active.js"></script>
<!-- metisMenu JS
============================================ -->
<script src="js/metisMenu/metisMenu.min.js"></script>
<script src="js/metisMenu/metisMenu-active.js"></script>
<!-- tab JS
============================================ -->
<script src="js/tab.js"></script>
<!-- icheck JS
============================================ -->
<script src="js/icheck/icheck.min.js"></script>
<script src="js/icheck/icheck-active.js"></script>
<!-- plugins JS
============================================ -->
<script src="js/plugins.js"></script>
<!-- main JS
============================================ -->
<script src="js/main.js"></script>
</body>
</html>