Birçok kişinin işini görebilcek bir konu. Yapması oldukça basittir.
ilk olarak sifremiumuttum.html isimli bir dosya oluşturun ve içine aşağıdakileri yazın.
|
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
|
<?php
$host_adi = "localhost";
$veritabani = "falanfilan";
$kullanici = "root";
$sifre_vt = "";
$hepsi_vt = mysql_pconnect($host_adi, $kullanici, $sifre_vt) or trigger_error(mysql_error(),E_USER_ERROR); ?>
<?php
$kolonadi_hatirlat_sifre = "-1";
if (isset($_POST['mail'])) {
$kolonadi_hatirlat_sifre = (get_magic_quotes_gpc()) ? $_POST['mail'] : addslashes($_POST['mail']);
}
mysql_select_db($veritabani, $hepsi_vt);
$sorgumuz = sprintf("SELECT * FROM uyelik WHERE mail = '%s'", $kolonadi_hatirlat_sifre);
$hatirlat_sifre = mysql_query($sorgumuz, $hepsi_vt) or die(mysql_error());
$satirlar = mysql_fetch_assoc($hatirlat_sifre);
$toplam_sonuc = mysql_num_rows($hatirlat_sifre);
?>
<?php if ($toplam_sonuc > 0) { ?>
<?php
$ad = "Semih VURAL";
$email = "sifre@webasistani.com";
$url = "http://";
$konu = "Şifre Hatırlatma";
$kullanici = $satirlar['kullanici_adi'];
$sifre = $satirlar['sifre'];
$giris = "<a href=".$url."www.webasistani.com/index.php>Sisteme Giriş Yapmak İçin Tıklayın. </a>";
$msg = "Sayın, ".$satirlar['adsoyad']." ".$satirlar['soyad']." Lütfen Şifrenizi Kaybetmeme Hususunda Daha Hassasiyetli Davranınız. Teşekkürler";
$mailtanim = "MIME-Version: 1.0\r\n";
$mailtanim .= "Content-Type: text/html; charset=\"windows-1254\"\r\n";
$mailtanim .= "From: $ad <$email>\r\n";
$mailtanim .= "Reply-To: $ad <$email>\r\n";
$hepsi = "<strong>Gönderici :</strong> ".$ad."<br><strong>Sistem E-Postası :</strong> ".$email."<br><strong>Konu :</strong> ".$konu."<br><strong>Kullanıcı Adınız :</strong> ".$kullanici."<br><strong>Şifreniz :</strong> ".$sifre."<br><strong>Sistem Giriş Yolu :</strong> ".$giris."<br>";
$hepsi .= $msg;
mail($satirlar['email'], $konu ,stripslashes($hepsi), $mailtanim);
?>
Sayın, <?php echo $HTTP_POST_VARS['mail']; ?> Şifreniz Mail Adresinize Gönderildi.
<?php } ?>
<?php if ($toplam_sonuc == 0) { ?> Böyle Bir Kullanıcı Sistemde Yok!
<a href="javascript:history.go(-1)"><span class="style46">Tekrar Denemek İçin TIKLAYIN</a>
<?php } ?>
<?php
mysql_free_result($hatirlat_sifre);
?>
|




0 yorum: