panelden vs mail adresi mi ayarlamak gerekiyor...
ustalardan yardım beklıyorum.. simdiden tesekkurler...
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-9">
<?
if($hatirlat){
include"config.inc.php";
$kullanici_sorgu=mysql_query("select * from kullanici where email='$email' and kullanici='$user'") or die("query error");
if(mysql_num_rows($kullanici_sorgu)==1){
$k_adi=mysql_result($kullanici_sorgu,0,"k_adi");
$k_soyadi=mysql_result($kullanici_sorgu,0,"k_soyadi");
$kullanici=mysql_result($kullanici_sorgu,0,"kullanici");
$email=mysql_result($kullanici_sorgu,0,"email");
$kullanici_id=mysql_result($kullanici_sorgu,0,"kullanici_id");
$sifre_parca=date("H")+date("i")+date("s");
$sifre="$kullanici".$sifre_parca.date("His");
mysql_query("update kullanici set sifre=md5('$sifre'), durum=1 where kullanici_id='$kullanici_id'");
//email gönderme
$mailheaders = "From: destek@site.us \n";
$mailheaders .= "Reply-To:destek@site.us \n";
$mailheaders .= "Content-type: text/html\r\n";
$subject ="Şifre Hatırlatma";
$msg = " <font face=Verdana size=2> <p> Sayın $k_adi $k_soyadi<br>Kullanıcı adınız: $kullanici <br>Yeni Şifreniz: $sifre </p>Lütfen bu şifreyle giriş yapıp üye bilgilerinizi güncelleyiniz!!!<br><a href='http://www.site.us'>www.site.us</a>";
mail($email, $subject, $msg, $mailheaders);
echo"<html><head>
<script>
function git(){
alert('Yeni şifreniz E-mailinize gönderildi')
window.close();
}
</script>
</head>
<body onload='git()'>
</body>
</html>";
//
}
else{
/*echo"<html><head>
<script>
function git(){
window.open('rem_pass.php','_self');
alert('Email not found !!! ')
}
</script>
</head>
<body onload='git()'>
</body>
</html>";*/
}
}
?>
<link href="main.css" rel="stylesheet" type="text/css">
<div align="center">
<object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=7,0,19,0" width="210" height="60" title="zevkdiyari.com">
<param name="movie" value="uyelik.swf" />
<param name="quality" value="high" />
<embed src="uyelik.swf" quality="high" pluginspage="http://www.macromedia.com/go/getflashplayer" type="application/x-shockwave-flash" width="210" height="60"></embed>
</object>
<br>
<span class="spotbaslik"> Şifre Hatırlatma </span><br>
</div>
<form name="form2" method="post" action="<? PHP_SELF ?>">
<table width="270" border="0" align="center" cellpadding="0" cellspacing="0" class="EmphasisText">
<tr>
<td align="right"> </td>
</tr>
<tr>
<td align="right">Kullanıcı Adınız:
<input name="user" type="text" id="user"></td>
</tr>
<tr>
<td align="right"> </td>
</tr>
<tr>
<td align="right">E-mail:
<input name="email" type="text" id="email"></td>
</tr>
<tr>
<td align="right"> </td>
</tr>
<tr>
<td align="center"><input name="hatirlat" type="submit" id="hatirlat" value="GÖNDER"></td>
</tr>
</table>
</tr></td>
</table>
</form>