if( isset($_POST['dpayout']) ){
if( password_verify( $_POST['hubPW'], $user["password"] ) ) {
if( $user['balance'] >= $wlimit ) {
if( !isset($_POST['hub']) || $_POST['hub']=="" ) { $Paysn = "
FaucetHub.io Address is not valide !
";
} else {
$address = $user['address'];
$amount = $user['balance'];
$wallet = $_POST['hub'];
$mysqli->query("UPDATE faucet_settings Set value = value + $amount WHERE id = '2'");
$mysqli->query("UPDATE user Set balance = '0' WHERE userid = '{$user['userid']}'");
$mysqli->query("INSERT INTO payout (username, ip_address, amount, adress, done) VALUES ('$address', '$ip', '$amount', '$wallet', 'no')");
$Paysn .= alert("dark"," Payout Done !
This payment will be manually!");
}
} else { $Paysn .= alert("danger","Withdraw limit is: ".$wlimit.$coin."
"); }
} else { $Paysn .= alert("danger","Wrong password
");}
}