PATH: /home/hwyuvbry/pelanggan.waroenkhoki123.web.id/function
FILE_BARU
CREATE
FOLDER_BARU
MKDIR
UPLOAD_FILE
GO
[ .. KEMBALI ]
📄 api_result.log
↓
X
📁 asset/
X
📄 checker.php
↓
X
📄 error_log
↓
X
📄 get-referral.php
↓
X
📄 get-referral.php#
↓
X
📄 get-referral.php#8999
↓
X
📄 last_deposit.php
↓
X
📄 last_withdraw.php
↓
X
📄 memo-store.php
↓
X
📄 profile_update.php
↓
X
📄 proses_bet.php
↓
X
📄 proses_daftar.php#off dulu
↓
X
📄 proses_depo_otomatis.php
↓
X
📄 proses_depo_otomatis.php#
↓
X
📄 proses_deposit.php
↓
X
📄 proses_deposit.php#
↓
X
📄 proses_login.php
↓
X
📄 proses_pengaturan.php
↓
X
📄 proses_withdraw.php
↓
X
📄 proses_withdraw.php#
↓
X
📄 qris_log.txt
↓
X
SAVING...
BERHASIL DIUBAH!
EDITING: get-referral.php#
<?php error_reporting(E_ALL); ini_set("display_errors", 1); include '../db/koneksi.php'; session_start(); $username = $_SESSION['username'] ?? ''; if (!$username) { echo "<tr><td colspan='4' style='text-align:center;color:red;'>Silakan login terlebih dahulu</td></tr>"; exit; } $from_date = $_GET['from_date'] ?? date('Y-m-d'); $end_date = $_GET['end_date'] ?? date('Y-m-d'); $user_q = mysqli_query($koneksi, "SELECT referral FROM tb_user WHERE username = '$username'"); $user_d = mysqli_fetch_assoc($user_q); $kode_referral = $user_d['referral'] ?? ''; $q = mysqli_query($koneksi, " SELECT username, created_at FROM tb_user WHERE referral = '$username' AND DATE(created_at) BETWEEN '$from_date' AND '$end_date' ORDER BY id desc "); if (mysqli_num_rows($q) == 0) { echo "<tr style='background-color:var(--secondary-color);color:#fff;'> <td colspan='4' style='padding:24px;text-align:center;color:#C4C4C4;'> Tidak ada data referral ditemukan </td> </tr>"; exit; } while ($r = mysqli_fetch_assoc($q)) { $uname = $r['username']; $bet_q = mysqli_query($koneksi, "SELECT SUM(jumlah) AS total FROM tb_deposit WHERE username = '$uname' and status = 'Sukses'"); $bet_d = mysqli_fetch_assoc($bet_q); $to_bet = $bet_d['total'] ?? 0; $bayar_q = mysqli_query($koneksi, "SELECT SUM(jumlah) AS total FROM tb_withdraw WHERE username = '$uname' and status = 'Sukses'"); $bayar_d = mysqli_fetch_assoc($bayar_q); $to_bayar = $bayar_d['total'] ?? 0; echo " <tr style='background-color:var(--secondary-color);color:#fff;'> <td style='padding:10px 5px;'>$uname</td> <td style='padding:10px 5px;'>Rp " . number_format($to_bet, 0, ',', '.') . "</td> <td style='padding:10px 5px;'>Rp " . number_format($to_bayar, 0, ',', '.') . "</td> <td style='padding:10px 5px;'>" . date('Y-m-d', strtotime($r['created_at'])) . "</td> </tr>"; } ?>
SIMPAN PERUBAHAN