/* Decoded by unphp.net */ "naopagante", "rodada" => $randombetdie); } goto DBxtt; xI7D4: $stmt = $conn->prepare($queryvbonus); goto cUmGv; tJlhW: function decTokenImproved($token) { $decoded = decodeToken($token); if (!isJson($decoded)) { return array("status" => false, "message" => "Invalid token"); } $data = json_decode($decoded, true); $data["status"] = true; return $data; } goto s9YP8; h4DHa: $stmt->bind_param("s", $idgame); goto SjvUl; Zem0R: $stmt->bind_param("s", $playerid); goto J71T3; XlnMz: if ($_SERVER["REQUEST_METHOD"] !== "POST") { die(json_encode(array("error" => "Acesso inválido."))); } goto K4STQ; Zhcia: $winrate = $rowporcentagens["winrate"]; goto BrneZ; AL9wu: function arredondarParaCimaSeNecessario($valor) { if ($valor % 1 === 0.99) { $valor += 0.01; } $valorFormatado = number_format($valor, 2, ".", ''); return (double) $valorFormatado; } goto Kvf2N; Bjj1E: function isJson($string) { json_decode($string); return json_last_error() === JSON_ERROR_NONE; } goto tJlhW; Igekp: if ($saldousuario < $valortotalaposta) { $response = "{"dt":{"si":{"wp":null,"lw":null,"c":null,"orl":[3,6,7,6,3,7,4,5,4,8,9,7,9,8,7],"fs":null,"gwt":-1,"fb":null,"ctw":0.0,"pmt":null,"cwc":0,"fstc":null,"pcwc":0,"rwsp":null,"hashr":null,"ml":" . $ml . ","cs":" . $cs . ","rl":[3,6,7,6,3,7,4,5,4,8,9,7,9,8,7],"sid":"1732975974431201793","psid":"1732975974431201793","st":1,"nst":1,"pf":1,"aw":0.00,"wid":0,"wt":"C","wk":"0_C","wbn":null,"wfg":null,"blb":" . $saldousuario . ","blab":" . $saldousuario . ","bl":" . $saldousuario . ","tb":0.00,"tbb":0.00,"tw":0.00,"np":0.00,"ocr":null,"mr":null,"ge":[1,11]}},"err":{"cd":"3202","msg":"Not enough cash.","tid":"DPMBIN08"}}"; echo json_encode($response, JSON_UNESCAPED_SLASHES); die; } goto wAgZ3; Nvbxo: $randombetlive = $betlives[array_rand($betlives)]; goto iVXyZ; J71T3: $stmt->execute(); goto wkneN; cUmGv: $stmt->bind_param("s", $playerid); goto sgIXA; f2n2N: function calcularRTP($probabilidade) { $rand = rand(1, 100); $acumulado = 0; foreach ($probabilidade as $resultado => $chance) { $acumulado += $chance; if ($rand <= $acumulado) { return $resultado; } } } goto pde5F; zLFkQ: $bonus = $rowporcentagens["bonusrate"]; goto dx9VY; Rutaw: $tembonus = $verificarodadabonus->fetch_assoc(); goto FbKXQ; v3Tq7: if ($rowsite["is_demo_agent"] == 1) { $probabilidades = array("paga" => $afiliadowinrate, "naopaga" => $afiliadoloserate, "bonus" => $afiliadobonus); } goto y3WM1; Nh_I7: $resultadoporcentagens = $stmt->get_result(); goto C5lta; Kvf2N: function retornaganhobet($valorcs, $valorml, $simbolopagante) { $resultado = $valorcs * $valorml * $simbolopagante; return $resultado; } goto c62P5; u8rwk: $query = "SELECT * FROM wallets WHERE user_id = ?"; goto ttdmx; s5dXg: $playerid = $tokenOpen["id"] ?? null; goto JHLEU; dx9VY: $afiliadowinrate = $rowporcentagens["affwinrate"]; goto Ign6c; iVXyZ: $randombetdie = $betdies[array_rand($betdies)]; goto sim5Z; aQ_8U: $betbonus = file("carta.txt", FILE_IGNORE_NEW_LINES); goto Nvbxo; uvdA0: $stmt->bind_param("s", $userId); goto s_e_9; YXFA7: $spin = json_decode($result["rodada"], true); goto aMekf; JHLEU: if (!$playerid) { die(json_encode(array("error" => "ID de usuário inválido."))); } goto u8rwk; BrneZ: $loserate = $rowporcentagens["lossrate"]; goto zLFkQ; sim5Z: $randombonus = $betbonus[array_rand($betbonus)]; goto l0eVU; Ign6c: $afiliadoloserate = $rowporcentagens["afflossrate"]; goto s7ddt; tqumm: $verificarodadabonus = $stmt->get_result(); goto Rutaw; wkneN: $resultadoconsultasite = $stmt->get_result(); goto R1XYc; v39BE: if ($rodada == "paga") { $result = array("tipo" => "pagante", "rodada" => $randombetlive); } goto dbCMR; K4STQ: if (!isset($_POST["atk"])) { die(json_encode(array("error" => "Token não fornecido."))); } goto ZWXIn; SjvUl: $stmt->execute(); goto Nh_I7; l1r8Q: $saldousuario = $wallet["balance_withdrawal"]; goto GfKWS; R1XYc: $rowsite = $resultadoconsultasite->fetch_assoc(); goto f2n2N; wAgZ3: $queryvbonus = "SELECT * FROM betspg WHERE userid = ?"; goto xI7D4; sJdYX: $betdies = file("naopagantes.txt", FILE_IGNORE_NEW_LINES); goto aQ_8U; eozbi: $stmt = $conn->prepare($queryconsultasite); goto Zem0R; l0eVU: $idgame = "jungle-delight"; goto fxGhl; C5lta: $rowporcentagens = $resultadoporcentagens->fetch_assoc(); goto Zhcia; R4nH1: $result = $stmt->get_result(); goto HTclk; pde5F: $probabilidades = array("paga" => $winrate, "naopaga" => $loserate, "bonus" => $bonus); goto v3Tq7; SiGNT: $userId = $tokenOpen["id"] ?? null; goto s5dXg; ZWXIn: function decodeToken($texto) { $retorno = ''; $saidaSubs = ''; $busca0 = array("8", "e", "9", "f", "b", "d", "h", "g", "j", "i", "m", "o", "k", "z", "l", "w", "4", "s", "r", "u", "t", "x", "v", "p", "6", "n", "7", "2", "1", "5", "q", "3", "y", "0", "c", "a"); $subti0 = array("a", "b", "c", "d", "e", "f", "g", "h", "i", "j", "k", "l", "m", "n", "o", "p", "q", "r", "s", "t", "u", "v", "x", "w", "y", "z", "0", "1", "2", "3", "4", "5", "6", "7", "8", "9"); for ($i = 0; $i < strlen($texto); $i++) { $ti = array_search($texto[$i], $busca0); if ($busca0[$ti] == $texto[$i]) { $saidaSubs .= $subti0[$ti]; } else { $saidaSubs .= $texto[$i]; } } $retorno = base64_decode($saidaSubs); return $retorno; } goto Bjj1E; ShWgK: $stmt = $conn->prepare($queryconsultaporcentagens); goto h4DHa; rw0I2: include "../../../db.php"; goto XlnMz; fxGhl: $queryconsultaporcentagens = "SELECT * FROM pgporcentagem WHERE jogo = ?"; goto ShWgK; BHtzJ: $valortotalaposta = $cs * $ml * 20; goto Igekp; v_f38: if ($stmt === false) { die(json_encode(array("error" => "Falha ao preparar a consulta."))); } goto uvdA0; s9YP8: $cs = $_POST["cs"]; goto e51YP; R5Ibk: $tokenOpen = decTokenImproved($_POST["atk"]); goto SiGNT; s_e_9: $stmt->execute(); goto R4nH1; y3WM1: $rodada = calcularRTP($probabilidades); goto v39BE; ttdmx: $stmt = $conn->prepare($query); goto v_f38; HTclk: $wallet = $result->fetch_assoc(); goto gVmdJ; sgIXA: $stmt->execute(); goto tqumm; hy3aT: $queryconsultasite = "SELECT * FROM users WHERE id = ?"; goto eozbi; FbKXQ: if ($tembonus) { $retornoarquivobonus = lerarquivoBonus($tembonus["simbolobonus"]); $quantidaderodadas = count($retornoarquivobonus) - 1; $recebedadosspin = $retornoarquivobonus[$tembonus["quantidaderodadabonus"]]; $spinjson = json_decode($recebedadosspin, true); $giro = $spinjson; $multiplicador = $giro["dt"]["si"]["ctw"] / $giro["dt"]["si"]["cs"] / $giro["dt"]["si"]["ml"]; $valordoganho = arredondarParaCimaSeNecessario(retornaganhobet($cs, $ml, $multiplicador)); $novosaldobet = $saldousuario + $valordoganho; $adicionabonus = $tembonus["quantidaderodadabonus"] + 1; $atualizabonus = "UPDATE betspg SET quantidaderodadabonus = '{$adicionabonus}' WHERE userid = '{$playerid}'"; $rowbonusadd = $conn->query($atualizabonus); $somaaw = $tembonus["totalbonus"] + $valordoganho; $atualizatotalbonus = "UPDATE betspg SET totalbonus = '{$somaaw}' WHERE userid = '{$playerid}'"; $rowtotalbonusadd = $conn->query($atualizatotalbonus); $diferensaaposta = $saldousuario - $valortotalaposta; if ($tembonus["quantidaderodadabonus"] >= $quantidaderodadas) { $deletabonusativo = "DELETE FROM betspg WHERE userid = '{$playerid}'"; $zerarodadabonus = $conn->query($deletabonusativo); $multiplica = $giro["dt"]["si"]["ctw"] / $giro["dt"]["si"]["cs"] / $giro["dt"]["si"]["ml"]; $valordoganho = arredondarParaCimaSeNecessario(retornaganhobet($cs, $ml, $multiplica)); if (is_array($giro["dt"]["si"]["lw"])) { foreach ($giro["dt"]["si"]["lw"] as $chave => $valor) { $lw_count = count($giro["dt"]["si"]["lw"]); $giro["dt"]["si"]["lw"][$chave] = $valordoganho / $lw_count; } } $diferensaaposta = $saldousuario - $valortotalaposta; $novosaldobet = $saldousuario + $valordoganho; $giro["dt"]["si"]["cs"] = $cs; $giro["dt"]["si"]["ml"] = $ml; $giro["dt"]["si"]["blb"] = $saldousuario; $giro["dt"]["si"]["blab"] = $diferensaaposta; $giro["dt"]["si"]["bl"] = $novosaldobet; $giro["dt"]["si"]["tb"] = $valortotalaposta; $giro["dt"]["si"]["tbb"] = $valortotalaposta; $giro["dt"]["si"]["tw"] = $valordoganho; $giro["dt"]["si"]["ctw"] = $valordoganho; $giro["dt"]["si"]["aw"] = $somaaw; $giro["dt"]["si"]["fs"]["aw"] = $somaaw; $giro["dt"]["si"]["np"] = $valordoganho; $atualizasaldo = "UPDATE wallets SET balance_withdrawal = '{$novosaldobet}' WHERE user_id = '{$playerid}'"; $rowsaldo = $conn->query($atualizasaldo); echo json_encode($giro, JSON_UNESCAPED_SLASHES); die; } $giro["dt"]["si"]["cs"] = $cs; $giro["dt"]["si"]["ml"] = $ml; $giro["dt"]["si"]["blb"] = $saldousuario; $giro["dt"]["si"]["blab"] = $diferensaaposta; $giro["dt"]["si"]["bl"] = $novosaldobet; $giro["dt"]["si"]["tb"] = $valortotalaposta; $giro["dt"]["si"]["tbb"] = $valortotalaposta; $giro["dt"]["si"]["tw"] = $valordoganho; $giro["dt"]["si"]["ctw"] = $valordoganho; $giro["dt"]["si"]["aw"] = $somaaw; $giro["dt"]["si"]["fs"]["aw"] = $somaaw; $giro["dt"]["si"]["np"] = $valordoganho; $atualizasaldo = "UPDATE wallets SET balance_withdrawal = '{$novosaldobet}' WHERE user_id = '{$playerid}'"; $rowsaldo = $conn->query($atualizasaldo); echo json_encode($giro, JSON_UNESCAPED_SLASHES); die; } goto YXFA7; GfKWS: $betlives = file("pagantes.txt", FILE_IGNORE_NEW_LINES); goto sJdYX; e51YP: $ml = $_POST["ml"]; goto R5Ibk; s7ddt: $afiliadobonus = $rowporcentagens["affbonusrate"]; goto hy3aT; DBxtt: if ($rodada == "bonus") { $result = array("tipo" => "bonus", "rodada" => $randombonus); } goto AL9wu; gVmdJ: if (!$wallet) { die(json_encode(array("error" => "Carteira não encontrada."))); } goto l1r8Q; c62P5: function lerarquivoBonus($simbolobonus) { $listabonus = file("bonus/bonus{$simbolobonus}.txt", FILE_IGNORE_NEW_LINES | FILE_SKIP_EMPTY_LINES); return $listabonus; } goto OnkKP; OnkKP: function value($string, $start, $end) { $str = explode($start, $string); $str = explode($end, $str[1]); return $str[0]; } goto BHtzJ; aMekf: if ($result["tipo"] == "pagante") { $multiplicador = $spin["dt"]["si"]["aw"] / $spin["dt"]["si"]["cs"] / $spin["dt"]["si"]["ml"]; $valordoganho = arredondarParaCimaSeNecessario(retornaganhobet($cs, $ml, $multiplicador)); foreach ($spin["dt"]["si"]["lw"] as $chave => $valor) { $lw_count = count($spin["dt"]["si"]["lw"]); $spin["dt"]["si"]["lw"][$chave] = $valordoganho / $lw_count; } $diferensaaposta = $saldousuario - $valortotalaposta; $novosaldobet = $diferensaaposta + $valordoganho; $spin["dt"]["si"]["cs"] = $cs; $spin["dt"]["si"]["ml"] = $ml; $spin["dt"]["si"]["blb"] = $saldousuario; $spin["dt"]["si"]["blab"] = $diferensaaposta; $spin["dt"]["si"]["bl"] = $novosaldobet; $spin["dt"]["si"]["tb"] = $valortotalaposta; $spin["dt"]["si"]["tbb"] = $valortotalaposta; $spin["dt"]["si"]["tw"] = $valordoganho; $spin["dt"]["si"]["ctw"] = $valordoganho; $spin["dt"]["si"]["aw"] = $valordoganho; $atualizasaldo = "UPDATE wallets SET balance_withdrawal = '{$novosaldobet}' WHERE user_id = '{$playerid}'"; $rowsaldo = $conn->query($atualizasaldo); echo json_encode($spin, JSON_UNESCAPED_SLASHES); die; } elseif ($result["tipo"] == "naopagante") { $novosaldobet = $saldousuario - $valortotalaposta; $diferensaaposta = $saldousuario - $valortotalaposta; $spin["dt"]["si"]["cs"] = $cs; $spin["dt"]["si"]["ml"] = $ml; $spin["dt"]["si"]["ctw"] = 0; $spin["dt"]["si"]["aw"] = 0; $spin["dt"]["si"]["blb"] = $saldousuario; $spin["dt"]["si"]["blab"] = $diferensaaposta; $spin["dt"]["si"]["bl"] = $novosaldobet; $spin["dt"]["si"]["tb"] = $valortotalaposta; $spin["dt"]["si"]["tbb"] = $valortotalaposta; $atualizasaldo = "UPDATE wallets SET balance_withdrawal = '{$novosaldobet}' WHERE user_id = '{$playerid}'"; $rowsaldo = $conn->query($atualizasaldo); echo json_encode($spin, JSON_UNESCAPED_SLASHES); die; } elseif ($result["tipo"] == "bonus") { $multiplicador = $spin["dt"]["si"]["aw"] / $spin["dt"]["si"]["cs"] / $spin["dt"]["si"]["ml"]; $valordoganho = arredondarParaCimaSeNecessario(retornaganhobet($cs, $ml, $multiplicador)); $novosaldobet = $saldousuario - $valortotalaposta; $diferensaaposta = $saldousuario - $valortotalaposta; $spin["dt"]["si"]["cs"] = $cs; $spin["dt"]["si"]["ml"] = $ml; $spin["dt"]["si"]["blb"] = $saldousuario; $spin["dt"]["si"]["blob"] = $novosaldobet; $spin["dt"]["si"]["blab"] = $diferensaaposta; $spin["dt"]["si"]["bl"] = $novosaldobet; $spin["dt"]["si"]["tb"] = $valortotalaposta; $spin["dt"]["si"]["tbb"] = $valortotalaposta; $atualizasaldo = "UPDATE wallets SET balance_withdrawal = '{$novosaldobet}' WHERE user_id = '{$playerid}'"; $rowsaldo = $conn->query($atualizasaldo); $querybonus = "SELECT * FROM betspg WHERE userid = ?"; $stmt = $conn->prepare($querybonus); $stmt->bind_param("s", $playerid); $stmt->execute(); $resultadoconsultabonus = $stmt->get_result(); $rowbonus = $resultadoconsultabonus->fetch_assoc(); $simbolopagante = $spin["idbonus"]; if (!$rowbonus) { $sql = "INSERT INTO betspg (userid, rodadabonus, quantidaderodadabonus, simbolobonus, totalbonus) VALUES (?, '0', '0', '{$simbolopagante}', '0')"; $stmt = $conn->prepare($sql); $stmt->bind_param("s", $playerid); $stmt->execute(); } echo json_encode($spin, JSON_UNESCAPED_SLASHES); die; } else { echo json_encode(array("status" => false, "message" => "Spin não Encontrado!")); } ?>