-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathforgotpass.php
79 lines (73 loc) · 2.17 KB
/
forgotpass.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
<?php include("includes/session.php"); ?>
<?php include_once("templates/header.php"); ?>
<div id="content">
<h1><?php echo(FORGOTTEN_PASSWORD);?></h1>
<p> </p>
<?php
/**
* Forgot Password form has been submitted and no errors
* were found with the form (the username is in the database)
*/
if(isset($_SESSION['forgotpass'])){
/**
* New password was generated for user and sent to user's
* email address.
*/
if($_SESSION['forgotpass']){
echo NEW_PASSWORD_GENERATED . "<br /><br />";
}
/**
* Email could not be sent, therefore password was not
* edited in the database.
*/
else{
echo "There was an error sending you the email with the new password,<br> so your password has not been changed.";
}
unset($_SESSION['forgotpass']);
}
else{
/**
* Forgot password form is displayed, if error found
* it is displayed.
*/
?>
<?php echo(FORGOTTEN_PASSWORD_TEXT);?><br><br>
<form name="fpwprd" action="process.php" method="POST">
<table width="100%" border="0" cellpadding="0" cellspacing="0">
<tr>
<td width="20%" height="70"><?php echo(USERNAME);?> <?php echo $form->error("user"); ?></td>
<td width="30%"><div class="rahmen" style="mar">
<div class="rahmen-loch-oben"></div>
<div class="rahmen-loch-unten"></div>
<div class="rahmen-content" style="min-width: 100px; padding: 0;">
<input type="text" name="user" maxlength="70" value="<?php echo $form->value("user"); ?>" class="ebook-input">
</div>
</div></td>
<td width="20%"> </td>
<td width="30%"> </td>
</tr>
<tr>
<td> </td>
<td> </td>
<td> </td>
<td> </td>
</tr>
<tr>
<td> </td>
<td><input name="Anmelden2" type="submit" value="Absenden">
<input type="hidden" name="subedit" value="1">
<div id="ee-responseEdit"> </div></td>
<td> </td>
<td> </td>
</tr>
</table>
<br />
<input type="hidden" name="subforgot" value="1">
</form>
<?php
}
?>
</div>
<?php include_once("templates/footer.php"); ?>
</body>
</html>