|
|
session_start();
include "include/manager_config.php";
if(isset($_POST[hid]))
{
$today=date("d-m-Y");
$s_val=mysql_fetch_array(mysql_query("SELECT * FROM ".TABLEPREFIX."_signup WHERE `email`='$_POST[email]'"));
if($s_val == 0)
{
$msg = "
Sorry! This EmailID is not in our Database...
";
}
else
{
$id=uniqid("");
mysql_query("UPDATE ".TABLEPREFIX."_signup set password='$id' where user_id='$s_val[user_id]'");
$recever="$_POST[email]";
$from_user="From:admin@meltlist.com";
$subject="Password has been changed to your Account $s_val[name]!";
$body="
| Hey $s_val[name], Here is a new password to get you into the Melt List: |
| $id |
| Once you're logged in, go to CHANGE PROFILE page and change your password to something better than the crappy one we've given you. Cheers, Meltlist Team. |
|
|||||||||