Former Egyptian president gets life in prison