Invalid email provided";
}
else
{
$password = cleanInput($_POST['password']);
if(passwordCorrect($user->id, $password))
{
$changeemail = changeEmail($_POST['email']);
if ($changeemail == 1)
{
$alert = "
Email reset, check your email
";
}
elseif ($changeemail == 2)
{
$alert = "Please wait before attempting again
";
}
elseif ($changeemail == 3)
{
$alert = "An error occurred, contact an admin
";
}
}
}
}
}
$body = <<
{$alert}
EOT;
pageHandler();
$ph->pageTitle("Email Reset");
$ph->body = $body;
$ph->output();