|
Welcome to BoBO"; } else { echo "Welcome to the DNA Module"; } ?>
Please enter your email address. You will receive an email with your new password. You can modify your data at any time. |
|
Please enter an email address. | "; }
else {
$sql = "SELECT * from user WHERE Email = '$formEmail'";
$result = mysqli_query($GLOBALS["___mysqli_ston"], $sql);
if(!mysqli_num_rows($result))
{ $Test = "true";
echo "Please check your data. No such email was found in the registry database. |
"; }
if(mysqli_num_rows($result))
{ while($row = mysqli_fetch_object($result))
{ $ID = $row->ID_User;
$Signature = $row->Signature; }
$string = RandPass();
$string1 = md5($string);
$sql1 = "UPDATE user SET Password = '$string1' WHERE ID_User = '$ID'";
$result1 = mysqli_query($GLOBALS["___mysqli_ston"], $sql1);
if($sql1)
{
$msg = "Dear ".$Signatur.".
Your password has been changed successfully. |
Your new password: ".$string."
For security reasons, please change this password once you logged in.
Sincerely,
The DNA Bank Network Team
|
";
$from = "From: contact@dnabank-network.org\n";
$from .= "Content-Type: text/html\n";
mail($formEmail, "DNA Module - New password", $msg, $from);
if(!mail($formEmail, "DNA Module - New password", $msg, $from))
{ echo "Email could not have been sent. Please contact your administrator |
"; }
else {
echo "You will immediately receive an email with your new password. |
"; } }
}
}
}
?>
Email | |
| |
|
No connection to database found. Please click here and follow the instructions during configuration process! |
";
}
?>