Exemple #1
0
         } 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"];
         $page->ReturnButtonText = "Return to Reset Password";
         $page->Render();
         return true;
     }
     return true;
 }
 if ($_SERVER["REQUEST_METHOD"] == "POST") {
     if ($_POST["reset_type"] == "1") {
         if ($_POST["member_email"] != null) {
             $users = User::GetByEmail($_POST["member_email"]);
             $count = count($users);
             if ($count == 0) {
                 $page = new MessagePage("Member Not Found");
                 $page->Message = "Sorry, there's no member with that e-mail address registered on this site.";
                 $page->ReturnButtonURL = System::$Configuration["Account.ResetPasswordPath"];
                 $page->ReturnButtonText = "Return to Password Reset";
                 $page->Render();
                 return true;
             } else {
                 if ($count == 1) {
                     $page = new MessagePage("Confirm your e-mail address");
                     $page->Message = "An e-mail has been sent to you with a link to confirm your e-mail address. Click on the link in the e-mail to reset your password.";
                     $page->Render();
                     return true;
                 } else {