PATH: /home/hwyuvbry/www/kerbau/function
FILE_BARU
CREATE
FOLDER_BARU
MKDIR
UPLOAD_FILE
GO
[ .. KEMBALI ]
📄 add-bank.php
↓
X
📄 add-banner.php
↓
X
📄 add-game.php
↓
X
📄 add-member.php
↓
X
📄 add-post.php
↓
X
📄 add-promo.php
↓
X
📄 add-promosid.php
↓
X
📄 add-slide.php
↓
X
📄 add-user.php
↓
X
📄 api_call_scatter.php
↓
X
📄 api_nexusggr.php
↓
X
📄 api_set_rtp.php
↓
X
📄 bank-status.php
↓
X
📄 banner-status.php
↓
X
📄 banner.php
↓
X
📄 del-backup.php
↓
X
📄 del-bank.php
↓
X
📄 del-banner.php
↓
X
📄 del-post.php
↓
X
📄 del-promosid.php
↓
X
📄 del-slide.php
↓
X
📄 del-user.php
↓
X
📄 delete_qris.php
↓
X
📄 edit-member.php
↓
X
📄 edit-user.php
↓
X
📄 end-session.php
↓
X
📄 error_log
↓
X
📄 getwinner.php
↓
X
📄 getwinner_2.php
↓
X
📄 index.php
↓
X
📄 integapi.php
↓
X
📄 minimal.php
↓
X
📄 nexus.php
↓
X
📄 post-chat.php
↓
X
📄 post-status.php
↓
X
📄 proses-group.php
↓
X
📄 proses_topup-manual.php
↓
X
📄 proses_topup.php
↓
X
📄 proses_withdraw.php
↓
X
📄 qris.php
↓
X
📄 reject_topup.php
↓
X
📄 reject_withdraw.php
↓
X
📄 setting.php
↓
X
📄 slide-status.php
↓
X
📄 social.php
↓
X
📄 topup.php
↓
X
📄 update_qris.php
↓
X
📄 user-game.php
↓
X
📄 user-status.php
↓
X
SAVING...
BERHASIL DIUBAH!
EDITING: del-banner.php
<?php require_once('../session.php'); // Sesuaikan path jika file session ada di folder admin if (isset($_GET['cuid'])) { $cuid = $_GET['cuid']; // 1. Ambil nama file gambar // Asumsi: tabel tb_banner memiliki kolom 'gambar' $stmt = $conn->prepare("SELECT gambar FROM tb_banner WHERE cuid = ?"); $stmt->bind_param("s", $cuid); $stmt->execute(); $result = $stmt->get_result(); $data = $result->fetch_assoc(); if ($data) { $nama_file = $data['gambar']; // 2. Tentukan path file // Karena posisi di /admin/function/, maka naik 2 tingkat ke root (../..) baru masuk /upload/ $path = '../../upload/' . $nama_file; // 3. Hapus file jika ada if (!empty($nama_file) && file_exists($path)) { unlink($path); } // 4. Hapus data dari database $delete_stmt = $conn->prepare("DELETE FROM tb_banner WHERE cuid = ?"); $delete_stmt->bind_param("s", $cuid); $delete_stmt->execute(); } } // 5. Redirect kembali ke halaman daftar banner header('location:../banner/'); exit; ?>
SIMPAN PERUBAHAN