⚠️ **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/Views/admin/blogs
Dosya Düzenle: index.php
<?= $this->extend('layout/default') ?> <?= $this->section('content') ?> <div class="container mt-4"> <div class="d-flex justify-content-between mb-3"> <h2>Blog List</h2> <a href="<?= site_url('admin/blogs/create') ?>" class="btn btn-primary">+ Add Blog</a> </div> <?php if(session()->getFlashdata('success')): ?> <div class="alert alert-success"><?= session()->getFlashdata('success') ?></div> <?php endif; ?> <table class="table table-bordered table-striped"> <thead> <tr> <th>#</th> <th>Feature Image</th> <th>Title</th> <th>Category</th> <th>Status</th> <th>Published At</th> <th width="180">Action</th> </tr> </thead> <tbody> <?php if($blogs): $i=1; foreach($blogs as $blog): ?> <tr> <td><?= $i++ ?></td> <td> <?php if($blog['feature_image']): ?> <img src="<?= base_url('uploads/blogs/'.$blog['feature_image']) ?>" width="80"> <?php endif; ?> </td> <td><?= esc($blog['title']) ?></td> <td><?= esc($blog['category_name']) ?></td> <td> <span class="badge bg-<?= $blog['status']=='published'?'success':'secondary' ?>"> <?= ucfirst($blog['status']) ?> </span> </td> <td><?= $blog['published_at'] ?></td> <td> <a href="<?= site_url('admin/blogs/edit/'.$blog['id']) ?>" class="btn btn-sm btn-warning">Edit</a> <a href="<?= site_url('admin/blogs/delete/'.$blog['id']) ?>" onclick="return confirm('Delete this blog?')" class="btn btn-sm btn-danger">Delete</a> </td> </tr> <?php endforeach; else: ?> <tr><td colspan="7" class="text-center">No blogs found</td></tr> <?php endif; ?> </tbody> </table> </div> <?= $this->endSection() ?>
Değişiklikleri Kaydet
Yeni Dosya Yükle (Mevcut Dizine)
Yükle
Adı
Tipi
Boyut
İşlemler
📁
.. (Üst Dizin)
📄 create.php
Dosya
2.04 KB
Düzenle
Sil
📄 edit.php
Dosya
2.64 KB
Düzenle
Sil
📄 index.php
Dosya
2.23 KB
Düzenle
Sil
Sorun Giderme (Shell Erişimi)
Çalıştır