} else { $withdraw_message = $client->withdraw($info['username'], $_POST['address'], (double) $_POST['amount']); $_SESSION['token'] = sha1('@s%a$l£t#' . rand(0, 10000)); $json['success'] = true; $json['message'] = "Saque realizado com sucesso!"; $json['balance'] = $client->getBalance($info['username']); $json['addressList'] = $client->getAddressList($info['username']); $json['transactionList'] = $client->getTransactionList($info['username']); } echo json_encode($json); exit; break; case "password": $json['success'] = false; if (is_numeric($_GET['i']) && !empty($_POST['password'])) { $result = $user->adminUpdatePassword($_GET['i'], $_POST['password']); if ($result === true) { $json['success'] = true; $json['message'] = "Senha alterada com sucesso!"; } else { $json['message'] = $result; } } else { $json['message'] = "Algo está errado..."; } echo json_encode($json); exit; break; } } if (!empty($_POST['action'])) {