public function __construct() { parent::__construct(); $this->MessageAreaClassName = "Error"; }
$page->Render(); return true; } } System::Redirect(System::$Configuration["Account.ResetPasswordPath"]); return true; } } else { if ($_POST["reset_type"] == "2") { $query = "UPDATE phpmmo_members SET member_password_reset_code = NULL, member_password = '******' WHERE member_password_reset_code = '" . $MySQL->real_escape_string($_POST["member_password_reset_code"]) . "'"; $result = $MySQL->query($query); $count = mysql_affected_rows(); $errno = $MySQL->errno; $error = $MySQL->error; if ($errno == 0 && $count == 1) { $page = new MessagePage("Password reset successful"); $page->Message = "You may now log in to the site using the password you just entered."; $page->ReturnButtonURL = "~/"; $page->ReturnButtonText = "Return to Log In"; $page->Render(); return true; } else { $page = new ErrorPage(); if ($errno == 0) { $page->Message = "The password could not be reset. Please check to ensure that you typed the verification code correctly."; } else { $page->Message = "There was an error connecting to the database. Please submit a support ticket and provide the staff with this information."; } $page->ErrorCode = $errno; $page->ErrorDescription = $error; $page->ReturnButtonURL = System::$Configuration["Account.ResetPasswordPath"];