📁 PHP Dosya Yöneticisi
/
/
home
/
demodesigncom
/
lisans.demodesign.com.tr
📝
license.php
← Geri Dön
<?php require "include/header.php"; if (isset($_POST['lsil'])) { $sil=$db->prepare("DELETE from license where id=:id"); $kontrol=$sil->execute(array('id' => $_POST['lid'])); if ($kontrol) { ?> <?php echo '<meta http-equiv="refresh" content="0;URL=license?durum=Yes">'; } else { ?> <?php echo '<meta http-equiv="refresh" content="0;URL=license?durum=Yes">'; } } if (isset($_POST['lban'])) { $bitis = $_POST['bitis']; $adsoyad = $_POST['adsoyad']; $lidata = " { \"bitis\": \"$bitis\", \"ban\": true, \"adsoyad\": \"$adsoyad\" } "; $ban2=$db->prepare("UPDATE license SET licensedata=:licensedata WHERE id=:id"); $kontrol3=$ban2->execute(array( 'id' => $_POST['lid'], 'licensedata' => $lidata )); if ($kontrol3) { ?> <?php echo '<meta http-equiv="refresh" content="0;URL=license?durum=Yes">'; } else { ?> <?php echo '<meta http-equiv="refresh" content="0;URL=license?durum=Yes">'; } } if (isset($_POST['luban'])) { $bitis = $_POST['bitis']; $adsoyad = $_POST['adsoyad']; $lidata = " { \"bitis\": \"$bitis\", \"ban\": false, \"adsoyad\": \"$adsoyad\" } "; $uban2=$db->prepare("UPDATE license SET licensedata=:licensedata WHERE id=:id"); $ukontrol3=$uban2->execute(array( 'id' => $_POST['lid'], 'licensedata' => $lidata )); if ($ukontrol3) { ?> <?php echo '<meta http-equiv="refresh" content="0;URL=license?durum=Yes">'; } else { ?> <?php echo '<meta http-equiv="refresh" content="0;URL=license?durum=Yes">'; } } ?> <title>Lisanslar</title> <div class="main-content" bis_skin_checked="1"> <div class="page-content" bis_skin_checked="1"> <div class="container-fluid" bis_skin_checked="1"> <!-- start page title --> <!-- end page title --> <div class="row" bis_skin_checked="1"> <div class="col-lg-12" bis_skin_checked="1"> <div class="card" bis_skin_checked="1"> <div class="card-body" bis_skin_checked="1"> <h4 class="header-title">Lisanslar</h4> <p class="card-title-desc"> Tüm kayıtlı lisansları bu bölümden görüntüleyebilirsiniz. </p> <div class="table-responsive" bis_skin_checked="1"> <table class="table mb-0"> <thead> <tr> <th>#</th> <th>Müşteri</th> <th>Alan Adı</th> <th>Bitiş</th> <th>İşlem</th> </tr> </thead> <tbody> <?php $lisor=$db->prepare("SELECT * FROM license"); $lisor->execute(); while($licek=$lisor->fetch(PDO::FETCH_ASSOC)) { $veri = json_decode($licek['licensedata']); ?> <tr> <th><?php echo $licek['id']; ?></th> <th><?php echo $veri->adsoyad; ?></th> <th><?php echo $licek['domain']; ?></th> <th><?php if (empty($veri->bitis)) { echo "SÜRESİZ"; } else { echo $veri->bitis; } ?></th> <th> <form method="POST"> <input type="hidden" name="lid" value="<?php echo $licek['id']; ?>"> <input type="hidden" name="bitis" value="<?php echo $veri->bitis; ?>"> <input type="hidden" name="adsoyad" value="<?php echo $veri->adsoyad; ?>"> <button name="lsil" type="submit" title="Sil" class="btn btn-sm btn-light"><i class="fa fa-trash"></i></button> <?php if (!$veri->ban) { ?> <button name="lban" type="submit" title="Banla" class="btn btn-sm btn-light"><i class="fa fa-ban"></i></button> <?php }else{ ?> <button name="luban" type="submit" title="Ban'ı Kaldır" class="btn btn-sm btn-light"><i class="fa fa-ban"></i></button> <?php } ?> </form> </th> </tr> <?php } ?> </tbody> </table> </div> </div> </div> </div> </div> <!-- end row --> </div> <!-- container-fluid --> </div> <!-- End Page-content --> <?php require 'include/footer.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