include("html.php"); if($email){ if(!fetch("SELECT COUNT(email) FROM $tab[user] WHERE email='$email';")){$error="The address you provided was not found in our database.";} elseif(empty($username)) { $error="Please enter in a username";} elseif(empty($npass)) { $error="Please enter in a new password";} else{ $user = mysql_fetch_array(mysql_query("SELECT password FROM $tab[user] WHERE email='$email';")); $encrypt=md5($npass); mail("$email", "Your MOTW Password", "Hello. You have requested your password from us. Your new password is: $npass","From: noreply@mobstersoftheworld.com/"); //ENCRYPT IT mysql_query("UPDATE users SET password='$encrypt' WHERE username='$username'"); header("Location: ?success=$email"); } } siteheader(); if($success){?>
A e-mail has been sent to with information on your new password. If you do not receive a e-mail within 30 minutes, you may have to contact our support team. Click here to return to the login page. |