PATH: /home/hwyuvbry/pelanggan.waroenkhoki123.web.id/komando86
FILE_BARU
CREATE
FOLDER_BARU
MKDIR
UPLOAD_FILE
GO
[ .. KEMBALI ]
📄 .htaccess
↓
X
📄 admin_togel.php
↓
X
📄 admin_togel.php#$
↓
X
📄 ajax_riwayat.php
↓
X
📄 anggota.php
↓
X
📁 assets/
X
📄 banner.php
↓
X
📄 bonus.php
↓
X
📄 bukti_jp.php
↓
X
📄 check_data_changes.php
↓
X
📄 config.php
↓
X
📄 dasbor.php
↓
X
📄 dasbor.php#
↓
X
📄 deposit.php
↓
X
📄 downline.php
↓
X
📄 downline.php#
↓
X
📄 error_log
↓
X
📄 footer.php
↓
X
📄 game-list.php
↓
X
📄 game-lists.php
↓
X
📄 ikon_mengambang.php
↓
X
📄 index.php
↓
X
📄 input_manual_result.php
↓
X
📄 keluar.php
↓
X
📄 kyc.php
↓
X
📄 masuk.php
↓
X
📄 masuk_step_1.php
↓
X
📄 navbar.php
↓
X
📄 pemberitahuan.php
↓
X
📄 pengaturan.php
↓
X
📄 profil.php
↓
X
📄 promosi.php
↓
X
📄 proses-claim.php
↓
X
📄 provider.php
↓
X
📄 qris.php
↓
X
📄 qris.php#
↓
X
📄 refferal.php
↓
X
📄 refferal.php#
↓
X
📄 rekening.php
↓
X
📄 saldo.php
↓
X
📄 sidebar.php
↓
X
📄 staff.php
↓
X
📄 tambah_anggota.php
↓
X
📄 tambah_bonus.php
↓
X
📄 tambah_bukti_jp.php
↓
X
📄 tambah_ikon_mengambang.php
↓
X
📄 tambah_promosi.php
↓
X
📄 tambah_rekening.php
↓
X
📄 tambah_staff.php
↓
X
📄 ubah_anggota.php
↓
X
📄 ubah_anggota.php#
↓
X
📄 ubah_bonus.php
↓
X
📄 ubah_bukti_jp.php
↓
X
📄 ubah_deposit.php
↓
X
📄 ubah_ikon_mengambang.php
↓
X
📄 ubah_kyc.php
↓
X
📄 ubah_promosi.php
↓
X
📄 ubah_rekening.php
↓
X
📄 ubah_saldo.php
↓
X
📄 ubah_staff.php
↓
X
📄 ubah_uuid.php
↓
X
📄 ubah_withdraw.php
↓
X
📄 update_claim.php
↓
X
📄 verifikasi.php
↓
X
📄 withdraw.php
↓
X
SAVING...
BERHASIL DIUBAH!
EDITING: refferal.php
<?php include_once '../db/koneksi.php'; // Pastikan admin terautentikasi if (!isset($_SESSION['kode_admin'])) { echo ' <script> alert("Terjadi kesalahan, harap masuk kembali!"); window.location.replace("'.$alamat_admin.'keluar.php"); </script> '; exit; } // Ambil semua anggota yang menjadi upline utama (tidak memiliki referral di atasnya) $anggota_query = mysqli_query($koneksi, " SELECT * FROM tb_user WHERE referral = '' "); $all = mysqli_query($koneksi, "SELECT * FROM tb_user"); ?> <div class="container-xxl flex-grow-1 container-p-y"> <div class="row gy-4 mb-4"> <div class="col-md-6"> <div class="fw-bold fs-4 text-center text-md-start">Referral</div> </div> </div> <div class="card table-responsive p-3"> <table class="table" id="example"> <thead> <tr> <th>#</th> <th>ID Anggota</th> <th>Nama Pengguna</th> <th>Tgl Depo Terakhir</th> <th>Turnover Reff</th> <th>Total Depo Sukses</th> <th>Total Referral</th> <th>Aksi</th> </tr> </thead> <tbody> <?php if (mysqli_num_rows($anggota_query) > 0) { $no = 1; while ($data_anggota = mysqli_fetch_array($anggota_query)) { $id_anggota = $data_anggota['id']; $nama_pengguna = $data_anggota['username']; $nm = $data_anggota['username']; $upline = $data_anggota['username']; // Total deposit reff & Tanggal deposit terakhir dari downline $deposit_query = mysqli_query($koneksi, " SELECT SUM(d.jumlah) AS total_deposit, MAX(d.tanggal) AS tgl_terakhir FROM tb_deposit d JOIN tb_user a ON d.username = a.username WHERE a.referral = '$nm' AND d.status = 'Sukses' "); $deposit_data = mysqli_fetch_array($deposit_query); $total_deposit = $deposit_data['total_deposit'] ? $deposit_data['total_deposit'] : 0; $tgl_terakhir = $deposit_data['tgl_terakhir'] ? $deposit_data['tgl_terakhir'] : '-'; // Total turnover = 10% dari deposit reff $total_turnover = $total_deposit * 0.10; // Total referral (jumlah downline langsung) $referral_query = mysqli_query($koneksi, " SELECT COUNT(*) AS total_referral FROM tb_user WHERE referral = '$nama_pengguna' "); $referral_data = mysqli_fetch_array($referral_query); $total_referral = $referral_data['total_referral']; // Total transaksi deposit sukses dari downline $depo_sukses_query = mysqli_query($koneksi, " SELECT COUNT(*) AS total_sukses FROM tb_deposit d JOIN tb_user a ON d.username = a.username WHERE d.status = 'Sukses' AND a.referral = '$nama_pengguna' "); $sukses_data = mysqli_fetch_array($depo_sukses_query); $total_sukses = $sukses_data['total_sukses']; ?> <tr> <td><?php echo $no++; ?></td> <td><?php echo $id_anggota; ?></td> <td><?php echo $nm; ?></td> <td><?php echo $tgl_terakhir; ?></td> <td><?php echo number_format($total_turnover, 2, ',', '.'); ?></td> <td> <span class="badge bg-primary"> <?php echo $total_sukses; ?> ID </span> </td> <td> <span class="badge bg-secondary"> <?php echo $total_referral; ?> ID </span> </td> <td> <a href="downline/<?php echo urlencode($upline); ?>" class="btn btn-sm btn-info"> Lihat Downline </a> </td> </tr> <?php } } ?> </tbody> </table> </div> </div> <script> $(document).ready(function () { $('#example').DataTable({ "pageLength": 25, "autoWidth": false, "ordering": true }); }); </script> <script> $(document).ready(function(){ var table = $('#example').DataTable(); $('#searchTable').on('keyup', function(){ table.search(this.value).draw(); }); }); </script>
SIMPAN PERUBAHAN