📁 PHP Dosya Yöneticisi
/
/
home
/
demodesigncom
/
esnafbul.demodesign.com.tr
/
panel
/
listele
📝
yoneticiler.php
← Geri Dön
<?php echo !defined("GUVENLIK") ? die("Vaoww! Bu ne cesaret?") : null;?> <title>ADMİN YÖNETİMİ | <?=$ayar['site_baslik']?></title> <?php $yoneticiCek = $db ->prepare("select * from yonetici order by id desc "); $yoneticiCek ->execute(); ?> <div class="content"> <div class="col-span-12 mt-6"> <div class="intro-y block sm:flex items-center h-10"> <h2 class="text-lg font-medium truncate mr-5"> ADMİN YÖNETİMİ </h2> <div class="flex items-center sm:ml-auto mt-3 sm:mt-0"> <a href="pages.php?sayfa=yoneticiekle" class="btn btn-primary shadow-md mr-2"> <i data-lucide="plus" class="hidden sm:block w-4 h-4 mr-2"></i> Yeni Ekle </a> </div> </div> <div class="intro-y overflow-auto lg:overflow-visible mt-8 sm:mt-0"> <?php if ($yoneticiCek->rowCount() > 0) {?> <table class="table table-report table-bordered table-hover sm:mt-2"> <thead class="table-dark"> <tr> <th class="whitespace-nowrap">PROFİL</th> <th class="text-center whitespace-nowrap">ID</th> <th class="text-center whitespace-nowrap">İSİM</th> <th class="text-center whitespace-nowrap">KULLANICI ADI</th> <th class="text-center whitespace-nowrap">#</th> <th class="text-center whitespace-nowrap">#</th> </tr> </thead> <tbody> <?php foreach ($yoneticiCek as $yon) { ?> <tr class="intro-x"> <td class="w-40"> <div class="flex"> <div> <?php if ($yon['foto'] == !null) {?> <img src="../../assets/images/users/<?=$yon['foto']?>" style="width: 50px; height: 50px; border-radius: 100%;"> <?php } else { ?> <img src="../assets/images/user_default.png" style="width: 50px; height: 50px; border-radius: 100%;"> <?php }?> </div> </div> </td> <td class="text-center w-40"><?=$yon['id']?></td> <td class="text-center"> <a class="font-medium whitespace-nowrap"><?=$yon['isim']?></a> </td> <td class="text-center"><?=$yon['user_adi']?></td> <td class="text-center"> <a href="pages.php?sayfa=sifredegistir" class="btn btn-dark btn-sm w-45 mr-2 mb-2"> <svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" icon-name="image" data-lucide="lock" class="lucide lucide-image w-4 h-4 mr-2"><rect x="3" y="3" width="18" height="18" rx="2" ry="2"></rect><circle cx="8.5" cy="8.5" r="1.5"></circle><polyline points="21 15 16 10 5 21"></polyline></svg> Şifre Değiştir </a> </td> <td class="table-report__action w-56"> <div class="flex justify-center items-center"> <a href="pages.php?sayfa=yoneticiler&yonetici_id=<?=$yon['id']?>" class="flex items-center mr-3"> <i data-lucide="check-square" class="w-4 h-4 mr-1"></i> Düzenle </a> <a onclick="deletebutton('<?=$yon['id']?>')" class="flex items-center text-danger" style="cursor: pointer;"> <i data-lucide="trash-2" class="w-4 h-4 mr-1"></i> Sil </a> </div> </td> </tr> <?php }?> </tbody> </table> <?php } else {?> <div class="alert alert-info" style="font-weight: 400"> Admin Eklenmemiş ! </div> <?php }?> </div> </div> </div> <script type="text/javascript"> function deletebutton(yoneticiid){ swal({ title: "Silmek İstediğinize Emin Misiniz?", text: "Seçtiğiniz içerik kalıcı olarak silinecektir", type: "warning", showCancelButton: true, confirmButtonColor: "#DD6B55", confirmButtonText: "Sil", cancelButtonText: "İptal", closeOnConfirm: false, closeOnCancel: false }, function(isConfirm){ if (isConfirm) { window.location.href = "post/sil/yonetici-sil.php?yonetici=success&id="+yoneticiid; } else { swal("İptal Edildi", "Seçtiğiniz içerik silinmemiştir", "error"); } }); } </script> <?php if( $_GET['status']=='success'){ ?> <body onload="sweetAlert('İşlem Başarılı', 'İşleminiz başarıyla gerçekleşmiştir', 'success');"> </body> <meta http-equiv="refresh" content="1; URL=pages.php?sayfa=yonetici"> <?php }?> <?php if($_GET['status']=='warning'){ ?> <body onload="sweetAlert('Başarısız!', 'İşlem sırasında hata oluştu', 'warning');"> </body> <meta http-equiv="refresh" content="1; URL=pages.php?sayfa=yonetici"> <?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