-
Notifications
You must be signed in to change notification settings - Fork 0
/
forgotmypw.php
211 lines (179 loc) · 7.77 KB
/
forgotmypw.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
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html><!-- InstanceBegin template="/Templates/MainTmpl.dwt.php" codeOutsideHTMLIsLocked="false" -->
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<!-- InstanceBeginEditable name="doctitle" -->
<title>Forgot Password :: NirajByanjankar.com.np</title>
<!-- InstanceEndEditable --><link href="nbstyles/nbstyle1.css" rel="stylesheet" type="text/css">
<!-- InstanceBeginEditable name="head" --><!-- InstanceEndEditable -->
<script language="javascript" src="nbstyles/subRootStyle.js"></script>
<script language="javascript" src="selectuser.js"></script>
<script src="SpryAssets/SpryMenuBar.js" type="text/javascript"></script>
<meta name="keywords" content="nirajbyanjankar.com.np niraj byanjankar personal homepage website nepali english date converter nepali bikram sambhat ajax download poems applications kathmandu lalitpur nepal designed with dreamweaver php mysql template 14 february 2010 valantines day resume blogs chyasal newa newar northwest missouri state university st xavier's college gyanodaya bal batika unique academy facebook">
<meta name="description" content="nirajbyanjankar.com.np is my personal homepage with an intention to educate people with what I know. This site contains my personal pictures, poems, applications, essays , and more. Attraction of this site can be Nepali to English to Nepali Date Converter. Please, feel free to give me comment on it.">
<meta name="Author" content="Niraj Byanjankar">
<link href="SpryAssets/SpryMenuBarHorizontal.css" rel="stylesheet" type="text/css">
</head>
<body>
<a name="mathi"></a>
<div id="topHeaderNB">
<div align="center">
<table width="753" border="0" cellspacing="0" cellpadding="0">
<tr>
<td width="559" rowspan="6"><img src="images/headerimg.png" border="0" usemap="#Map" class="noBord" ></td>
<td bgcolor="#FF0000" align="right" >
<?php
if (isset($_COOKIE["membername"]))
{
$emailalso=$_COOKIE["emaill"];
echo"<a href='../viewmemrec.php' class='topcornerLinkStyles'>";
echo $_COOKIE["membername"];
echo "</a>";
}
else
{
echo "<a href=login.php class=topcornerLinkStyles>Guest</a>";
}
?>
</a></td>
</tr>
<tr>
<td bgcolor="#FF0000" align="right" >
<?php
if (isset($_COOKIE["membername"]))
{
echo "<a href='logout.php' class='topcornerLinkStyles'>Logout</a>";
}
else
{
echo "<a href='login.php' class='topcornerLinkStyles'>Login</a>";
}
?>
</td>
</tr>
<tr>
<td bgcolor="#FF0000" align="right" ><a href="smap.php" class="topcornerLinkStyles" >Site Map</a></td>
</tr>
<tr>
<td bgcolor="#FF0000" align="right" ><a href="#" class="topcornerLinkStyles" > </a></td>
</tr>
<tr>
<td bgcolor="#FF0000" align="right" >[Beta Version] </td>
</tr>
<tr>
<td bgcolor="#FF0000" align="right" > <a href="#" class="topcornerLinkStyles"><?php
echo date("jS F, l, Y"); ?> </a>
</td>
</tr>
</table>
</div>
<!--
<div id="headingNaviNB">| <a href="../index.php" class="topNaviLinkStyles">HOME</a> | <a href="../about.php" class="topNaviLinkStyles">ABOUT ME </a> | <a href="../picgal.php" class="topNaviLinkStyles">MY PICTURES</a> | <a href="../doreg.php" class="topNaviLinkStyles">REGISTER</a> | <a href="../dloads.php" class="topNaviLinkStyles">DOWNLOAD</a> |
<a href="../extras.php" class="topNaviLinkStyles">EXTRAS</a> |<a href="../fbacks.php" class="topNaviLinkStyles">FEEDBACK</a>|</div>
</div>
-->
<div id="centerWithBorderNB">
<div class="menuBarBG">
<ul id="MenuBar1" class="MenuBarHorizontal">
<li><a href="index.php">HOME</a> </li>
<li><a href="about.php" class="MenuBarItemSubmenu">ABOUT ME</a>
<ul>
<li><a href="about.php#ht">Hometown</a></li>
<li><a href="about.php#aca">Academics</a></li>
<li><a href="about.php#career">Career</a></li>
</ul>
</li>
<li><a href="picgal.php">PICTURES</a> </li>
<li><a href="doreg.php">REGISTER</a></li>
<li><a href="dloads.php">DOWNLOADS</a></li>
<li><a href="extras.php">EXTRAS</a></li>
<li><a href="fbacks.php">FEEDBACK</a></li>
</ul>
</div>
<!-- InstanceBeginEditable name="MainEdReg" -->
<table cellspacing="0" cellpadding="0">
<tr>
<td valign="top">
<h4 class="h4forTopRtHeading">forgot password? </h4>
<h3 class="Heading3forMain2">retrieve it! </h3><br>
<div id="Para4MainAbout" >
<?php
if($_REQUEST[txteml]!="")
{
$link = mysql_connect('chyasalcom.fatcowmysql.com', 'newroseji', 'Openit123');
if (!$link) {
die('Could not connect: ' . mysql_error());
}
// echo 'Connected successfully';
mysql_select_db(mysqldb);
$result = mysql_query("SELECT Email,Password FROM membersinfo where Email='" . $_POST[txteml] . "'");
$row = mysql_fetch_array($result);
$pw=$row['Password'];
$msg = "E-MAIL Sent From NirajByanjankar.com.np.\n";$msg .= "Sender's Name: Niraj Byanjankar\n";$msg .= "Sender's Email: noreply@nirajbyanjankar.com.np\n\n";$msg .= "Your Password: $pw\n";$to = "$_POST[txteml]";$subject = "Password retreived!";
function spamcheck($field)
{
//filter_var() sanitizes the e-mail
//address using FILTER_SANITIZE_EMAIL
$field=filter_var($field, FILTER_SANITIZE_EMAIL);
//filter_var() validates the e-mail
//address using FILTER_VALIDATE_EMAIL
if(filter_var($field, FILTER_VALIDATE_EMAIL))
{
return TRUE;
}
else
{
return FALSE;
}
}
if (isset($_REQUEST['txteml']))
{
//if "email" is filled out, proceed
//check if the email address is invalid
$mailcheck = spamcheck($_REQUEST['txteml']);
if ($mailcheck==FALSE)
{
echo "Invalid input";
}
else
{//send email
//$email = $_REQUEST['txteml'] ;
mail($to, "Subject: $subject",
$msg, "From: NirajByanjankar.com.np" );
echo"Password Sent!<br><br>Please check your email for your password.<br><a href='login.php'>Login</a><br><br>";
}
}
}
?>
<script language="javascript" src="nbstyles/checkfpterm.js"></script>
<form name="frmfp" action="forgotmypw.php" method="POST" onSubmit="return chkfp();">
<table border=0 cellspacing=0 cellpadding=0><tr>
<td >Enter your Email </td>
<td><input name="txteml" type="text" class="formtextboxborder" size=30></td></tr>
<tr><td> </td><td> </td></tr>
<tr><td> </td><td><input name="submit" type="submit" class="formbuttons" value=" Send My Password "></td></tr>
</table></form>
</div></td>
<td rowspan="3" valign="top">
<div id="sidebar"><?php include("inc/attractions.php"); ?>
</div>
</td>
</tr>
</table>
<!-- InstanceEndEditable -->
<!-- InstanceBeginEditable name="MainEdRegPathNavi" -->
<div id="naviStyle"> <a href="index.php" class="bottomPathNaviLinksStyles">Home</a>\<a href="forgotmypw.php" class="bottomPathNaviLinksStyles">Forgot Password</a></div>
<!-- InstanceEndEditable -->
</div>
<div id="footerCenterNB"> © 2010, Niraj Byanjankar</div>
<div id="bottomLinksNB"> <a href="tnc.php" class="bottomLinksNBLnk">Disclaimer</a> <a href="tnc.php" class="bottomLinksNBLnk">Policies</a> <a href="fbacks.php" class="bottomLinksNBLnk">Feedback</a> <a href="mailto:info@nirajbyanjankar.com.np" class="bottomLinksNBLnk">Webmaster</a> <a href="fbacks.php" class="bottomLinksNBLnk">Advertisements</a> <a href="#mathi" class="bottomLinksNBLnk">Top</a> </div>
<map name="Map">
<area shape="rect" coords="15,26,234,74" href="index.php" alt="Homepage">
</map>
<script type="text/javascript">
<!--
var MenuBar1 = new Spry.Widget.MenuBar("MenuBar1", {imgDown:"../SpryAssets/SpryMenuBarDownHover.gif", imgRight:"../SpryAssets/SpryMenuBarRightHover.gif"});
//-->
</script>
</body>
<!-- InstanceEnd --></html>