-
Notifications
You must be signed in to change notification settings - Fork 0
/
forgottenpassword.php
68 lines (59 loc) · 2.34 KB
/
forgottenpassword.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
<?php
/**
* Created by PhpStorm.
* User: Kabeer
* Date: 31/05/2015
* Time: 12:23
*/
include_once $_SERVER['DOCUMENT_ROOT'] . '/headers/header.php';
?>
<title>Forgotten Password</title>
</head>
<body>
<div class="container mainbody">
<?php
if (isset($_SESSION['forgottenpasswordsuccessmsg']))
{
echo
"<div class='alert alert-success' role='alert'>
<span class='glyphicon glyphicon-ok-sign' aria-hidden='true'></span>
<span class='sr-only'>Success:</span>
" . $_SESSION["forgottenpasswordsuccessmsg"] . "
</div>";
}
elseif (isset($_SESSION['forgottenpasswordfailuremsg']))
{
echo
"<div class='alert alert-danger' role='alert'>
<span class='glyphicon glyphicon-exclamation-sign' aria-hidden='true'></span>
<span class='sr-only'>Error:</span>
" . $_SESSION["forgottenpasswordfailuremsg"] . "
</div>";
}
unset($_SESSION['forgottenpasswordsuccessmsg']);
unset($_SESSION['forgottenpasswordfailuremsg']);
?>
<p style="text-align: center">Please enter your email address and username:</p>
<div class="col-sm-6 col-sm-offset-3">
<form class="form-horizontal" role="form" id="form" method="post" action="action/forgotpassword.php">
<div class="form-group">
<label class="control-label col-sm-12" for="email" style="text-align: center; padding-bottom: 10px;">Email</label>
<div class="col-sm-12">
<input type="text" class="form-control" id="email" name="email" style="text-align: center;">
</div>
</div>
<div class="form-group">
<label class="control-label col-sm-12" for="username" style="text-align: center; padding-top: 30px; padding-bottom: 10px;">Username</label>
<div class="col-sm-12">
<input type="text" name="username" class="form-control" id="username" style="text-align: center;">
</div>
</div>
<div class="form-group">
<div class="col-sm-12" style="text-align: center; padding-top: 20px;">
<button type="submit" class="btn btn-default">Forgot</button>
</div>
</div>
</form>
</div>
</div>
</body>