<?php require_once 'classes/recaptcha.php'; require_once 'classes/jsonRPCClient.php'; require_once 'config.php'; $link = mysqli_connect($hostDB, $userDB, $passwordDB, $database); function GetRandomValue($min, $max) { $range = $max - $min; $num = $min + $range * mt_rand(0, 32767) / 32767; $num = round($num, 8); return (double) $num; } //Instantiate the Recaptcha class as $recaptcha $recaptcha = new Recaptcha($keys); if ($recaptcha->set()) { if ($recaptcha->verify($_POST['g-recaptcha-response'])) { //Checking address and payment ID characters $wallet = $str = trim(preg_replace('/[^a-zA-Z0-9]/', '', $_POST['wallet'])); $paymentidPost = $str = trim(preg_replace('/[^a-zA-Z0-9]/', '', $_POST['paymentid'])); //Getting user IP $direccionIP = $_SERVER["REMOTE_ADDR"]; if (empty($wallet) or strlen($wallet) < 95) { header("Location: ./?msg=wallet"); exit; } if (empty($paymentidPost)) { $paymentID = ""; } else { if (strlen($paymentidPost) > 64 or strlen($paymentidPost) < 64) { header("Location: ./?msg=paymentID"); exit;