if( isset($_POST['dpayout']) ){
if( password_verify( $_POST['hubPW'], $user["password"] ) ) {
if( $user['balance'] >= $wlimit ) {
if( !isset($_POST['hub']) || $_POST['hub']=="" ) { $Paysn = "<h2>FaucetHub.io Address is not valide !</h2>";
} 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","<h3> Payout Done !</h3>This payment will be manually!");
}
} else { $Paysn .= alert("danger","<h2>Withdraw limit is: ".$wlimit.$coin."</h2>"); }
} else { $Paysn .= alert("danger","<h2>Wrong password</h2>");}
}