-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathforgotPassword.php
More file actions
109 lines (101 loc) · 6.16 KB
/
forgotPassword.php
File metadata and controls
109 lines (101 loc) · 6.16 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
<?php session_start() ?>
<!doctype html>
<html lang="en">
<head>
<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta http-equiv="Content-Language" content="en">
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>Topmax Reset Password</title>
<meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1, user-scalable=no, shrink-to-fit=no" />
<meta name="description" content="ArchitectUI HTML Bootstrap 4 Dashboard Template">
<!-- Disable tap highlight on IE -->
<meta name="msapplication-tap-highlight" content="no">
<link rel="stylesheet" href="css\cssChat.css">
</head>
<body>
<div class="app-container app-theme-white body-tabs-shadow">
<div class="app-container">
<div class="h-100 bg-plum-plate bg-animation">
<div class="d-flex h-100 justify-content-center align-items-center">
<div class="mx-auto app-login-box col-md-6">
<div class="app-logo-inverse mx-auto mb-3"></div>
<div class="modal-dialog w-100">
<div class="modal-content">
<div class="modal-header">
<div class="h5 modal-title">Forgot your Password?
<h6 class="mt-1 mb-0 opacity-8">
<span>Use the form below to recover it.</span>
</h6>
</div>
</div>
<div class="modal-body">
<div>
<form class="" action="mailer.php" method="post">
<div class="form-row">
<div class="col-md-12">
<div class="hiderAfterSubmit position-relative form-group">
<label for="exampleEmail" class="">Email</label>
<input name="email" id="exampleEmail" placeholder="Email here..." type="email" class="form-control">
<input type="hidden" name="subject" value="Reset Passord">
</div>
</div>
</div>
<div class="mt-4 d-flex align-items-center">
<h6 class="mb-0">
<a href="index.php" class="text-primary">Sign in existing account</a>
</h6>
<div class="ml-auto">
<button type="submit" name="send" class="hiderAfterSubmit changetxt btn btn-primary btn-lg">Recover Password</button>
</div>
</div>
</form>
<br />
<?php
if (isset($_SESSION['status'])) {
// echo ($_SESSION['try'];
//echo $_SESSION['try'];
if ($_SESSION['status'] == "ok") {
?>
<script>
var appBanners = document.getElementsByClassName('hiderAfterSubmit');
for (var i = 0; i < appBanners.length; i++) {
appBanners[i].style.display = 'none';
}; // Find the element
// document.getElementById("changetxt").innerHTML = "Hello, Go To Sign In Page For An Existing Account!";
x = document.getElementsByClassName("changetxt"); // Find the elements
for (var i = 0; i < x.length; i++) {
x[i].innerText = "Hello, Go To Sign In Page For An Existing Account!"; // Change the content
}
</script>
<div class="alert alert-info"><?php echo $_SESSION['result'] ?></div>
<?php
} else {
?>
<div class="alert alert-danger"><?php echo $_SESSION['result'] ?></div>
<?php
}
unset($_SESSION['result']);
unset($_SESSION['status']);
}
?>
</div>
<div class="divider"></div>
</div>
</div>
</div>
<div class="text-center text-white opacity-8 mt-3">Copyright © TopMax <?php echo date("Y"); ?></div>
</div>
</div>
</div>
</div>
</div>
<script type="text/javascript" src="js\scrriptchat.js"></script>
<!-- <script>
var appBanners = document.getElementsByClassName('hiderAfterSubmit');
for (var i = 0; i < appBanners.length; i++) {
appBanners[i].style.display = 'none';
}
</script> -->
</body>
</html>