PATH: //home/hwyuvbry/dear.waroenkhoki123.web.id/topadmin
FILE_BARU
CREATE
FOLDER_BARU
MKDIR
UPLOAD_FILE
GO
[ .. KEMBALI ]
📄 .htaccess
↓
X
📄 Saldorespon.json
↓
X
📄 anggota.php
↓
X
📁 assets/
X
📄 bonus.php
↓
X
📄 bonus_floating.php
↓
X
📄 bukti_jp.php
↓
X
📄 bukti_jp.php#
↓
X
📄 check_data_changes.php
↓
X
📄 dasbor.php
↓
X
📄 deposit.php
↓
X
📄 error_log
↓
X
📄 footer.php
↓
X
📄 ikon_mengambang.php
↓
X
📄 import_games.php
↓
X
📄 index.php
↓
X
📄 keluar.php
↓
X
📄 kyc.php
↓
X
📄 masuk.php
↓
X
📄 masuk.php##
↓
X
📄 masuk_step_1.php
↓
X
📄 navbar.php
↓
X
📄 pemberitahuan.php
↓
X
📄 pengaturan.php
↓
X
📄 pengaturan.php#
↓
X
📄 popup.php
↓
X
📄 profil.php
↓
X
📄 promosi.php
↓
X
📄 refferal.php
↓
X
📄 rekening.php
↓
X
📄 saldo.php
↓
X
📄 saldobckup.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_rekening.php#
↓
X
📄 tambah_staff.php
↓
X
📄 test.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_withdraw.php
↓
X
📄 verifikasi.php
↓
X
📄 wd.txt
↓
X
📄 withdraw.php
↓
X
SAVING...
BERHASIL DIUBAH!
EDITING: bukti_jp.php
<?php session_start(); include_once '../koneksi.php'; /* CEK LOGIN */ if (!isset($_SESSION['kode_admin'])) { echo ' <script> alert("Terjadi kesalahan, harap masuk kembali!"); window.location.replace("'.$alamat_admin.'keluar.php"); </script>'; exit; } /* DEFAULT */ $message = ''; $alert_type = 'success'; /* PROSES SIMPAN */ if ($_SERVER['REQUEST_METHOD'] === 'POST') { $agent_code = mysqli_real_escape_string($koneksi, $_POST['agent_code'] ?? ''); $agent_token = mysqli_real_escape_string($koneksi, $_POST['agent_token'] ?? ''); if ($agent_code === '' || $agent_token === '') { $message = '❌ Agent Code dan Agent Token wajib diisi.'; $alert_type = 'danger'; } else { $sql = "UPDATE tb_api SET agent_code='{$agent_code}', agent_token='{$agent_token}', updated_at=NOW() WHERE id=1"; if (mysqli_query($koneksi, $sql)) { $message = '✅ Kode API berhasil diproses dan disimpan.'; $alert_type = 'success'; } else { $message = '❌ Gagal menyimpan data: ' . mysqli_error($koneksi); $alert_type = 'danger'; } } } /* AMBIL DATA TERKINI */ $sql = "SELECT agent_code, agent_token FROM tb_api WHERE id=1 LIMIT 1"; $res = mysqli_query($koneksi, $sql); $data = mysqli_fetch_assoc($res); $current_code = $data['agent_code'] ?? ''; $current_token = $data['agent_token'] ?? ''; ?> <!DOCTYPE html> <html lang="id"> <head> <meta charset="UTF-8"> <title>Konfigurasi API</title> <style> .btn-simpan-custom { background-color: #000; color: #FFD700; border: 2px solid #FFD700; } .btn-simpan-custom:hover { background-color: #111; color: #fff; } </style> </head> <body> <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">Konfigurasi API</div> </div> <div class="col-md-6 text-end"> <a href="<?php echo $alamat_admin.'dasbor'; ?>" class="btn btn-sm btn-primary"> Kembali </a> </div> </div> <div class="card p-3"> <!-- NOTIFIKASI --> <?php if ($message != ''): ?> <div class="alert alert-<?php echo $alert_type; ?> alert-dismissible fade show" role="alert"> <?php echo htmlspecialchars($message); ?> <button type="button" class="btn-close" data-bs-dismiss="alert"></button> </div> <?php endif; ?> <!-- FORM --> <form method="post"> <div class="mb-3"> <label class="form-label">Agent Code</label> <input type="password" class="form-control" name="agent_code" value="<?php echo htmlspecialchars($current_code); ?>" required> </div> <div class="mb-3"> <label class="form-label">Agent Token</label> <input type="password" class="form-control" name="agent_token" value="<?php echo htmlspecialchars($current_token); ?>" required> </div> <button type="submit" class="btn btn-simpan-custom w-100"> Simpan </button> </form> </div> </div> </body> </html>
SIMPAN PERUBAHAN