-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathprofil.php
88 lines (83 loc) · 2.52 KB
/
profil.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
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
<?php include 'header.php';
$kullanicisor=$db->prepare("SELECT * FROM kullanicilar where kul_mail=:kul_mail");
$kullanicisor->execute(array(
'kul_mail' => $_SESSION['kul_mail']
));
$kullanicicek=$kullanicisor->fetch(PDO::FETCH_ASSOC);
?>
<div class="container">
<form action="islemler/islem.php" method="POST" enctype="multipart/form-data">
<div class="form-row justify-content-center">
<div class="form-group col-md-6">
<label>E-Posta</label>
<input type="email" required class="form-control" value="<?php echo $kullanicicek['kul_mail'] ?>" name="kul_mail" placeholder="E-Mail">
</div>
</div>
<div class="form-row justify-content-center mb-3">
<div class="col-md-6 text-center">
<label>Yeni Şifre <small>(Boş Bırakırsanız Şifre Değişmez)</small></label>
<input class="form-control" type="text" name="kul_sifre">
</div>
</div>
<div class="row justify-content-center">
<button type="submit" name="profilguncelle" class="btn btn-primary">Kaydet</button>
</form>
</div>
</div>
<hr>
<?php include 'footer.php' ?>
<?php if (@$_GET['durum']=="no") {?>
<script>
Swal.fire({
type: 'error',
title: 'İşlem Başarısız',
text: 'Hata Detayı: '+"<?php echo $_SESSION['hata'] ?>",
showConfirmButton: true,
confirmButtonText: 'Kapat'
})
</script>
<?php } ?>
<?php if (@$_GET['durum']=="ok") {?>
<script>
Swal.fire({
type: 'success',
title: 'İşlem Başarılı',
text: 'İşleminiz Başarıyla Gerçekleştirildi',
showConfirmButton: false,
timer: 2000
})
</script>
<?php } ?>
<?php if (@$_GET['durum']=="eskisifrehata") {?>
<script>
Swal.fire({
type: 'error',
title: 'İşlem Başarısız',
text: 'Eski Şifreniz Hatalı Lütfen Eski Şifrenizi Doğru Girin',
showConfirmButton: true,
confirmButtonText: 'Kapat'
})
</script>
<?php } ?>
<?php if (@$_GET['durum']=="sifreleruyusmuyor") {?>
<script>
Swal.fire({
type: 'error',
title: 'İşlem Başarısız',
text: 'Girdiğiniz Şifreler Aynı Değil Lütfen Girdiğiniz Şifreleri Kontrol Edin',
showConfirmButton: true,
confirmButtonText: 'Kapat'
})
</script>
<?php } ?>
<?php if (@$_GET['durum']=="sifredegisti") {?>
<script>
Swal.fire({
type: 'success',
title: 'İşlem Başarılı',
text: 'İşleminiz Başarıyla Gerçekleştirildi',
showConfirmButton: false,
timer: 2000
})
</script>
<?php } ?>