-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathreset-pwd-req.php
More file actions
91 lines (69 loc) · 2.32 KB
/
reset-pwd-req.php
File metadata and controls
91 lines (69 loc) · 2.32 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
<?php
//-- check if_there is a valid_user logged on -->
if (!isset($_COOKIE[ini_get('session_name')]))
{
session_start();
}
?>
<?PHP
require_once("./include/membersite_config.php");
$emailsent = false;
if(isset($_POST['submitted']))
{
if($hill_func->EmailResetPasswordLink())
{
$hill_func->RedirectToURL("reset-pwd-link-sent.php");
exit;
}
}
?>
<div id="wrap">
<!-- Site header is called from site-header file -->
<?php include('site_header.php');?>
<!-- Main document commands here -->
<div id="body_sty">
<!-- Form Code Start -->
<div id='hillsite'>
<form id='resetreq' action='<?php echo $hill_func->GetSelfScript(); ?>' method='post' accept-charset='UTF-8'>
<fieldset >
<legend>Reset Password</legend>
<input type='hidden' name='submitted' id='submitted' value='1'/>
<div class='short_explanation'>* required fields</div>
<div><span class='error'><?php echo $hill_func->GetErrorMessage(); ?></span></div>
<div class='container'>
<label for='username' >Your Email*:</label><br/>
<input type='text' name='email' id='email' value='<?php echo $hill_func->SafeDisplay('email') ?>' maxlength="50" /><br/>
<span id='resetreq_email_errorloc' class='error'></span>
</div>
<div class='short_explanation'>A link to reset your password will be sent to the email address</div>
<div class='container'>
<input type='submit' name='Submit' value='Submit' />
</div>
</fieldset>
</form>
<!-- client-side Form Validations:
Uses the excellent form validation script from JavaScript-coder.com-->
<script type='text/javascript'>
// <![CDATA[
var frmvalidator = new Validator("resetreq");
frmvalidator.EnableOnPageErrorDisplay();
frmvalidator.EnableMsgsTogether();
frmvalidator.addValidation("email","req","Please provide the email address used to sign-up");
frmvalidator.addValidation("email","email","Please provide the email address used to sign-up");
// ]]>
</script>
</div>
<!--
Form Code End (see html-form-guide.com for more info.)
-->
</div>
<div id="rightbox_sty">
<?php
//test the system execute command
//echo exec('pwd');
include('right_box_text.php');
?>
</div>
<!-- Site footer is called from site-footer file -->
<?php include('site_footer.php');?>
</div>