forked from bumasa/casino
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathlostpass.php
66 lines (58 loc) · 2.12 KB
/
lostpass.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
<? include ("header.php"); ?>
<td width="2px"><img src="image/spacer.gif" width="2px" height=1></td><td valign="top" width="100%" style=" margin:0; padding:0 4 10 4px; "><div style="margin:0; padding:0; "><img src="image/spacer.gif" width="300px" height=1></div>
<table width="100%" border="0" cellpadding="0" cellspacing="0">
<tr>
<td align="left" valign="top" style="background-color:#000000; border:1px solid #6E2500; padding:1px; ">
<table width="100%" style="height:100%; border:1px solid #2E2E2E; " border="0" cellspacing="0" cellpadding="0">
<tr>
<td valign="top">
<div style="padding-left:10px; padding-top:5px; padding-bottom:10px; padding-right:10px">
<center><font class="option" color="#FFFFFF"><b>Âîñòàíîâëåíèå ïàðîëÿ â èíòåðíåò êàçèíî <? echo $con[4]; ?></b></font></center><br>
<font class="content">
<form name="form" method="post" action="?st=lostpass" onSubmit="return formCheck(this)">
<table border="0" align="center" cellpadding="0" cellspacing="0">
<tr>
<td align="center">
Îòïðàâêà ëîãèíà è ïàðîëÿ íà e-mail, óêàçàíûé ïðè ðåãèñòðàöèè<br><br>
<table border="0" cellspacing="0" cellpadding="5">
<tr>
<td>
Ââåäèòå âàø E-mail: </td>
<td><input name="zapros" value="" type="text" size="20" maxlength="50"></td>
<td><input type="hidden" name="send" value="1">
<input type="submit" name="submit" value="Ïðèñëàòü ïàðîëü"></td>
</tr>
</table>
</td>
</tr>
</table>
</form>
<br>
<br>
*Åñëè çàáûëè è E-mail, íàïèøèòå àäìèíèñòðàòîðó óêàçàâ èìÿ è ôàìèëèþ.
</font></div>
</td>
</tr>
</table>
</td>
</tr>
</table>
<?
if ($send=="1"){
$zapros = htmlentities($zapros);
$sqlr="select * from users where email='$zapros'";
$resultr=mysql_query($sqlr);
$rowr=mysql_fetch_array($resultr);
$r_login= $rowr[1];
$r_pass = $rowr[2];
include("mail/reg.php");
$to = $rowr[6];
$subject = $reg_reg_mail_subject;
$msg =$reg_reg_mail;
$mailheaders = "Content-Type: text/plain; charset=Windows-1251\n";
$mailheaders .= "From:$con[2];\n";
mail($to, $subject, $msg, $mailheaders);
echo "<script> alert('Âàøè äàííûå îòïðàâëåííû íà email Óêàçàííûé ïðè ðåãèñòðàöèè!'); document.location.href='index.php'; </script>";
}
include ("footer.php");
?>