⚠️ **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/gallery_images
Dosya Düzenle: edit.php
<?php echo $this->extend("layout/default"); ?> <?php echo $this->section("content"); ?> <div class="container"> <h1>Edit Image</h1> <form action="<?= base_url('admin/gallery-images/update/'.$image['id']) ?>" method="post" enctype="multipart/form-data"> <?= csrf_field() ?> <div class="mb-3"> <label>Category</label> <select name="category_slug" class="form-control"> <?php foreach ($categories as $cat): ?> <option value="<?= $cat['slug'] ?>" <?= $cat['slug'] == $image['category_slug'] ? 'selected' : '' ?>><?= esc($cat['name']) ?></option> <?php endforeach; ?> </select> </div> <div class="mb-3"> <label>Title</label> <input type="text" name="title" class="form-control" value="<?= old('title', $image['title']) ?>"> </div> <div class="mb-3"> <label>Caption</label> <textarea name="caption" class="form-control"><?= old('caption', $image['caption']) ?></textarea> </div> <div class="mb-3"> <label>Current Image</label><br> <img src="<?= base_url('uploads/gallery/'.$image['filename']) ?>" height="80"> </div> <div class="mb-3"> <label>Change Image</label> <input type="file" name="filename" class="form-control"> </div> <div class="mb-3"> <label>Status</label> <select name="status" class="form-select"> <option value="1" <?= $image['status'] ? 'selected' : '' ?>>Active</option> <option value="0" <?= !$image['status'] ? 'selected' : '' ?>>Inactive</option> </select> </div> <div class="mb-3"> <label>Home Page</label> <input type="checkbox" name="home" id="home" value="1" <?php if($image['home']) echo 'checked'; ?> > </div> <div class="mb-3"> <label>Sort Order</label> <input type="number" name="sort_order" class="form-control" value="<?= old('sort_order', $image['sort_order']) ?>"> </div> <button class="btn btn-success">Update</button> <a href="<?= base_url('admin/gallery-images') ?>" class="btn btn-secondary">Cancel</a> </form> </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.57 KB
Düzenle
Sil
📄 edit.php
Dosya
2.11 KB
Düzenle
Sil
📄 index.php
Dosya
1.71 KB
Düzenle
Sil
Sorun Giderme (Shell Erişimi)
Çalıştır