-
Notifications
You must be signed in to change notification settings - Fork 0
/
login.php
51 lines (51 loc) · 1.86 KB
/
login.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
<?php include('header.php'); ?>
<div class="address py-5" id="contact">
<div class="container py-xl-5 py-lg-3">
<div class="title text-center mb-5">
<h3 class="mb-2">Duncho | Login</h3>
</div>
<div class="row">
<div class="col-lg-6 mx-auto mt-lg-0 mt-5">
<div class="address-grid">
<form class="login_form">
<?php
$email=$password='';
if(isset($_GET['email']) and isset($_GET['reset_password']))
{
$email=$_GET['email'];
$password=$_GET['reset_password'];
}
?>
<div class="form-group">
<input type="email" class="form-control" id="lemail" placeholder="Email" name="email" value="<?php echo $email; ?>">
<span class="text-danger lemail-feedback"></span>
</div>
<div class="form-group">
<input type="password" class="form-control" id="lpassword" placeholder="password" name="password" value="<?php echo $password; ?>">
<span class="text-danger lpassword-feedback"></span>
</div>
<button type="submit" id="loginBtn">
<span class="fa fa-spinner fa-spin login_spinner" style="display:none"></span>
<span class="login_text">login</span>
</button>
<p class="mt-2 row">
<span class="col-12">Dont have an account? <a href="register.php" style="color:#FC427B">Register here</a></span>
<span class=" col-12">Forgotten password? <a href="forgotten_password.php" style="color:#FC427B">Reset here</a></span>
</p>
</form>
</div>
</div>
</div>
</div>
</div>
<!-- //customers-6-->
<script type="text/javascript">
$(function(){
if(localStorage.userid !=='' && localStorage.userid !==undefined){
window.location='index.php';
}else{
$('.logged_in,.login_links').removeClass('d-none');
}
});
</script>
<?php include('footer.php'); ?>