📁 PHP Dosya Yöneticisi
/
/
home
/
demodesigncom
/
sikayetscripti.demodesign.com.tr
/
panel
📝
kullaniciduzenle.php
← Geri Dön
<?php include 'header.php'; yetkikontrol(e); $islem = new kullanici($db); if (isset($_POST['kullaniciguncelle'])) { if ($islem->kullaniciguncelle($_POST)) { le(d,$_POST['kul_isim']." isimli kullanıcıyı güncelledi."); header("location:kullanicilar.php?durum=ok"); exit; } else { header("location:kullanicilar.php?durum=no"); exit; } } if (isset($_POST['kul_id'])) { $kullanicicek=$islem->tekil("kullanicilar","kul_id",guvenlik($_POST['kul_id'])); } ?> <div class="container"> <div class="row"> <div class="col-md-12"> <div class="card br-1 card-primary shadow"> <div class="card-header"> <h5 class="font-weight-bold text-primary">Kullanıcı Düzenle</h5> </div> <div class="card-body"> <form id="duzenleme_formu" action="" method="POST" enctype="multipart/form-data" class="needs-validation"> <div class="form-row"> <div class="form-group col-md-6"> <label>İsim Soyisim</label> <input type="text" required class="form-control" value="<?php echo $kullanicicek['kul_isim'] ?>" name="kul_isim" placeholder="İsim"> </div> <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"> <div class="form-group col-md-6"> <label>Telefon Numarası</label> <input type="text" class="form-control" value="<?php echo $kullanicicek['kul_telefon'] ?>" id="kul_telefon" placeholder="Telefon Numarası"> <input type="hidden" class="form-control" value="<?php echo $kullanicicek['kul_telefon'] ?>" id="kul_telefon2" name="kul_telefon"> </div> <div class="form-group col-md-6"> <label>Durum</label> <select required name="kul_durum" class="form-control"> <option <?php if($kullanicicek['kul_durum'] == 1){echo("selected");}?> value="1">Aktif</option> <option <?php if($kullanicicek['kul_durum'] == 0){echo("selected");}?> value="0">Pasif</option> </select> </div> </div> <div class="form-row"> <div class="form-group col-md-6"> <label>Mail Onayı</label> <select required name="mail_onay_durum" class="form-control"> <option <?php if($kullanicicek['mail_onay_durum'] == 1){echo("selected");}?> value="1">Onaylandı</option> <option <?php if($kullanicicek['mail_onay_durum'] == 0){echo("selected");}?> value="0">Onaysız</option> </select> </div> <div class="form-group col-md-6"> <label>Google Authenticator Durumu</label> <select required name="authenticator" class="form-control"> <option <?php if($kullanicicek['authenticator'] == 1){echo("selected");}?> value="1">Aktif</option> <option <?php if($kullanicicek['authenticator'] == 0){echo("selected");}?> value="0">Pasif</option> </select> </div> <div class="form-group col-md-6"> <label>Yeni Şifre <small>(Boş Bırakırsanız Şifre Değişmez)</small></label> <input type="password" class="form-control" name="kul_sifre" placeholder="Yeni Şifreyi Girin"> </div> </div> <div class="form-row justify-content-center"> <div class="form-group col-md-6"> <label>Google Authenticator Anahtarı<span class="badge badge-primary" data-toggle="tooltip" data-placement="top" title="Bu anahtar her kullanıcıya özel olarak oluşturulur Google Authenticator uygulamasına bu anahtarı ekleyip Google Authenticator uygulamasından oluşturulan 6 haneli kod ile sisteme giriş yapabilirsiniz"> ? </span></label> <div class="input-group mb-3"> <input value="<?php echo $kullanicicek['kul_auth_kod'] ?>" type="text" required class="form-control" id="kul_auth_kod" name="kul_auth_kod" placeholder="Özel Kod"> <div class="input-group-append"> <button class="btn btn-outline-primary" type="button" id="ozelkodolustur" value="panel">Anahtar Oluştur</button> </div> </div> </div> </div> <input type="hidden" name="kul_id" value="<?php echo $kullanicicek['kul_id'] ?>"> <div class="text-center"> <button type="submit" name="kullaniciguncelle" class="btn btn-primary btn-lg">Kaydet</button> </div> </form> </div> </div> </div> </div> </div> <?php include 'footer.php' ?> <script src="https://cdnjs.cloudflare.com/ajax/libs/inputmask/4.0.9/jquery.inputmask.bundle.min.js"></script> <script> $(document).ready(function() { $("#kul_telefon").inputmask({"mask": "0 (999) 999-9999"}); $("#duzenleme_formu").submit(function(event) { var telefon = $("#kul_telefon").inputmask("unmaskedvalue"); $("#kul_telefon2").val(telefon); }); }); </script>
💾 Kaydet
İptal
📝 Yeniden Adlandır
İptal
Kaydet
🔐 Dosya İzinleri (chmod)
İzin Değeri:
Hızlı Seçim:
777
755
644
600
777
= Herkes okur/yazar/çalıştırır
755
= Sahip tam, diğerleri okur/çalıştırır
644
= Sahip okur/yazar, diğerleri okur
600
= Sadece sahip okur/yazar
İptal
Uygula