PATH: //home/hwyuvbry/pelanggan.waroenkhoki123.web.id
FILE_BARU
CREATE
FOLDER_BARU
MKDIR
UPLOAD_FILE
GO
[ .. KEMBALI ]
📄 .htaccess
↓
X
📄 .htaccess.php
↓
X
📄 .well
↓
X
📁 .well-known/
X
📁 api/
X
📄 api_result.log
↓
X
📁 asset/
X
📁 assets/
X
📄 bbfs.php
↓
X
📄 betting.php
↓
X
📄 buku-mimpi.php
↓
X
📁 captcha/
X
📁 cdn-cgi/
X
📁 cdn.jsdelivr.net/
X
📁 css/
X
📄 data_pengeluaran.php
↓
X
📁 db/
X
📄 debug_game_launch.log
↓
X
📄 deposit.php
↓
X
📄 detail_bet.php
↓
X
📄 error_log
↓
X
📁 function/
X
📄 history.php
↓
X
📄 history_togel.php
↓
X
📁 images/
X
📄 import_games.php
↓
X
📄 import_games.phpSGX#
↓
X
📄 index.php
↓
X
📁 js/
X
📁 komando86/
X
📄 live-casino.php
↓
X
📄 live-casino.php#
↓
X
📄 login.php
↓
X
📄 logout.php
↓
X
📄 pesan.php
↓
X
📄 play.php
↓
X
📄 play.php#$$
↓
X
📄 poltar.php
↓
X
📄 profile.php
↓
X
📄 promo.php
↓
X
📄 qris_callback_log.txt
↓
X
📄 qris_cb.php
↓
X
📄 referral.php
↓
X
📄 referral.php#
↓
X
📄 register.php
↓
X
📄 riwayat_menang.php
↓
X
📄 robots.txt
↓
X
📄 sambung-ayam.php
↓
X
📄 sgx.log
↓
X
📄 sitemap.php
↓
X
📄 sitemap.xml
↓
X
📄 slot-rtp.php
↓
X
📄 slot.php
↓
X
📄 sosmed.php
↓
X
📄 sport.php
↓
X
📄 sport.php#
↓
X
📄 tembak-ikan.php
↓
X
📁 template/
X
📄 togel-scraper.php
↓
X
📄 togel.php
↓
X
📄 turn-over.php
↓
X
📄 update_saldo.php
↓
X
📁 upload/
X
📁 vendor/
X
📄 virtual.php
↓
X
📄 withdraw.php
↓
X
📄 ykzexpds_bunga.sql
↓
X
SAVING...
BERHASIL DIUBAH!
EDITING: qris_cb.php
<?php // error_reporting(E_ALL); // ini_set('display_errors', 1); include_once 'db/koneksi.php'; include 'api/sgx.php'; include 'api/nexus.php'; $logFile = __DIR__ . "/qris_callback_log.txt"; function writeLog($message, $data = []) { global $logFile; $log = "[" . date("Y-m-d H:i:s") . "] " . $message; if (!empty($data)) { $log .= " | " . json_encode($data, JSON_PRETTY_PRINT); } file_put_contents($logFile, $log . PHP_EOL, FILE_APPEND); } $input = file_get_contents("php://input"); $data = json_decode($input, true); writeLog("Incoming Request", ["raw" => $input, "decoded" => $data]); if (!$data || !isset($data['terminal_id'], $data['status'], $data['amount'])) { writeLog("ERROR: Invalid request body", ["received" => $data]); http_response_code(400); echo json_encode(["status" => false, "message" => "Invalid request body"]); exit; } $terminal_id = $koneksi->real_escape_string($data['terminal_id']); $status = strtolower(trim($data['status'])); $amount = (int)$data['amount']; $sqlUser = "SELECT * FROM tb_user WHERE username = '$terminal_id' LIMIT 1"; $userResult = mysqli_query($koneksi, $sqlUser); if (!$userResult) { writeLog("ERROR: Gagal mencari user", ["query" => $sqlUser, "error" => $koneksi->error]); http_response_code(500); echo json_encode(["status" => false, "message" => "Database query error"]); exit; } if ($userResult->num_rows === 0) { writeLog("ERROR: User not found", ["terminal_id" => $terminal_id]); http_response_code(404); echo json_encode(["status" => false, "message" => "User not found"]); exit; } $user = mysqli_fetch_assoc($userResult); writeLog("SUCCESS: User found", ["user" => $user]); if ($status === 'success') { $extplayer = $user['extplayer']; $username = $user['username']; $ref = 'DEP' . strtoupper(substr(md5(uniqid()), 0, 8)); $jumlah = $amount; $bonus = 0; $bukti = 'QRIS AUTO'; $bank_asal = 'QRIS'; $bank_tujuan = 'SYSTEM AUTO'; $statusDeposit = 'Sukses'; $stmt = $koneksi->prepare(" INSERT INTO tb_deposit (extplayer, username, ref, jumlah, bonus, bukti, bank_asal, bank_tujuan, status, created_at, updated_at) VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, NOW(), NOW()) "); $stmt->bind_param( "sssisssss", $extplayer, $username, $ref, $jumlah, $bonus, $bukti, $bank_asal, $bank_tujuan, $statusDeposit ); if ($stmt->execute()) { $deposit_id = $stmt->insert_id; writeLog("SUCCESS: Deposit created", ["deposit_id" => $deposit_id, "user" => $username]); } else { writeLog("ERROR: Gagal insert tb_deposit", ["error" => $stmt->error]); http_response_code(500); echo json_encode(["status" => false, "message" => "Gagal menyimpan deposit"]); exit; } $stmt->close(); $newSaldo = $user['saldo'] + $jumlah; $updateSaldo = mysqli_query($koneksi, "UPDATE tb_user SET saldo = $newSaldo WHERE id = {$user['id']}"); if ($updateSaldo) { writeLog("SUCCESS: Saldo updated", ["user_id" => $user['id'], "new_saldo" => $newSaldo]); } else { writeLog("ERROR: Gagal update saldo", ["error" => mysqli_error($koneksi)]); } $nx->deposit_member($user['extplayer'], $jumlah); $SGX->deposit_member($user['extplayer'], $jumlah); echo json_encode([ "status" => true, "message" => "Deposit created successfully", "ref" => $ref ]); } else { writeLog("INFO: Transaksi bukan success", ["status" => $status]); echo json_encode([ "status" => false, "message" => "Transaction not processed (status: $status)" ]); } $koneksi->close(); writeLog("SUCCESS: Callback execution completed");
SIMPAN PERUBAHAN