-
Notifications
You must be signed in to change notification settings - Fork 0
/
forgotpassword.php
106 lines (99 loc) · 3.07 KB
/
forgotpassword.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
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
<?
require_once('config/config.php');
if(isset($_REQUEST['btnSubmit'])){
$record=Select_Qry("*",USER,"username ='".escapeQuotes(stripslashes($_REQUEST['username']))."'","","","","");
if($record !=''){
$mail_To = escapeQuotes(stripslashes($record['email']));
$mail_From = WEB_ADDRESS."<br>";
$mail_subject = "Password Reminder";
$mail_Body = "<p>Your password at ".WEB_ADDRESS." is <b>".$record['password']."</b></p>";
Send_HTML_Mail($mail_To, $mail_From, '', $mail_subject, $mail_Body);
$msg = successfulMessage("Your password has been sent to ".escapeQuotes(stripslashes($record['email']))."");
}
else
{
$msg=errorMessage("Invalid Username.");
}
}
?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<title><?=TITLE?></title>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<meta name="keywords" content="<?=META_KEYWORDS?>"/>
<meta name="description" content="<?=META_CONTENT?>"/>
<link href="css/fresh-auction.css" rel="stylesheet" type="text/css" />
<script type="text/javascript">
function doCheck()
{
if(document.frm.username.value=='')
{
alert('Please enter Username.');
document.frm.username.focus();
return false;
}
else
{
return true;
}
}
</script>
</head>
<body>
<? include_once("toppage1.php");?>
<div id="container" >
<? include_once("left-menu.php");?>
<div id="content" >
<table width="100%" border="0" cellspacing="0" cellpadding="0">
<tr>
<td><img src="images/lbd_24.jpg" width="742" height="10" /></td>
</tr>
<tr>
<td>
<div class="header_top">
<? include_once("cart-info.php");?>
</div>
<div class="clear"></div>
<!--div class="menu_top">
<? include_once("top-menu.php")?>
</div-->
<p><span class="header_text_h"><?=static_cms_title(26)?></span><br /><?=statica_cms_page_value(26)?> </p>
<p align="center">
<form name="frm" method="post" action="" onsubmit="return doCheck()">
<table width="60%" border="0" cellspacing="3" cellpadding="4" align="center" style="border:1px solid #CCCCCC;">
<tr>
<td width="7%"> </td>
<td colspan="2"><?=$msg?></td>
</tr>
<tr>
<td> </td>
<td width="33%" align="left" class="txtLabel">Enter Your Username</td>
<td width="60%" align="left"><input type="text" name="username" value="" /></td>
</tr>
<tr>
<td> </td>
<td> </td>
<td align="left"><input type="submit" name="btnSubmit" value="Submit" /> <input type="button" name="btnCancel" value="Cancel" onclick="window.location.href='login.php'" /></td>
</tr>
<tr>
<td> </td>
<td> </td>
<td align="left"><p>Not a Registered member yet?<br />
<a href="registration.php">Sign-up Now</a> ! Its free!</p></td>
</tr>
</table>
</form>
</p>
<div class="sidebar_sep"></div>
</td>
</tr>
<tr>
<td><img src="images/lbd_24a.jpg" width="742" height="10" /></td>
</tr>
</table>
</div></div></div>
<? require_once("upper-footer.php"); ?>
<? require_once("footer.php");?>
</body>
</html>