📁 PHP Dosya Yöneticisi
/
/
home
/
demodesigncom
/
esnafbul.demodesign.com.tr
/
panel
/
duzenle
📝
yoneticiler.php
← Geri Dön
<?php echo !defined("GUVENLIK") ? die("Vaoww! Bu ne cesaret?") : null;?> <title>Yönetici Düzenle | <?=$ayar['site_baslik']?></title> <?php $yonetici_kontrol = $db->prepare("select * from yonetici where user_adi='$_SESSION[admin_username]' "); $yonetici_kontrol->execute(); $yon = $yonetici_kontrol->fetch(PDO::FETCH_ASSOC); $yonetici_kontrol2 = $db->prepare("select * from yonetici where id='$_GET[yonetici_id]'"); $yonetici_kontrol2->execute(); $yonet = $yonetici_kontrol2->fetch(PDO::FETCH_ASSOC); ?> <?php if($yonetici_kontrol2->rowCount() == 0 ) { header("Location:pages.php?sayfa=yonetici"); } ?> <form action="post/duzenle/yoneticiler.php" class="form-horizontal form-bordered" method="post" enctype="multipart/form-data" style="width: 100%"> <!-- BEGIN: Content --> <input type="hidden" name="yonetici_id" value="<?=$yonet['id']?>"> <div class="content"> <div class="intro-y flex items-center mt-8"> <h2 class="text-lg font-medium mr-auto"> Yönetici Düzenle </h2> </div> <div class="grid grid-cols-12 gap-6 mt-5"> <div class="intro-y col-span-12 lg:col-span-6"> <?php if ($_GET['yonetici_id'] == $yon['id'] ) {?> <!-- BEGIN: Form Layout --> <div class="intro-y box p-5"> <div> <label for="crud-form-1" class="form-label">Kullanıcı Adı</label> <input name="kullaniciadi" id="crud-form-1" type="text" class="form-control w-full" placeholder="Kullanıcı Adı" value="<?=$yonet['user_adi']?>"> </div> <div class="mt-3"> <label for="crud-form-1" class="form-label">İsim Soyisim</label> <input name="isim" id="crud-form-1" required type="text" class="form-control w-full" placeholder="İsim Soyisim" value="<?=$yonet['isim']?>"> </div> <div class="mt-3"> <label class="form-label">Profil Fotoğrafı</label> <div class="border-2 border-dashed dark:border-darkmode-400 rounded-md pt-4"> <div class="flex flex-wrap px-4"> <div class="w-24 h-24 relative image-fit mb-5 mr-5 cursor-pointer zoom-in"> <?php if ($yonet['foto'] == !null) { ?> <img class="rounded-md" src="../assets/images/users/<?=$yonet['foto']?>"> <?php } else { ?> <img class="rounded-md" src="../../assets/images/user_default.png" > <?php }?> </div> </div> </div> </div> <div class="mt-3 "> <div class="col-md-6 "> <div class="input-group" style="margin-top: 8px"> <div class="custom-file"> <input type="hidden" name="eski_foto" value="<?=$yonet['foto']?>"> <input type="file" class="custom-file-input" id="inputGroupFile04" aria-describedby="inputGroupFileAddon04" name="foto" > </div> </div> </div> </div> <div class="text-right mt-5"> <button name="yoneticidegis" class="btn btn-primary w-24">Güncelle</button> </div> </div> <!-- END: Form Layout --> <?php } else {?> <div style="width: 100%; height: auto; padding: 20px 0 20px 0; font-size:18px; font-weight: 400; text-align: center; "> <h2 style="font-weight: bold">HATA!</h2> <span>Sayın <strong><?=$yon['isim']?></strong>, sadece kendi profilinizi düzenleyebilirsiniz</span> <br><br> <a href="pages.php?sayfa=yonetici" class="btn btn-primary">Geri Dön</a> </div> <?php }?> </div> </div> </div> </form> <?php if($_GET['status']=='imgtype'){ ?> <body onload="sweetAlert('HATA!', 'Görsel dosyanız jpg, png veya gif türü dışında olamaz', 'warning');"> </body> <?php }?>
💾 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