lost password





PHPXRef 0.7 : NEABExplorer : /home/lost_password.php source









[ Index ]


PHP Cross Reference of NEABExplorer














if (gwGetCookie('xrefnav')=='off')
document.write('[ Show Explorer ]');
else
document.write('[ Hide Explorer ]');



[ Show Explorer ]
[ Hide Navbar ]





titleBody[close]
/home/ -> lost_password.php (source)

[Summary view]
[Print]
[Text view]


1 <?PHP
2 /**
3 * Sends back the password to the email used for the registration.
4 */
5
6 echo "<DIV ALIGN=CENTER>\n";
7 if($_GET["EMAIL"] <> "")
8 {
9 $res=$db->Execute("SELECT ID,USERNAME,PASSWORD,AUTHORIZED FROM PLAYER WHERE EMAIL = ".$db->qstr(trim($_GET["EMAIL"])));
10 if(!$res->EOF)
11 {
12 if($res->fields[3] == 'Y')
13 {
14 $msg="Hi there,
15
16 It appears someone tried to recover your password for the RPG game 'No where else and beyond', hopefully it's you.
17 Here is the login information needed:
18
19 Username: ".$res->fields[1]."
20 Password: ".$res->fields[2]."
21
22 This information has been sent only via email. That means if someone else tried to recover your password,
23 he/she will fail to get the needed information.
24
25 Sincerely,
26
27 The No where else and beyond staff.";
28 mail($_GET["EMAIL"],"No where else and beyond",$msg,"From: rpg@nodalideas.com\n");
29 echo "You should receive an email with your username and password in your mailbox.<BR><BR>\n";
30 echo "[<A HREF=index.php>Ok...</A>]";
31 }
32 else
33 {
34 $msg="Hi,
35
36 In order to enable your 'No where else and beyond' account, please click
37 on the following link, or copy and paste it in your browser:
38
39 http://www.nodalideas.com/rpg/index.php?ACTION=REGISTER&DO=CONFIRM&ID=".$res->fields[0]."
40
41 The No where else and beyond staff.";
42 mail($_GET["EMAIL"],"No where else and beyond registration",$msg,"From: rpg@nodalideas.com\n");
43 echo "This account as not yet been activated. We sent again an activation email. Follow the email instructions in order to activate your account.<BR><BR>\n";
44 echo "[<A HREF=index.php>Ok...</A>]";
45 }
46 }
47 else
48 {
49 echo "There is no registration with this email. Sorry...<BR><BR>\n";
50 echo "[<A HREF=index.php>Mmm...</A>]";
51 }
52 $res->Close();
53 }
54 else
55 {
56 $focus="document.forms['recover'].EMAIL.focus();";
57 ?>
58 <FORM METHOD=GET ACTION=index.php NAME=recover>
59 <INPUT TYPE=HIDDEN NAME=ACTION VALUE=LOSTPASSWD>
60 <TABLE BORDER=0 CELLSPACING=1 CELLPADDING=0 BGCOLOR=#000000 WIDTH=300>
61 <TR BGCOLOR=#000000><TH><B><FONT COLOR=#FFFFFF>Lost password</FONT></B></TH></TR>
62 <TR><TD><TABLE BORDER=0 BGCOLOR=#E0E0E0 WIDTH=100% CELLPADDING=2 CELLSPACING=0>
63 <TR><TD>Enter the email used during the registartion:</TD><TD><INPUT TYPE=TEXT NAME=EMAIL></TD></TR>
64 <TR BGCOLOR=#A0A0A0><TD ALIGN=CENTER COLSPAN=2>[<A HREF=# OnClick='document.forms["recover"].submit();return false;'>Recover password</A>]</TD></TR>
65 </TABLE></TD></TR></TABLE>
66 </FORM>
67 <?PHP
68 }
69 ?>
70 </DIV>



FUNC_DATA={
'qstr': ['qstr', '', [['libs','db_conn_5.php',45],['libs','db_conn_4.php',45]], 122],
'close': ['close', '', [['libs','db_conn_5.php',35],['libs','db_conn_5.php',87],['libs','db_conn_4.php',35],['libs','db_conn_4.php',87]], 380],
'execute': ['execute', '', [['libs','db_conn_5.php',37],['libs','db_conn_4.php',37]], 652],
'trim': ['trim', '', [], 13],
'mail': ['mail', '', [], 3]};
CLASS_DATA={
};
CONST_DATA={
};

titleDescriptionBody
titleDescriptionBody
titleDescriptionBody
titleBody



Generated: Sun Jul 8 18:11:25 2007
Cross-referenced by PHPXref 0.7





Wyszukiwarka

Podobne podstrony:
email lost password
email lost password
lost password
email lost password
email lost password
email lost password
lost password
email lost password
lost password
email lost password
email lost password
Nyx Password Storage 1 21 readme
password2
2006 05 Password Tricks Customizing the Password Popup Window

więcej podobnych podstron