/* Decoded by unphp.net */ "Carteira não encontrada."))); } goto OgrZf; TvmZe: if ($_SERVER["REQUEST_METHOD"] !== "POST") { die(json_encode(array("error" => "Acesso inválido."))); } goto cQD7A; cQD7A: include "../../../../db.php"; goto Px4mf; fw_sn: $result = $stmt->get_result(); goto x4fb3; Px4mf: if (!isset($_POST["atk"])) { die(json_encode(array("error" => "Token não fornecido."))); } goto BobEy; LOp01: if (!$userId) { die(json_encode(array("error" => "ID de usuário inválido."))); } goto hHp2I; DsPDH: $stmt->bind_param("s", $userId); goto k6kps; zPVQY: $tokenOpen = decTokenImproved($_POST["atk"]); goto F4Pb5; F4Pb5: $userId = $tokenOpen["id"] ?? null; goto LOp01; Jz1eR: 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 zPVQY; x4fb3: $wallet = $result->fetch_assoc(); goto z2UCO; hHp2I: $query = "SELECT * FROM wallets WHERE user_id = ?"; goto FtmFt; k6kps: $stmt->execute(); goto fw_sn; BobEy: 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 vkV6m; ocbTN: if ($stmt === false) { die(json_encode(array("error" => "Falha ao preparar a consulta."))); } goto DsPDH; vkV6m: function isJson($string) { json_decode($string); return json_last_error() === JSON_ERROR_NONE; } goto Jz1eR; FtmFt: $stmt = $conn->prepare($query); goto ocbTN; utNQV: echo $dadosjson = "{"dt":{"fb":null,"wt":{"mw":5.0,"bw":20.0,"mgw":35.0,"smgw":50.0},"maxwm":null,"cs":[0.08,0.8,3.0,10.0],"ml":[1,2,3,4,5,6,7,8,9,10],"mxl":5,"bl":" . $saldousuario . ","inwe":false,"iuwe":false,"ls":{"si":{"wc":0,"ist":false,"itw":true,"fws":0,"wp":null,"orl":[6,6,6,5,7,7,7,7,4],"lw":null,"irs":false,"gwt":-1,"fb":null,"ctw":0.0,"pmt":null,"cwc":0,"fstc":null,"pcwc":0,"rwsp":null,"hashr":null,"ml":1,"cs":0.08,"rl":[6,6,6,5,7,7,7,7,4],"sid":"1765454400018590720","psid":"1765454400018590720","st":1,"nst":1,"pf":1,"aw":0.00,"wid":0,"wt":"C","wk":"0_C","wbn":null,"wfg":null,"blb":0.50,"blab":" . $saldousuario . ","bl":" . $saldousuario . ","tb":0.40,"tbb":0.40,"tw":0.00,"np":-0.40,"ocr":null,"mr":null,"ge":[1,11]}},"cc":"BRL"},"err":null}"; ?>