Don't know if you are still interested in answers or made your final choice. In any case, the marriage isn't necessarily doomed altho obvious major issues exist.
My first 2 suggestions is to get this book:
Amazon.com: Not "Just Friends": Rebuilding Trust and Recovering Your Sanity After Infidelity: Shirley P. Glass, Jean Coppock Staeheli: Books
Then go check out this site:
SurvivingInfidelity.com - Support for those affected by Infidelity
Despite what she said happened & what really happened, at least she stopped herself before it was even worse (many do not) & was seeking advice on how to deal with the situation here instead of a site where cheaters are encouraged to keep on with the affair. That does indicate a lot of hope that she does want the marriage to be protected even tho her actions prior to posting here were obviously destructive.
Feel free to contact me if you'd like suggestions for other resources to help or would like me to post them here. There are many, lots which are inexpensive or free.
Good luck to you both!