forked from anonv/Traffic-Exchange
-
Notifications
You must be signed in to change notification settings - Fork 0
/
lost.php
39 lines (39 loc) · 1.7 KB
/
lost.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
<?php
include("vars.php");
include("headfoot.php");
mysql_connect($db_host, $db_user, $db_pwd);
mysql_select_db($db_name);
if ($_POST['form'] == 'sent' && $_POST['email'] != "") {
$email = trim($_POST['email']);
$res = mysql_query("select * from user where email='$email'");
if (mysql_num_rows($res) == 1) {
$admail = mysql_result(mysql_query("select value from admin where field='email'"), 0);
$uid = mysql_result($res, 0, "id");
$passwd = mysql_result($res, 0, "passwd");
$act = mysql_result($res, 0, "ac");
if ($act != 0) {
$actcode = "Your account is not yet activated, please click the link below to activate your account!\n\n$self_url" . "activate.php?ac=$act&i=$uid\n\n<a href=\"$self_url" . "activate.php?ac=$act&i=$uid\">AOL Users</a>";
}
mail($email, "$title password reminder", "Your $title login is: $email\n\nYour $title password is: $passwd\n\n$actcode" . "Regards\n\n$title Admin\nhttp://$siteurl/", $email_headers);
uheader();
echo("<h4>Password/Activation Retrieval</h4><p>Your details were sent to your registered email address:<br><b>$email</b></p>");
ufooter();
mysql_close;
exit;
} else {
uheader();
echo("<h4>Password/Activation Retrieval</h4><p>Your email address was not found!</p>");
ufooter();
mysql_close;
exit;
}
} else {
uheader();
echo("<h4>Password/Activation Retrieval</h4>\n");
echo("<p>Enter your e-mail address in the field below and press '<b>Send Password</b>'.</font></p>");
echo("<p><form action=$self_url" . "lost.php method=post><input type=hidden name=form value=sent><input type=text name=email class=webforms> <input type=submit value=\" Send Password \" style=\"font-size: 11px; padding: 2px;\"></form></p>");
ufooter();
mysql_close;
exit;
}
?>